GenerateCredentialsResultInner Class

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

Implements

public final class GenerateCredentialsResultInner
implements JsonSerializable<GenerateCredentialsResultInner>

The response from the GenerateCredentials operation.

Constructor Summary

Constructor Description
GenerateCredentialsResultInner()

Creates an instance of GenerateCredentialsResultInner class.

Method Summary

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

Reads an instance of GenerateCredentialsResultInner from the JsonReader.

List<TokenPassword> 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.

GenerateCredentialsResultInner withPasswords(List<TokenPassword> passwords)

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

GenerateCredentialsResultInner withUsername(String username)

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

Methods inherited from java.lang.Object

Constructor Details

GenerateCredentialsResultInner

public GenerateCredentialsResultInner()

Creates an instance of GenerateCredentialsResultInner class.

Method Details

fromJson

public static GenerateCredentialsResultInner fromJson(JsonReader jsonReader)

Reads an instance of GenerateCredentialsResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 GenerateCredentialsResultInner withPasswords(List passwords)

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

Parameters:

passwords - the passwords value to set.

Returns:

the GenerateCredentialsResultInner object itself.

withUsername

public GenerateCredentialsResultInner withUsername(String username)

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

Parameters:

username - the username value to set.

Returns:

the GenerateCredentialsResultInner object itself.

Applies to