CredentialSetInner Class

public final class CredentialSetInner
extends ProxyResource

An object that represents a credential set resource for a container registry.

Constructor Summary

Constructor Description
CredentialSetInner()

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

Reads an instance of CredentialSetInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

IdentityProperties identity()

Get the identity property: Identities associated with the resource.

String loginServer()

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

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

CredentialSetInner withAuthCredentials(List<AuthCredential> authCredentials)

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

CredentialSetInner withIdentity(IdentityProperties identity)

Set the identity property: Identities associated with the resource.

CredentialSetInner withLoginServer(String loginServer)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

CredentialSetInner

public CredentialSetInner()

Creates an instance of CredentialSetInner class.

Method Details

authCredentials

public List 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 CredentialSetInner fromJson(JsonReader jsonReader)

Reads an instance of CredentialSetInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

CredentialSetInner.id()

Returns:

the id value.

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.

loginServer

public String loginServer()

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

Returns:

the loginServer value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CredentialSetInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Returns:

the provisioningState value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CredentialSetInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CredentialSetInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAuthCredentials

public CredentialSetInner withAuthCredentials(List 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 CredentialSetInner object itself.

withIdentity

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

withLoginServer

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

Applies to