Class RegistryCredentials
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.RegistryCredentials
-
public final class RegistryCredentials extends Object
Container App Private Registry.
-
-
Constructor Summary
Constructors Constructor Description RegistryCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringpasswordSecretRef()Get the passwordSecretRef property: The name of the Secret that contains the registry login password.Stringserver()Get the server property: Container Registry Server.Stringusername()Get the username property: Container Registry Username.voidvalidate()Validates the instance.RegistryCredentialswithPasswordSecretRef(String passwordSecretRef)Set the passwordSecretRef property: The name of the Secret that contains the registry login password.RegistryCredentialswithServer(String server)Set the server property: Container Registry Server.RegistryCredentialswithUsername(String username)Set the username property: Container Registry Username.
-
-
-
Method Detail
-
server
public String server()
Get the server property: Container Registry Server.- Returns:
- the server value.
-
withServer
public RegistryCredentials withServer(String server)
Set the server property: Container Registry Server.- Parameters:
server- the server value to set.- Returns:
- the RegistryCredentials object itself.
-
username
public String username()
Get the username property: Container Registry Username.- Returns:
- the username value.
-
withUsername
public RegistryCredentials withUsername(String username)
Set the username property: Container Registry Username.- Parameters:
username- the username value to set.- Returns:
- the RegistryCredentials object itself.
-
passwordSecretRef
public String passwordSecretRef()
Get the passwordSecretRef property: The name of the Secret that contains the registry login password.- Returns:
- the passwordSecretRef value.
-
withPasswordSecretRef
public RegistryCredentials withPasswordSecretRef(String passwordSecretRef)
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.
-
-