@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()
An opaque token to access AWS SSO resources assigned to a user.
|
Integer |
getExpiresIn()
Indicates the time in seconds when an access token will expire.
|
String |
getIdToken()
The identifier of the user that associated with the access token, if present.
|
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)
An opaque token to access AWS SSO resources assigned to a user.
|
void |
setExpiresIn(Integer expiresIn)
Indicates the time in seconds when an access token will expire.
|
void |
setIdToken(String idToken)
The identifier of the user that associated with the access token, if present.
|
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)
An opaque token to access AWS SSO resources assigned to a user.
|
CreateTokenResult |
withExpiresIn(Integer expiresIn)
Indicates the time in seconds when an access token will expire.
|
CreateTokenResult |
withIdToken(String idToken)
The identifier of the user that associated with the access token, if present.
|
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, setSdkResponseMetadata
public void setAccessToken(String accessToken)
An opaque token to access AWS SSO resources assigned to a user.
accessToken
- An opaque token to access AWS SSO resources assigned to a user.public String getAccessToken()
An opaque token to access AWS SSO resources assigned to a user.
public CreateTokenResult withAccessToken(String accessToken)
An opaque token to access AWS SSO resources assigned to a user.
accessToken
- An opaque token to access AWS SSO resources assigned to a user.public void setTokenType(String tokenType)
Used to notify the client that the returned token is an access token. The supported type is
BearerToken
.
tokenType
- Used to notify the client that the returned token is an access token. The supported type is
BearerToken
.public String getTokenType()
Used to notify the client that the returned token is an access token. The supported type is
BearerToken
.
BearerToken
.public CreateTokenResult withTokenType(String tokenType)
Used to notify the client that the returned token is an access token. The supported type is
BearerToken
.
tokenType
- Used to notify the client that the returned token is an access token. The supported type is
BearerToken
.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.
refreshToken
- A token that, if present, can be used to refresh a previously issued access token that might have expired.public String getRefreshToken()
A token that, if present, can be used to refresh a previously issued access token that might have expired.
public CreateTokenResult withRefreshToken(String refreshToken)
A token that, if present, can be used to refresh a previously issued access token that might have expired.
refreshToken
- A token that, if present, can be used to refresh a previously issued access token that might have expired.public void setIdToken(String idToken)
The identifier of the user that associated with the access token, if present.
idToken
- The identifier of the user that associated with the access token, if present.public String getIdToken()
The identifier of the user that associated with the access token, if present.
public CreateTokenResult withIdToken(String idToken)
The identifier of the user that associated with the access token, if present.
idToken
- The identifier of the user that associated with the access token, if present.public String toString()
toString
in class Object
Object.toString()
public CreateTokenResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.