public class RegisterDeviceRequest extends AmazonWebServiceRequest implements Serializable
RegisterDevice operation
.
Registers a device to receive push sync notifications.
NOOP
Constructor and Description |
---|
RegisterDeviceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getIdentityId()
The unique ID for this identity.
|
String |
getIdentityPoolId()
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
String |
getPlatform()
The SNS platform type (e.g.
|
String |
getToken()
The push token.
|
int |
hashCode() |
void |
setIdentityId(String identityId)
The unique ID for this identity.
|
void |
setIdentityPoolId(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(String platform)
The SNS platform type (e.g.
|
void |
setToken(String token)
The push token.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RegisterDeviceRequest |
withIdentityId(String identityId)
The unique ID for this identity.
|
RegisterDeviceRequest |
withIdentityPoolId(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(String platform)
The SNS platform type (e.g.
|
RegisterDeviceRequest |
withToken(String token)
The push token.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getIdentityPoolId()
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityPoolId(String identityPoolId)
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
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 RegisterDeviceRequest withIdentityPoolId(String identityPoolId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
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 String getIdentityId()
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityId(String identityId)
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
identityId
- The unique ID for this identity.public RegisterDeviceRequest withIdentityId(String identityId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
identityId
- The unique ID for this identity.public String getPlatform()
Constraints:
Allowed Values: APNS, APNS_SANDBOX, GCM, ADM
Platform
public void setPlatform(String platform)
Constraints:
Allowed Values: APNS, APNS_SANDBOX, GCM, ADM
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).Platform
public RegisterDeviceRequest withPlatform(String platform)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: APNS, APNS_SANDBOX, GCM, ADM
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).Platform
public void setPlatform(Platform platform)
Constraints:
Allowed Values: APNS, APNS_SANDBOX, GCM, ADM
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).Platform
public RegisterDeviceRequest withPlatform(Platform platform)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: APNS, APNS_SANDBOX, GCM, ADM
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).Platform
public String getToken()
public void setToken(String token)
token
- The push token.public RegisterDeviceRequest withToken(String token)
Returns a reference to this object so that method calls can be chained together.
token
- The push token.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.