Partager via


RegistryListCredentialsResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.fluent.models.RegistryListCredentialsResultInner

Implements

public final class RegistryListCredentialsResultInner
implements JsonSerializable<RegistryListCredentialsResultInner>

The response from the ListCredentials operation.

Constructor Summary

Constructor Description
RegistryListCredentialsResultInner()

Creates an instance of RegistryListCredentialsResultInner class.

Method Summary

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

Reads an instance of RegistryListCredentialsResultInner from the JsonReader.

List<RegistryPassword> passwords()

Get the passwords property: The list of passwords for a container registry.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: The username for a container registry.

void validate()

Validates the instance.

RegistryListCredentialsResultInner withPasswords(List<RegistryPassword> passwords)

Set the passwords property: The list of passwords for a container registry.

RegistryListCredentialsResultInner withUsername(String username)

Set the username property: The username for a container registry.

Methods inherited from java.lang.Object

Constructor Details

RegistryListCredentialsResultInner

public RegistryListCredentialsResultInner()

Creates an instance of RegistryListCredentialsResultInner class.

Method Details

fromJson

public static RegistryListCredentialsResultInner fromJson(JsonReader jsonReader)

Reads an instance of RegistryListCredentialsResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

passwords

public List passwords()

Get the passwords property: The list of passwords for a container registry.

Returns:

the passwords value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: The username for a container registry.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withPasswords

public RegistryListCredentialsResultInner withPasswords(List passwords)

Set the passwords property: The list of passwords for a container registry.

Parameters:

passwords - the passwords value to set.

Returns:

the RegistryListCredentialsResultInner object itself.

withUsername

public RegistryListCredentialsResultInner withUsername(String username)

Set the username property: The username for a container registry.

Parameters:

username - the username value to set.

Returns:

the RegistryListCredentialsResultInner object itself.

Applies to