RegistryCredentials Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. RegistryCredentials
- com.
Implements
public final class RegistryCredentials
implements JsonSerializable<RegistryCredentials>
Container App Private Registry.
Constructor Summary
Constructor | Description |
---|---|
RegistryCredentials() |
Creates an instance of Registry |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Registry |
fromJson(JsonReader jsonReader)
Reads an instance of Registry |
String |
passwordSecretRef()
Get the password |
String |
server()
Get the server property: Container Registry Server. |
Json |
toJson(JsonWriter jsonWriter) |
String |
username()
Get the username property: Container Registry Username. |
void |
validate()
Validates the instance. |
Registry |
withPasswordSecretRef(String passwordSecretRef)
Set the password |
Registry |
withServer(String server)
Set the server property: Container Registry Server. |
Registry |
withUsername(String username)
Set the username property: Container Registry Username. |
Methods inherited from java.lang.Object
Constructor Details
RegistryCredentials
public RegistryCredentials()
Creates an instance of RegistryCredentials class.
Method Details
fromJson
public static RegistryCredentials fromJson(JsonReader jsonReader)
Reads an instance of RegistryCredentials from the JsonReader.
Parameters:
Returns:
Throws:
passwordSecretRef
public String passwordSecretRef()
Get the passwordSecretRef property: The name of the Secret that contains the registry login password.
Returns:
server
public String server()
Get the server property: Container Registry Server.
Returns:
toJson
username
public String username()
Get the username property: Container Registry Username.
Returns:
validate
public void validate()
Validates the instance.
withPasswordSecretRef
public RegistryCredentials withPasswordSecretRef(String passwordSecretRef)
Set the passwordSecretRef property: The name of the Secret that contains the registry login password.
Parameters:
Returns:
withServer
public RegistryCredentials withServer(String server)
Set the server property: Container Registry Server.
Parameters:
Returns:
withUsername
public RegistryCredentials withUsername(String username)
Set the username property: Container Registry Username.
Parameters:
Returns:
Applies to
Azure SDK for Java