Share via


CredentialSetUpdateParameters Class

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

Implements

public final class CredentialSetUpdateParameters
implements JsonSerializable<CredentialSetUpdateParameters>

The parameters for updating a credential set.

Constructor Summary

Constructor Description
CredentialSetUpdateParameters()

Creates an instance of CredentialSetUpdateParameters 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 CredentialSetUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of CredentialSetUpdateParameters from the JsonReader.

IdentityProperties identity()

Get the identity property: Identities associated with the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CredentialSetUpdateParameters withAuthCredentials(List<AuthCredential> authCredentials)

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

CredentialSetUpdateParameters withIdentity(IdentityProperties identity)

Set the identity property: Identities associated with the resource.

Methods inherited from java.lang.Object

Constructor Details

CredentialSetUpdateParameters

public CredentialSetUpdateParameters()

Creates an instance of CredentialSetUpdateParameters 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 CredentialSetUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of CredentialSetUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public IdentityProperties identity()

Get the identity property: Identities associated with the resource. This is used to access the KeyVault secrets.

Returns:

the identity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuthCredentials

public CredentialSetUpdateParameters 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 CredentialSetUpdateParameters object itself.

withIdentity

public CredentialSetUpdateParameters withIdentity(IdentityProperties identity)

Set the identity property: Identities associated with the resource. This is used to access the KeyVault secrets.

Parameters:

identity - the identity value to set.

Returns:

the CredentialSetUpdateParameters object itself.

Applies to