Class SessionRegistryCredentials
java.lang.Object
com.azure.resourcemanager.appcontainers.models.SessionRegistryCredentials
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SessionRegistryCredentials>
public final class SessionRegistryCredentials
extends Object
implements com.azure.json.JsonSerializable<SessionRegistryCredentials>
Session pool private registry credentials.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SessionRegistryCredentials class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionRegistryCredentials
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SessionRegistryCredentials from the JsonReader.identity()
Get the identity property: A Managed Identity to use to authenticate with Azure Container Registry.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.withIdentity
(String identity) Set the identity property: A Managed Identity to use to authenticate with Azure Container Registry.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
-
SessionRegistryCredentials
public SessionRegistryCredentials()Creates an instance of SessionRegistryCredentials 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 SessionRegistryCredentials 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 SessionRegistryCredentials 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 SessionRegistryCredentials object itself.
-
identity
Get the identity property: A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'.- Returns:
- the identity value.
-
withIdentity
Set the identity property: A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'.- Parameters:
identity
- the identity value to set.- Returns:
- the SessionRegistryCredentials 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<SessionRegistryCredentials>
- Throws:
IOException
-
fromJson
public static SessionRegistryCredentials fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SessionRegistryCredentials from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SessionRegistryCredentials 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 SessionRegistryCredentials.
-