@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTokenResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description | 
|---|
| CreateTokenResult() | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateTokenResult | clone() | 
| boolean | equals(Object obj) | 
| String | getAccessToken()
 A bearer token to access Amazon Web Services accounts and applications assigned to a user. | 
| Integer | getExpiresIn()
 Indicates the time in seconds when an access token will expire. | 
| String | getIdToken()
 The  idTokenis not implemented or supported. | 
| String | getRefreshToken()
 A token that, if present, can be used to refresh a previously issued access token that might have expired. | 
| String | getTokenType()
 Used to notify the client that the returned token is an access token. | 
| int | hashCode() | 
| void | setAccessToken(String accessToken)
 A bearer token to access Amazon Web Services accounts and applications assigned to a user. | 
| void | setExpiresIn(Integer expiresIn)
 Indicates the time in seconds when an access token will expire. | 
| void | setIdToken(String idToken)
 The  idTokenis not implemented or supported. | 
| void | setRefreshToken(String refreshToken)
 A token that, if present, can be used to refresh a previously issued access token that might have expired. | 
| void | setTokenType(String tokenType)
 Used to notify the client that the returned token is an access token. | 
| String | toString()Returns a string representation of this object. | 
| CreateTokenResult | withAccessToken(String accessToken)
 A bearer token to access Amazon Web Services accounts and applications assigned to a user. | 
| CreateTokenResult | withExpiresIn(Integer expiresIn)
 Indicates the time in seconds when an access token will expire. | 
| CreateTokenResult | withIdToken(String idToken)
 The  idTokenis not implemented or supported. | 
| CreateTokenResult | withRefreshToken(String refreshToken)
 A token that, if present, can be used to refresh a previously issued access token that might have expired. | 
| CreateTokenResult | withTokenType(String tokenType)
 Used to notify the client that the returned token is an access token. | 
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setAccessToken(String accessToken)
A bearer token to access Amazon Web Services accounts and applications assigned to a user.
accessToken - A bearer token to access Amazon Web Services accounts and applications assigned to a user.public String getAccessToken()
A bearer token to access Amazon Web Services accounts and applications assigned to a user.
public CreateTokenResult withAccessToken(String accessToken)
A bearer token to access Amazon Web Services accounts and applications assigned to a user.
accessToken - A bearer token to access Amazon Web Services accounts and applications assigned to a user.public void setTokenType(String tokenType)
 Used to notify the client that the returned token is an access token. The supported token type is
 Bearer.
 
tokenType - Used to notify the client that the returned token is an access token. The supported token type is
        Bearer.public String getTokenType()
 Used to notify the client that the returned token is an access token. The supported token type is
 Bearer.
 
Bearer.public CreateTokenResult withTokenType(String tokenType)
 Used to notify the client that the returned token is an access token. The supported token type is
 Bearer.
 
tokenType - Used to notify the client that the returned token is an access token. The supported token type is
        Bearer.public void setExpiresIn(Integer expiresIn)
Indicates the time in seconds when an access token will expire.
expiresIn - Indicates the time in seconds when an access token will expire.public Integer getExpiresIn()
Indicates the time in seconds when an access token will expire.
public CreateTokenResult withExpiresIn(Integer expiresIn)
Indicates the time in seconds when an access token will expire.
expiresIn - Indicates the time in seconds when an access token will expire.public void setRefreshToken(String refreshToken)
A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
refreshToken - A token that, if present, can be used to refresh a previously issued access token that might have
        expired.
        For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
public String getRefreshToken()
A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
public CreateTokenResult withRefreshToken(String refreshToken)
A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
refreshToken - A token that, if present, can be used to refresh a previously issued access token that might have
        expired.
        For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
public void setIdToken(String idToken)
 The idToken is not implemented or supported. For more information about the features and limitations
 of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API
 Reference.
 
A JSON Web Token (JWT) that identifies who is associated with the issued access token.
idToken - The idToken is not implemented or supported. For more information about the features and
        limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this
        Guide in the IAM Identity Center
        OIDC API Reference.
        A JSON Web Token (JWT) that identifies who is associated with the issued access token.
public String getIdToken()
 The idToken is not implemented or supported. For more information about the features and limitations
 of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API
 Reference.
 
A JSON Web Token (JWT) that identifies who is associated with the issued access token.
idToken is not implemented or supported. For more information about the features and
         limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this
         Guide in the IAM Identity Center
         OIDC API Reference.
         A JSON Web Token (JWT) that identifies who is associated with the issued access token.
public CreateTokenResult withIdToken(String idToken)
 The idToken is not implemented or supported. For more information about the features and limitations
 of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API
 Reference.
 
A JSON Web Token (JWT) that identifies who is associated with the issued access token.
idToken - The idToken is not implemented or supported. For more information about the features and
        limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this
        Guide in the IAM Identity Center
        OIDC API Reference.
        A JSON Web Token (JWT) that identifies who is associated with the issued access token.
public String toString()
toString in class ObjectObject.toString()public CreateTokenResult clone()