CredentialSetProperties Class

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

Implements

public final class CredentialSetProperties
implements JsonSerializable<CredentialSetProperties>

The properties of a credential set resource.

Constructor Summary

Constructor Description
CredentialSetProperties()

Creates an instance of CredentialSetProperties class.

Method Summary

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

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

OffsetDateTime creationDate()

Get the creationDate property: The creation date of credential store resource.

static CredentialSetProperties fromJson(JsonReader jsonReader)

Reads an instance of CredentialSetProperties from the JsonReader.

String loginServer()

Get the loginServer property: The credentials are stored for this upstream or login server.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CredentialSetProperties withAuthCredentials(List<AuthCredential> authCredentials)

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

CredentialSetProperties withLoginServer(String loginServer)

Set the loginServer property: The credentials are stored for this upstream or login server.

Methods inherited from java.lang.Object

Constructor Details

CredentialSetProperties

public CredentialSetProperties()

Creates an instance of CredentialSetProperties 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.

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: The creation date of credential store resource.

Returns:

the creationDate value.

fromJson

public static CredentialSetProperties fromJson(JsonReader jsonReader)

Reads an instance of CredentialSetProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

loginServer

public String loginServer()

Get the loginServer property: The credentials are stored for this upstream or login server.

Returns:

the loginServer value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuthCredentials

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

withLoginServer

public CredentialSetProperties withLoginServer(String loginServer)

Set the loginServer property: The credentials are stored for this upstream or login server.

Parameters:

loginServer - the loginServer value to set.

Returns:

the CredentialSetProperties object itself.

Applies to