@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TokenData extends Object implements Serializable, Cloneable, StructuredPojo
Describes a token.
Constructor and Description |
---|
TokenData() |
Modifier and Type | Method and Description |
---|---|
TokenData |
clone() |
boolean |
equals(Object obj) |
String |
getExpirationTime()
Token expiration time, in ISO8601-UTC format.
|
String |
getLicenseArn()
Amazon Resource Name (ARN) of the license.
|
List<String> |
getRoleArns()
Amazon Resource Names (ARN) of the roles included in the token.
|
String |
getStatus()
Token status.
|
String |
getTokenId()
Token ID.
|
List<String> |
getTokenProperties()
Data specified by the caller.
|
String |
getTokenType()
Type of token generated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExpirationTime(String expirationTime)
Token expiration time, in ISO8601-UTC format.
|
void |
setLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
|
void |
setRoleArns(Collection<String> roleArns)
Amazon Resource Names (ARN) of the roles included in the token.
|
void |
setStatus(String status)
Token status.
|
void |
setTokenId(String tokenId)
Token ID.
|
void |
setTokenProperties(Collection<String> tokenProperties)
Data specified by the caller.
|
void |
setTokenType(String tokenType)
Type of token generated.
|
String |
toString()
Returns a string representation of this object.
|
TokenData |
withExpirationTime(String expirationTime)
Token expiration time, in ISO8601-UTC format.
|
TokenData |
withLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
|
TokenData |
withRoleArns(Collection<String> roleArns)
Amazon Resource Names (ARN) of the roles included in the token.
|
TokenData |
withRoleArns(String... roleArns)
Amazon Resource Names (ARN) of the roles included in the token.
|
TokenData |
withStatus(String status)
Token status.
|
TokenData |
withTokenId(String tokenId)
Token ID.
|
TokenData |
withTokenProperties(Collection<String> tokenProperties)
Data specified by the caller.
|
TokenData |
withTokenProperties(String... tokenProperties)
Data specified by the caller.
|
TokenData |
withTokenType(String tokenType)
Type of token generated.
|
public void setTokenId(String tokenId)
Token ID.
tokenId
- Token ID.public String getTokenId()
Token ID.
public TokenData withTokenId(String tokenId)
Token ID.
tokenId
- Token ID.public void setTokenType(String tokenType)
Type of token generated. The supported value is REFRESH_TOKEN
.
tokenType
- Type of token generated. The supported value is REFRESH_TOKEN
.public String getTokenType()
Type of token generated. The supported value is REFRESH_TOKEN
.
REFRESH_TOKEN
.public TokenData withTokenType(String tokenType)
Type of token generated. The supported value is REFRESH_TOKEN
.
tokenType
- Type of token generated. The supported value is REFRESH_TOKEN
.public void setLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
licenseArn
- Amazon Resource Name (ARN) of the license.public String getLicenseArn()
Amazon Resource Name (ARN) of the license.
public TokenData withLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
licenseArn
- Amazon Resource Name (ARN) of the license.public void setExpirationTime(String expirationTime)
Token expiration time, in ISO8601-UTC format.
expirationTime
- Token expiration time, in ISO8601-UTC format.public String getExpirationTime()
Token expiration time, in ISO8601-UTC format.
public TokenData withExpirationTime(String expirationTime)
Token expiration time, in ISO8601-UTC format.
expirationTime
- Token expiration time, in ISO8601-UTC format.public List<String> getTokenProperties()
Data specified by the caller.
public void setTokenProperties(Collection<String> tokenProperties)
Data specified by the caller.
tokenProperties
- Data specified by the caller.public TokenData withTokenProperties(String... tokenProperties)
Data specified by the caller.
NOTE: This method appends the values to the existing list (if any). Use
setTokenProperties(java.util.Collection)
or withTokenProperties(java.util.Collection)
if you
want to override the existing values.
tokenProperties
- Data specified by the caller.public TokenData withTokenProperties(Collection<String> tokenProperties)
Data specified by the caller.
tokenProperties
- Data specified by the caller.public List<String> getRoleArns()
Amazon Resource Names (ARN) of the roles included in the token.
public void setRoleArns(Collection<String> roleArns)
Amazon Resource Names (ARN) of the roles included in the token.
roleArns
- Amazon Resource Names (ARN) of the roles included in the token.public TokenData withRoleArns(String... roleArns)
Amazon Resource Names (ARN) of the roles included in the token.
NOTE: This method appends the values to the existing list (if any). Use
setRoleArns(java.util.Collection)
or withRoleArns(java.util.Collection)
if you want to override
the existing values.
roleArns
- Amazon Resource Names (ARN) of the roles included in the token.public TokenData withRoleArns(Collection<String> roleArns)
Amazon Resource Names (ARN) of the roles included in the token.
roleArns
- Amazon Resource Names (ARN) of the roles included in the token.public void setStatus(String status)
Token status. The possible values are AVAILABLE
and DELETED
.
status
- Token status. The possible values are AVAILABLE
and DELETED
.public String getStatus()
Token status. The possible values are AVAILABLE
and DELETED
.
AVAILABLE
and DELETED
.public TokenData withStatus(String status)
Token status. The possible values are AVAILABLE
and DELETED
.
status
- Token status. The possible values are AVAILABLE
and DELETED
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.