public class UpdateDeviceStatusRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Updates the device status.
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 |
|---|
UpdateDeviceStatusRequest() |
| 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
status you want to update.
|
java.lang.String |
getDeviceKey()
The device key.
|
java.lang.String |
getDeviceRememberedStatus()
The status of whether a device is remembered.
|
int |
hashCode() |
void |
setAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose device
status you want to update.
|
void |
setDeviceKey(java.lang.String deviceKey)
The device key.
|
void |
setDeviceRememberedStatus(DeviceRememberedStatusType deviceRememberedStatus)
The status of whether a device is remembered.
|
void |
setDeviceRememberedStatus(java.lang.String deviceRememberedStatus)
The status of whether a device is remembered.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateDeviceStatusRequest |
withAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose device
status you want to update.
|
UpdateDeviceStatusRequest |
withDeviceKey(java.lang.String deviceKey)
The device key.
|
UpdateDeviceStatusRequest |
withDeviceRememberedStatus(DeviceRememberedStatusType deviceRememberedStatus)
The status of whether a device is remembered.
|
UpdateDeviceStatusRequest |
withDeviceRememberedStatus(java.lang.String deviceRememberedStatus)
The status of whether a device is remembered.
|
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 status you want to update.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
A valid access token that Amazon Cognito issued to the user whose device status you want to update.
public void setAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose device status you want to update.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken - A valid access token that Amazon Cognito issued to the user whose device status you want to update.
public UpdateDeviceStatusRequest withAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose device status you want to update.
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 status you want to update.
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 UpdateDeviceStatusRequest 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 java.lang.String getDeviceRememberedStatus()
The status of whether a device is remembered.
Constraints:
Allowed Values: remembered, not_remembered
The status of whether a device is remembered.
DeviceRememberedStatusTypepublic void setDeviceRememberedStatus(java.lang.String deviceRememberedStatus)
The status of whether a device is remembered.
Constraints:
Allowed Values: remembered, not_remembered
deviceRememberedStatus - The status of whether a device is remembered.
DeviceRememberedStatusTypepublic UpdateDeviceStatusRequest withDeviceRememberedStatus(java.lang.String deviceRememberedStatus)
The status of whether a device is remembered.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: remembered, not_remembered
deviceRememberedStatus - The status of whether a device is remembered.
DeviceRememberedStatusTypepublic void setDeviceRememberedStatus(DeviceRememberedStatusType deviceRememberedStatus)
The status of whether a device is remembered.
Constraints:
Allowed Values: remembered, not_remembered
deviceRememberedStatus - The status of whether a device is remembered.
DeviceRememberedStatusTypepublic UpdateDeviceStatusRequest withDeviceRememberedStatus(DeviceRememberedStatusType deviceRememberedStatus)
The status of whether a device is remembered.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: remembered, not_remembered
deviceRememberedStatus - The status of whether a device is remembered.
DeviceRememberedStatusTypepublic 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