public class ConfirmDeviceRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Confirms tracking of the device. This API call is the call that begins device tracking.
Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.
| Constructor and Description |
|---|
ConfirmDeviceRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessToken()
A valid access token that Amazon Cognito issued to the user whose device
you want to confirm.
|
java.lang.String |
getDeviceKey()
The device key.
|
java.lang.String |
getDeviceName()
The device name.
|
DeviceSecretVerifierConfigType |
getDeviceSecretVerifierConfig()
The configuration of the device secret verifier.
|
int |
hashCode() |
void |
setAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose device
you want to confirm.
|
void |
setDeviceKey(java.lang.String deviceKey)
The device key.
|
void |
setDeviceName(java.lang.String deviceName)
The device name.
|
void |
setDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType deviceSecretVerifierConfig)
The configuration of the device secret verifier.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ConfirmDeviceRequest |
withAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose device
you want to confirm.
|
ConfirmDeviceRequest |
withDeviceKey(java.lang.String deviceKey)
The device key.
|
ConfirmDeviceRequest |
withDeviceName(java.lang.String deviceName)
The device name.
|
ConfirmDeviceRequest |
withDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType deviceSecretVerifierConfig)
The configuration of the device secret verifier.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getAccessToken()
A valid access token that Amazon Cognito issued to the user whose device you want to confirm.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
A valid access token that Amazon Cognito issued to the user whose device you want to confirm.
public void setAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose device you want to confirm.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken - A valid access token that Amazon Cognito issued to the user whose device you want to confirm.
public ConfirmDeviceRequest withAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose device you want to confirm.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken - A valid access token that Amazon Cognito issued to the user whose device you want to confirm.
public java.lang.String getDeviceKey()
The device key.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-f-]+
The device key.
public void setDeviceKey(java.lang.String deviceKey)
The device key.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-f-]+
deviceKey - The device key.
public ConfirmDeviceRequest withDeviceKey(java.lang.String deviceKey)
The device key.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-f-]+
deviceKey - The device key.
public DeviceSecretVerifierConfigType getDeviceSecretVerifierConfig()
The configuration of the device secret verifier.
The configuration of the device secret verifier.
public void setDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType deviceSecretVerifierConfig)
The configuration of the device secret verifier.
deviceSecretVerifierConfig - The configuration of the device secret verifier.
public ConfirmDeviceRequest withDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType deviceSecretVerifierConfig)
The configuration of the device secret verifier.
Returns a reference to this object so that method calls can be chained together.
deviceSecretVerifierConfig - The configuration of the device secret verifier.
public java.lang.String getDeviceName()
The device name.
Constraints:
Length: 1 - 1024
The device name.
public void setDeviceName(java.lang.String deviceName)
The device name.
Constraints:
Length: 1 - 1024
deviceName - The device name.
public ConfirmDeviceRequest withDeviceName(java.lang.String deviceName)
The device name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
deviceName - The device name.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object