TokenProperties Class

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

Implements

public final class TokenProperties
implements JsonSerializable<TokenProperties>

The properties of a token.

Constructor Summary

Constructor Description
TokenProperties()

Creates an instance of TokenProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime creationDate()

Get the creationDate property: The creation date of scope map.

TokenCredentialsProperties credentials()

Get the credentials property: The credentials that can be used for authenticating the token.

static TokenProperties fromJson(JsonReader jsonReader)

Reads an instance of TokenProperties from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

String scopeMapId()

Get the scopeMapId property: The resource ID of the scope map to which the token will be associated with.

TokenStatus status()

Get the status property: The status of the token example enabled or disabled.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TokenProperties withCredentials(TokenCredentialsProperties credentials)

Set the credentials property: The credentials that can be used for authenticating the token.

TokenProperties withScopeMapId(String scopeMapId)

Set the scopeMapId property: The resource ID of the scope map to which the token will be associated with.

TokenProperties withStatus(TokenStatus status)

Set the status property: The status of the token example enabled or disabled.

Methods inherited from java.lang.Object

Constructor Details

TokenProperties

public TokenProperties()

Creates an instance of TokenProperties class.

Method Details

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: The creation date of scope map.

Returns:

the creationDate value.

credentials

public TokenCredentialsProperties credentials()

Get the credentials property: The credentials that can be used for authenticating the token.

Returns:

the credentials value.

fromJson

public static TokenProperties fromJson(JsonReader jsonReader)

Reads an instance of TokenProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Returns:

the provisioningState value.

scopeMapId

public String scopeMapId()

Get the scopeMapId property: The resource ID of the scope map to which the token will be associated with.

Returns:

the scopeMapId value.

status

public TokenStatus status()

Get the status property: The status of the token example enabled or disabled.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCredentials

public TokenProperties withCredentials(TokenCredentialsProperties credentials)

Set the credentials property: The credentials that can be used for authenticating the token.

Parameters:

credentials - the credentials value to set.

Returns:

the TokenProperties object itself.

withScopeMapId

public TokenProperties withScopeMapId(String scopeMapId)

Set the scopeMapId property: The resource ID of the scope map to which the token will be associated with.

Parameters:

scopeMapId - the scopeMapId value to set.

Returns:

the TokenProperties object itself.

withStatus

public TokenProperties withStatus(TokenStatus status)

Set the status property: The status of the token example enabled or disabled.

Parameters:

status - the status value to set.

Returns:

the TokenProperties object itself.

Applies to