RegistryCredentials Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.RegistryCredentials

Implements

public final class RegistryCredentials
implements JsonSerializable<RegistryCredentials>

Container App Private Registry.

Constructor Summary

Constructor Description
RegistryCredentials()

Creates an instance of RegistryCredentials class.

Method Summary

Modifier and Type Method and Description
static RegistryCredentials fromJson(JsonReader jsonReader)

Reads an instance of RegistryCredentials from the JsonReader.

String passwordSecretRef()

Get the passwordSecretRef property: The name of the Secret that contains the registry login password.

String server()

Get the server property: Container Registry Server.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: Container Registry Username.

void validate()

Validates the instance.

RegistryCredentials withPasswordSecretRef(String passwordSecretRef)

Set the passwordSecretRef property: The name of the Secret that contains the registry login password.

RegistryCredentials withServer(String server)

Set the server property: Container Registry Server.

RegistryCredentials 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:

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.

passwordSecretRef

public String passwordSecretRef()

Get the passwordSecretRef property: The name of the Secret that contains the registry login password.

Returns:

the passwordSecretRef value.

server

public String server()

Get the server property: Container Registry Server.

Returns:

the server value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: Container Registry Username.

Returns:

the username value.

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:

passwordSecretRef - the passwordSecretRef value to set.

Returns:

the RegistryCredentials object itself.

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.

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.

Applies to