@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTokenRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateTokenRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTokenRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientId()
The unique identifier string for each client.
|
String |
getClientSecret()
A secret string generated for the client.
|
String |
getCode()
The authorization code received from the authorization service.
|
String |
getDeviceCode()
Used only when calling this API for the device code grant type.
|
String |
getGrantType()
Supports grant types for authorization code, refresh token, and device code request.
|
String |
getRedirectUri()
The location of the application that will receive the authorization code.
|
String |
getRefreshToken()
The token used to obtain an access token in the event that the access token is invalid or expired.
|
List<String> |
getScope()
The list of scopes that is defined by the client.
|
int |
hashCode() |
void |
setClientId(String clientId)
The unique identifier string for each client.
|
void |
setClientSecret(String clientSecret)
A secret string generated for the client.
|
void |
setCode(String code)
The authorization code received from the authorization service.
|
void |
setDeviceCode(String deviceCode)
Used only when calling this API for the device code grant type.
|
void |
setGrantType(String grantType)
Supports grant types for authorization code, refresh token, and device code request.
|
void |
setRedirectUri(String redirectUri)
The location of the application that will receive the authorization code.
|
void |
setRefreshToken(String refreshToken)
The token used to obtain an access token in the event that the access token is invalid or expired.
|
void |
setScope(Collection<String> scope)
The list of scopes that is defined by the client.
|
String |
toString()
Returns a string representation of this object.
|
CreateTokenRequest |
withClientId(String clientId)
The unique identifier string for each client.
|
CreateTokenRequest |
withClientSecret(String clientSecret)
A secret string generated for the client.
|
CreateTokenRequest |
withCode(String code)
The authorization code received from the authorization service.
|
CreateTokenRequest |
withDeviceCode(String deviceCode)
Used only when calling this API for the device code grant type.
|
CreateTokenRequest |
withGrantType(String grantType)
Supports grant types for authorization code, refresh token, and device code request.
|
CreateTokenRequest |
withRedirectUri(String redirectUri)
The location of the application that will receive the authorization code.
|
CreateTokenRequest |
withRefreshToken(String refreshToken)
The token used to obtain an access token in the event that the access token is invalid or expired.
|
CreateTokenRequest |
withScope(Collection<String> scope)
The list of scopes that is defined by the client.
|
CreateTokenRequest |
withScope(String... scope)
The list of scopes that is defined by the client.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientId(String clientId)
The unique identifier string for each client. This value should come from the persisted result of the RegisterClient API.
clientId
- The unique identifier string for each client. This value should come from the persisted result of the
RegisterClient API.public String getClientId()
The unique identifier string for each client. This value should come from the persisted result of the RegisterClient API.
public CreateTokenRequest withClientId(String clientId)
The unique identifier string for each client. This value should come from the persisted result of the RegisterClient API.
clientId
- The unique identifier string for each client. This value should come from the persisted result of the
RegisterClient API.public void setClientSecret(String clientSecret)
A secret string generated for the client. This value should come from the persisted result of the RegisterClient API.
clientSecret
- A secret string generated for the client. This value should come from the persisted result of the
RegisterClient API.public String getClientSecret()
A secret string generated for the client. This value should come from the persisted result of the RegisterClient API.
public CreateTokenRequest withClientSecret(String clientSecret)
A secret string generated for the client. This value should come from the persisted result of the RegisterClient API.
clientSecret
- A secret string generated for the client. This value should come from the persisted result of the
RegisterClient API.public void setGrantType(String grantType)
Supports grant types for authorization code, refresh token, and device code request.
grantType
- Supports grant types for authorization code, refresh token, and device code request.public String getGrantType()
Supports grant types for authorization code, refresh token, and device code request.
public CreateTokenRequest withGrantType(String grantType)
Supports grant types for authorization code, refresh token, and device code request.
grantType
- Supports grant types for authorization code, refresh token, and device code request.public void setDeviceCode(String deviceCode)
Used only when calling this API for the device code grant type. This short-term code is used to identify this authentication attempt. This should come from an in-memory reference to the result of the StartDeviceAuthorization API.
deviceCode
- Used only when calling this API for the device code grant type. This short-term code is used to identify
this authentication attempt. This should come from an in-memory reference to the result of the
StartDeviceAuthorization API.public String getDeviceCode()
Used only when calling this API for the device code grant type. This short-term code is used to identify this authentication attempt. This should come from an in-memory reference to the result of the StartDeviceAuthorization API.
public CreateTokenRequest withDeviceCode(String deviceCode)
Used only when calling this API for the device code grant type. This short-term code is used to identify this authentication attempt. This should come from an in-memory reference to the result of the StartDeviceAuthorization API.
deviceCode
- Used only when calling this API for the device code grant type. This short-term code is used to identify
this authentication attempt. This should come from an in-memory reference to the result of the
StartDeviceAuthorization API.public void setCode(String code)
The authorization code received from the authorization service. This parameter is required to perform an authorization grant request to get access to a token.
code
- The authorization code received from the authorization service. This parameter is required to perform an
authorization grant request to get access to a token.public String getCode()
The authorization code received from the authorization service. This parameter is required to perform an authorization grant request to get access to a token.
public CreateTokenRequest withCode(String code)
The authorization code received from the authorization service. This parameter is required to perform an authorization grant request to get access to a token.
code
- The authorization code received from the authorization service. This parameter is required to perform an
authorization grant request to get access to a token.public void setRefreshToken(String refreshToken)
The token used to obtain an access token in the event that the access token is invalid or expired. This token is not issued by the service.
refreshToken
- The token used to obtain an access token in the event that the access token is invalid or expired. This
token is not issued by the service.public String getRefreshToken()
The token used to obtain an access token in the event that the access token is invalid or expired. This token is not issued by the service.
public CreateTokenRequest withRefreshToken(String refreshToken)
The token used to obtain an access token in the event that the access token is invalid or expired. This token is not issued by the service.
refreshToken
- The token used to obtain an access token in the event that the access token is invalid or expired. This
token is not issued by the service.public List<String> getScope()
The list of scopes that is defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
public void setScope(Collection<String> scope)
The list of scopes that is defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
scope
- The list of scopes that is defined by the client. Upon authorization, this list is used to restrict
permissions when granting an access token.public CreateTokenRequest withScope(String... scope)
The list of scopes that is defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
NOTE: This method appends the values to the existing list (if any). Use
setScope(java.util.Collection)
or withScope(java.util.Collection)
if you want to override the
existing values.
scope
- The list of scopes that is defined by the client. Upon authorization, this list is used to restrict
permissions when granting an access token.public CreateTokenRequest withScope(Collection<String> scope)
The list of scopes that is defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
scope
- The list of scopes that is defined by the client. Upon authorization, this list is used to restrict
permissions when granting an access token.public void setRedirectUri(String redirectUri)
The location of the application that will receive the authorization code. Users authorize the service to send the request to this location.
redirectUri
- The location of the application that will receive the authorization code. Users authorize the service to
send the request to this location.public String getRedirectUri()
The location of the application that will receive the authorization code. Users authorize the service to send the request to this location.
public CreateTokenRequest withRedirectUri(String redirectUri)
The location of the application that will receive the authorization code. Users authorize the service to send the request to this location.
redirectUri
- The location of the application that will receive the authorization code. Users authorize the service to
send the request to this location.public String toString()
toString
in class Object
Object.toString()
public CreateTokenRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.