Partager via


TokenInner Class

public final class TokenInner
extends ProxyResource

An object that represents a token for a container registry.

Constructor Summary

Constructor Description
TokenInner()

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

Reads an instance of TokenInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

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.

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.

TokenInner withCredentials(TokenCredentialsProperties credentials)

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

TokenInner withScopeMapId(String scopeMapId)

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

TokenInner withStatus(TokenStatus status)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

TokenInner

public TokenInner()

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

Reads an instance of TokenInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TokenInner 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:

TokenInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

TokenInner.name()

Returns:

the name value.

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.

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:

TokenInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

TokenInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCredentials

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

withScopeMapId

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

withStatus

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

Applies to