Share via


RegenerateCredentialParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.RegenerateCredentialParameters

Implements

public final class RegenerateCredentialParameters
implements JsonSerializable<RegenerateCredentialParameters>

The parameters used to regenerate the login credential.

Constructor Summary

Constructor Description
RegenerateCredentialParameters()

Creates an instance of RegenerateCredentialParameters class.

Method Summary

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

Reads an instance of RegenerateCredentialParameters from the JsonReader.

PasswordName name()

Get the name property: Specifies name of the password which should be regenerated -- password or password2.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RegenerateCredentialParameters withName(PasswordName name)

Set the name property: Specifies name of the password which should be regenerated -- password or password2.

Methods inherited from java.lang.Object

Constructor Details

RegenerateCredentialParameters

public RegenerateCredentialParameters()

Creates an instance of RegenerateCredentialParameters class.

Method Details

fromJson

public static RegenerateCredentialParameters fromJson(JsonReader jsonReader)

Reads an instance of RegenerateCredentialParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public PasswordName name()

Get the name property: Specifies name of the password which should be regenerated -- password or password2.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public RegenerateCredentialParameters withName(PasswordName name)

Set the name property: Specifies name of the password which should be regenerated -- password or password2.

Parameters:

name - the name value to set.

Returns:

the RegenerateCredentialParameters object itself.

Applies to