ImageRegistryCredential Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.ImageRegistryCredential

Implements

public final class ImageRegistryCredential
implements JsonSerializable<ImageRegistryCredential>

Image registry credential.

Constructor Summary

Constructor Description
ImageRegistryCredential()

Creates an instance of ImageRegistryCredential class.

Method Summary

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

Reads an instance of ImageRegistryCredential from the JsonReader.

String identity()

Get the identity property: The identity for the private registry.

String identityUrl()

Get the identityUrl property: The identity URL for the private registry.

String password()

Get the password property: The password for the private registry.

String server()

Get the server property: The Docker image registry server without a protocol such as "http" and "https".

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: The username for the private registry.

void validate()

Validates the instance.

ImageRegistryCredential withIdentity(String identity)

Set the identity property: The identity for the private registry.

ImageRegistryCredential withIdentityUrl(String identityUrl)

Set the identityUrl property: The identity URL for the private registry.

ImageRegistryCredential withPassword(String password)

Set the password property: The password for the private registry.

ImageRegistryCredential withServer(String server)

Set the server property: The Docker image registry server without a protocol such as "http" and "https".

ImageRegistryCredential withUsername(String username)

Set the username property: The username for the private registry.

Methods inherited from java.lang.Object

Constructor Details

ImageRegistryCredential

public ImageRegistryCredential()

Creates an instance of ImageRegistryCredential class.

Method Details

fromJson

public static ImageRegistryCredential fromJson(JsonReader jsonReader)

Reads an instance of ImageRegistryCredential from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ImageRegistryCredential if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

identity

public String identity()

Get the identity property: The identity for the private registry.

Returns:

the identity value.

identityUrl

public String identityUrl()

Get the identityUrl property: The identity URL for the private registry.

Returns:

the identityUrl value.

password

public String password()

Get the password property: The password for the private registry.

Returns:

the password value.

server

public String server()

Get the server property: The Docker image registry server without a protocol such as "http" and "https".

Returns:

the server value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: The username for the private registry.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withIdentity

public ImageRegistryCredential withIdentity(String identity)

Set the identity property: The identity for the private registry.

Parameters:

identity - the identity value to set.

Returns:

the ImageRegistryCredential object itself.

withIdentityUrl

public ImageRegistryCredential withIdentityUrl(String identityUrl)

Set the identityUrl property: The identity URL for the private registry.

Parameters:

identityUrl - the identityUrl value to set.

Returns:

the ImageRegistryCredential object itself.

withPassword

public ImageRegistryCredential withPassword(String password)

Set the password property: The password for the private registry.

Parameters:

password - the password value to set.

Returns:

the ImageRegistryCredential object itself.

withServer

public ImageRegistryCredential withServer(String server)

Set the server property: The Docker image registry server without a protocol such as "http" and "https".

Parameters:

server - the server value to set.

Returns:

the ImageRegistryCredential object itself.

withUsername

public ImageRegistryCredential withUsername(String username)

Set the username property: The username for the private registry.

Parameters:

username - the username value to set.

Returns:

the ImageRegistryCredential object itself.

Applies to