@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExchangeCodeForTokenResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ExchangeCodeForTokenResult() |
Modifier and Type | Method and Description |
---|---|
ExchangeCodeForTokenResult |
clone() |
boolean |
equals(Object obj) |
String |
getAccessToken()
The access token.
|
Integer |
getExpiresIn()
The date and time when the new access token expires.
|
String |
getRefreshToken()
The token to use to refresh a previously issued access token that might have expired.
|
int |
hashCode() |
void |
setAccessToken(String accessToken)
The access token.
|
void |
setExpiresIn(Integer expiresIn)
The date and time when the new access token expires.
|
void |
setRefreshToken(String refreshToken)
The token to use to refresh a previously issued access token that might have expired.
|
String |
toString()
Returns a string representation of this object.
|
ExchangeCodeForTokenResult |
withAccessToken(String accessToken)
The access token.
|
ExchangeCodeForTokenResult |
withExpiresIn(Integer expiresIn)
The date and time when the new access token expires.
|
ExchangeCodeForTokenResult |
withRefreshToken(String refreshToken)
The token to use to refresh a previously issued access token that might have expired.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setAccessToken(String accessToken)
The access token.
accessToken
- The access token.public String getAccessToken()
The access token.
public ExchangeCodeForTokenResult withAccessToken(String accessToken)
The access token.
accessToken
- The access token.public void setExpiresIn(Integer expiresIn)
The date and time when the new access token expires.
expiresIn
- The date and time when the new access token expires.public Integer getExpiresIn()
The date and time when the new access token expires.
public ExchangeCodeForTokenResult withExpiresIn(Integer expiresIn)
The date and time when the new access token expires.
expiresIn
- The date and time when the new access token expires.public void setRefreshToken(String refreshToken)
The token to use to refresh a previously issued access token that might have expired.
refreshToken
- The token to use to refresh a previously issued access token that might have expired.public String getRefreshToken()
The token to use to refresh a previously issued access token that might have expired.
public ExchangeCodeForTokenResult withRefreshToken(String refreshToken)
The token to use to refresh a previously issued access token that might have expired.
refreshToken
- The token to use to refresh a previously issued access token that might have expired.public String toString()
toString
in class Object
Object.toString()
public ExchangeCodeForTokenResult clone()