Class ContainerRegistryBasicCredentials
java.lang.Object
com.azure.resourcemanager.appplatform.models.ContainerRegistryCredentials
com.azure.resourcemanager.appplatform.models.ContainerRegistryBasicCredentials
The basic authentication properties for the container registry resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerRegistryBasicCredentials class. -
Method Summary
Modifier and TypeMethodDescriptionpassword()Get the password property: The password of the Container Registry.server()Get the server property: The login server of the Container Registry.username()Get the username property: The username of the Container Registry.voidvalidate()Validates the instance.withPassword(String password) Set the password property: The password of the Container Registry.withServer(String server) Set the server property: The login server of the Container Registry.withUsername(String username) Set the username property: The username of the Container Registry.
-
Constructor Details
-
ContainerRegistryBasicCredentials
public ContainerRegistryBasicCredentials()Creates an instance of ContainerRegistryBasicCredentials class.
-
-
Method Details
-
server
Get the server property: The login server of the Container Registry.- Returns:
- the server value.
-
withServer
Set the server property: The login server of the Container Registry.- Parameters:
server- the server value to set.- Returns:
- the ContainerRegistryBasicCredentials object itself.
-
username
Get the username property: The username of the Container Registry.- Returns:
- the username value.
-
withUsername
Set the username property: The username of the Container Registry.- Parameters:
username- the username value to set.- Returns:
- the ContainerRegistryBasicCredentials object itself.
-
password
Get the password property: The password of the Container Registry.- Returns:
- the password value.
-
withPassword
Set the password property: The password of the Container Registry.- Parameters:
password- the password value to set.- Returns:
- the ContainerRegistryBasicCredentials object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classContainerRegistryCredentials- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-