public class RegisterDeviceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
A request to RegisterDevice.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
identityId
The unique ID for this identity.
|
private java.lang.String |
identityPoolId
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
private java.lang.String |
platform
The SNS platform type (e.g.
|
private java.lang.String |
token
The push token.
|
NOOP
Constructor and Description |
---|
RegisterDeviceRequest() |
Modifier and Type | Method and Description |
---|---|
RegisterDeviceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIdentityId()
The unique ID for this identity.
|
java.lang.String |
getIdentityPoolId()
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
java.lang.String |
getPlatform()
The SNS platform type (e.g.
|
java.lang.String |
getToken()
The push token.
|
int |
hashCode() |
void |
setIdentityId(java.lang.String identityId)
The unique ID for this identity.
|
void |
setIdentityPoolId(java.lang.String identityPoolId)
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
void |
setPlatform(Platform platform)
The SNS platform type (e.g.
|
void |
setPlatform(java.lang.String platform)
The SNS platform type (e.g.
|
void |
setToken(java.lang.String token)
The push token.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RegisterDeviceRequest |
withIdentityId(java.lang.String identityId)
The unique ID for this identity.
|
RegisterDeviceRequest |
withIdentityPoolId(java.lang.String identityPoolId)
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
RegisterDeviceRequest |
withPlatform(Platform platform)
The SNS platform type (e.g.
|
RegisterDeviceRequest |
withPlatform(java.lang.String platform)
The SNS platform type (e.g.
|
RegisterDeviceRequest |
withToken(java.lang.String token)
The push token.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String identityPoolId
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to.
private java.lang.String identityId
The unique ID for this identity.
private java.lang.String platform
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
private java.lang.String token
The push token.
public void setIdentityPoolId(java.lang.String identityPoolId)
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to.
identityPoolId
- A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito. Here, the ID of the pool that the identity belongs to.public java.lang.String getIdentityPoolId()
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to.
public RegisterDeviceRequest withIdentityPoolId(java.lang.String identityPoolId)
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to.
identityPoolId
- A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito. Here, the ID of the pool that the identity belongs to.public void setIdentityId(java.lang.String identityId)
The unique ID for this identity.
identityId
- The unique ID for this identity.public java.lang.String getIdentityId()
The unique ID for this identity.
public RegisterDeviceRequest withIdentityId(java.lang.String identityId)
The unique ID for this identity.
identityId
- The unique ID for this identity.public void setPlatform(java.lang.String platform)
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).Platform
public java.lang.String getPlatform()
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
Platform
public RegisterDeviceRequest withPlatform(java.lang.String platform)
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).Platform
public void setPlatform(Platform platform)
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).Platform
public RegisterDeviceRequest withPlatform(Platform platform)
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).Platform
public void setToken(java.lang.String token)
The push token.
token
- The push token.public java.lang.String getToken()
The push token.
public RegisterDeviceRequest withToken(java.lang.String token)
The push token.
token
- The push token.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public RegisterDeviceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()