TokenInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. containerregistry. fluent. models. TokenInner
- com.
- com.
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 Token |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
creationDate()
Get the creation |
Token |
credentials()
Get the credentials property: The credentials that can be used for authenticating the token. |
static
Token |
fromJson(JsonReader jsonReader)
Reads an instance of Token |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
Provisioning |
provisioningState()
Get the provisioning |
String |
scopeMapId()
Get the scope |
Token |
status()
Get the status property: The status of the token example enabled or disabled. |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Token |
withCredentials(TokenCredentialsProperties credentials)
Set the credentials property: The credentials that can be used for authenticating the token. |
Token |
withScopeMapId(String scopeMapId)
Set the scope |
Token |
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:
credentials
public TokenCredentialsProperties credentials()
Get the credentials property: The credentials that can be used for authenticating the token.
Returns:
fromJson
public static TokenInner fromJson(JsonReader jsonReader)
Reads an instance of TokenInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
TokenInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
TokenInner.name()Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Provisioning state of the resource.
Returns:
scopeMapId
public String scopeMapId()
Get the scopeMapId property: The resource ID of the scope map to which the token will be associated with.
Returns:
status
public TokenStatus status()
Get the status property: The status of the token example enabled or disabled.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
TokenInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
TokenInner.type()Returns:
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:
Returns:
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:
Returns:
withStatus
public TokenInner withStatus(TokenStatus status)
Set the status property: The status of the token example enabled or disabled.
Parameters:
Returns:
Applies to
Azure SDK for Java