Class UsernamePasswordCredentials
- java.lang.Object
-
- com.azure.resourcemanager.videoanalyzer.models.CredentialsBase
-
- com.azure.resourcemanager.videoanalyzer.models.UsernamePasswordCredentials
-
public final class UsernamePasswordCredentials extends CredentialsBase
Username and password credentials.
-
-
Constructor Summary
Constructors Constructor Description UsernamePasswordCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
password()
Get the password property: Password to be presented as part of the credentials.String
username()
Get the username property: Username to be presented as part of the credentials.void
validate()
Validates the instance.UsernamePasswordCredentials
withPassword(String password)
Set the password property: Password to be presented as part of the credentials.UsernamePasswordCredentials
withUsername(String username)
Set the username property: Username to be presented as part of the credentials.
-
-
-
Method Detail
-
username
public String username()
Get the username property: Username to be presented as part of the credentials.- Returns:
- the username value.
-
withUsername
public UsernamePasswordCredentials withUsername(String username)
Set the username property: Username to be presented as part of the credentials.- Parameters:
username
- the username value to set.- Returns:
- the UsernamePasswordCredentials object itself.
-
password
public String password()
Get the password property: Password to be presented as part of the credentials. It is recommended that this value is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API requests.- Returns:
- the password value.
-
withPassword
public UsernamePasswordCredentials withPassword(String password)
Set the password property: Password to be presented as part of the credentials. It is recommended that this value is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API requests.- Parameters:
password
- the password value to set.- Returns:
- the UsernamePasswordCredentials object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classCredentialsBase
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-