CredentialSetUpdateProperties Class

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

Implements

public final class CredentialSetUpdateProperties
implements JsonSerializable<CredentialSetUpdateProperties>

The parameters for updating credential set properties.

Constructor Summary

Constructor Description
CredentialSetUpdateProperties()

Creates an instance of CredentialSetUpdateProperties class.

Method Summary

Modifier and Type Method and Description
List<AuthCredential> authCredentials()

Get the authCredentials property: List of authentication credentials stored for an upstream.

static CredentialSetUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of CredentialSetUpdateProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CredentialSetUpdateProperties withAuthCredentials(List<AuthCredential> authCredentials)

Set the authCredentials property: List of authentication credentials stored for an upstream.

Methods inherited from java.lang.Object

Constructor Details

CredentialSetUpdateProperties

public CredentialSetUpdateProperties()

Creates an instance of CredentialSetUpdateProperties class.

Method Details

authCredentials

public List<AuthCredential> authCredentials()

Get the authCredentials property: List of authentication credentials stored for an upstream. Usually consists of a primary and an optional secondary credential.

Returns:

the authCredentials value.

fromJson

public static CredentialSetUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of CredentialSetUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuthCredentials

public CredentialSetUpdateProperties withAuthCredentials(List<AuthCredential> authCredentials)

Set the authCredentials property: List of authentication credentials stored for an upstream. Usually consists of a primary and an optional secondary credential.

Parameters:

authCredentials - the authCredentials value to set.

Returns:

the CredentialSetUpdateProperties object itself.

Applies to