@Generated(value="software.amazon.awssdk:codegen") public final class TokenData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TokenData.Builder,TokenData>
Describes a token.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TokenData.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TokenData.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
expirationTime()
Token expiration time, in ISO8601-UTC format.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRoleArns()
Returns true if the RoleArns property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasTokenProperties()
Returns true if the TokenProperties property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
String |
licenseArn()
Amazon Resource Name (ARN) of the license.
|
List<String> |
roleArns()
Amazon Resource Names (ARN) of the roles included in the token.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TokenData.Builder> |
serializableBuilderClass() |
String |
status()
Token status.
|
TokenData.Builder |
toBuilder() |
String |
tokenId()
Token ID.
|
List<String> |
tokenProperties()
Data specified by the caller.
|
String |
tokenType()
Type of token generated.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String tokenId()
Token ID.
public final String tokenType()
Type of token generated. The supported value is REFRESH_TOKEN.
REFRESH_TOKEN.public final String licenseArn()
Amazon Resource Name (ARN) of the license.
public final String expirationTime()
Token expiration time, in ISO8601-UTC format.
public final boolean hasTokenProperties()
public final List<String> tokenProperties()
Data specified by the caller.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTokenProperties() to see if a value was sent in this field.
public final boolean hasRoleArns()
public final List<String> roleArns()
Amazon Resource Names (ARN) of the roles included in the token.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRoleArns() to see if a value was sent in this field.
public final String status()
Token status. The possible values are AVAILABLE and DELETED.
AVAILABLE and DELETED.public TokenData.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TokenData.Builder,TokenData>public static TokenData.Builder builder()
public static Class<? extends TokenData.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.