ImageRepositoryCredentials Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.ImageRepositoryCredentials

Implements

public final class ImageRepositoryCredentials
implements JsonSerializable<ImageRepositoryCredentials>

ImageRepositoryCredentials represents the credentials used to login to the image repository.

Constructor Summary

Constructor Description
ImageRepositoryCredentials()

Creates an instance of ImageRepositoryCredentials class.

Method Summary

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

Reads an instance of ImageRepositoryCredentials from the JsonReader.

String password()

Get the password property: The password or token used to access an image in the target repository.

String registryUrl()

Get the registryUrl property: The URL of the authentication server used to validate the repository credentials.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: The username used to access an image in the target repository.

ImageRepositoryCredentials withPassword(String password)

Set the password property: The password or token used to access an image in the target repository.

ImageRepositoryCredentials withRegistryUrl(String registryUrl)

Set the registryUrl property: The URL of the authentication server used to validate the repository credentials.

ImageRepositoryCredentials withUsername(String username)

Set the username property: The username used to access an image in the target repository.

Methods inherited from java.lang.Object

Constructor Details

ImageRepositoryCredentials

public ImageRepositoryCredentials()

Creates an instance of ImageRepositoryCredentials class.

Method Details

fromJson

public static ImageRepositoryCredentials fromJson(JsonReader jsonReader)

Reads an instance of ImageRepositoryCredentials from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ImageRepositoryCredentials 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.

password

public String password()

Get the password property: The password or token used to access an image in the target repository.

Returns:

the password value.

registryUrl

public String registryUrl()

Get the registryUrl property: The URL of the authentication server used to validate the repository credentials.

Returns:

the registryUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: The username used to access an image in the target repository.

Returns:

the username value.

withPassword

public ImageRepositoryCredentials withPassword(String password)

Set the password property: The password or token used to access an image in the target repository.

Parameters:

password - the password value to set.

Returns:

the ImageRepositoryCredentials object itself.

withRegistryUrl

public ImageRepositoryCredentials withRegistryUrl(String registryUrl)

Set the registryUrl property: The URL of the authentication server used to validate the repository credentials.

Parameters:

registryUrl - the registryUrl value to set.

Returns:

the ImageRepositoryCredentials object itself.

withUsername

public ImageRepositoryCredentials withUsername(String username)

Set the username property: The username used to access an image in the target repository.

Parameters:

username - the username value to set.

Returns:

the ImageRepositoryCredentials object itself.

Applies to