Class RegisterDeviceRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cognitosync.model.RegisterDeviceRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class RegisterDeviceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A request to RegisterDevice.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description RegisterDeviceRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegisterDeviceRequest
clone()
Creates a shallow clone of this request.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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setIdentityPoolId
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.
- Parameters:
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.
-
getIdentityPoolId
public 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.
- Returns:
- 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.
-
withIdentityPoolId
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
setIdentityId
public void setIdentityId(String identityId)
The unique ID for this identity.
- Parameters:
identityId
- The unique ID for this identity.
-
getIdentityId
public String getIdentityId()
The unique ID for this identity.
- Returns:
- The unique ID for this identity.
-
withIdentityId
public RegisterDeviceRequest withIdentityId(String identityId)
The unique ID for this identity.
- Parameters:
identityId
- The unique ID for this identity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlatform
public void setPlatform(String platform)
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
- Parameters:
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).- See Also:
Platform
-
getPlatform
public String getPlatform()
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
- Returns:
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
- See Also:
Platform
-
withPlatform
public RegisterDeviceRequest withPlatform(String platform)
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
- Parameters:
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Platform
-
setPlatform
public void setPlatform(Platform platform)
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
- Parameters:
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).- See Also:
Platform
-
withPlatform
public RegisterDeviceRequest withPlatform(Platform platform)
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
- Parameters:
platform
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Platform
-
setToken
public void setToken(String token)
The push token.
- Parameters:
token
- The push token.
-
getToken
public String getToken()
The push token.
- Returns:
- The push token.
-
withToken
public RegisterDeviceRequest withToken(String token)
The push token.
- Parameters:
token
- The push token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RegisterDeviceRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-