Class RegistryCredentials
java.lang.Object
com.azure.resourcemanager.appservice.models.RegistryCredentials
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RegistryCredentials>
public final class RegistryCredentials
extends Object
implements com.azure.json.JsonSerializable<RegistryCredentials>
Container App Private Registry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistryCredentials
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RegistryCredentials from the JsonReader.Get the passwordSecretRef property: The name of the Secret that contains the registry login password.server()
Get the server property: Container Registry Server.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) username()
Get the username property: Container Registry Username.void
validate()
Validates the instance.withPasswordSecretRef
(String passwordSecretRef) Set the passwordSecretRef property: The name of the Secret that contains the registry login password.withServer
(String server) Set the server property: Container Registry Server.withUsername
(String username) Set the username property: Container Registry Username.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RegistryCredentials
public RegistryCredentials()Creates an instance of RegistryCredentials class.
-
-
Method Details
-
server
Get the server property: Container Registry Server.- Returns:
- the server value.
-
withServer
Set the server property: Container Registry Server.- Parameters:
server
- the server value to set.- Returns:
- the RegistryCredentials object itself.
-
username
Get the username property: Container Registry Username.- Returns:
- the username value.
-
withUsername
Set the username property: Container Registry Username.- Parameters:
username
- the username value to set.- Returns:
- the RegistryCredentials object itself.
-
passwordSecretRef
Get the passwordSecretRef property: The name of the Secret that contains the registry login password.- Returns:
- the passwordSecretRef value.
-
withPasswordSecretRef
Set the passwordSecretRef property: The name of the Secret that contains the registry login password.- Parameters:
passwordSecretRef
- the passwordSecretRef value to set.- Returns:
- the RegistryCredentials object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<RegistryCredentials>
- Throws:
IOException
-
fromJson
Reads an instance of RegistryCredentials from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RegistryCredentials if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the RegistryCredentials.
-