Class ContainerRegistryBasicCredentials
java.lang.Object
com.azure.resourcemanager.appplatform.models.ContainerRegistryCredentials
com.azure.resourcemanager.appplatform.models.ContainerRegistryBasicCredentials
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerRegistryCredentials>
The basic authentication properties for the container registry resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerRegistryBasicCredentials class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerRegistryBasicCredentials from the JsonReader.password()Get the password property: The password of the Container Registry.server()Get the server property: The login server of the Container Registry.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The credential type of the container registry credentials.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerRegistryBasicCredentials
public ContainerRegistryBasicCredentials()Creates an instance of ContainerRegistryBasicCredentials class.
-
-
Method Details
-
type
Get the type property: The credential type of the container registry credentials.- Overrides:
typein classContainerRegistryCredentials- Returns:
- the type value.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ContainerRegistryCredentials>- Overrides:
toJsonin classContainerRegistryCredentials- Throws:
IOException
-
fromJson
public static ContainerRegistryBasicCredentials fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerRegistryBasicCredentials from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerRegistryBasicCredentials if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ContainerRegistryBasicCredentials.
-