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