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 RegisterDeviceRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetIdentityId()The unique ID for this identity.StringgetIdentityPoolId()A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.StringgetPlatform()The SNS platform type (e.g.StringgetToken()The push token.inthashCode()voidsetIdentityId(String identityId)The unique ID for this identity.voidsetIdentityPoolId(String identityPoolId)A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.voidsetPlatform(Platform platform)The SNS platform type (e.g.voidsetPlatform(String platform)The SNS platform type (e.g.voidsetToken(String token)The push token.StringtoString()Returns a string representation of this object; useful for testing and debugging.RegisterDeviceRequestwithIdentityId(String identityId)The unique ID for this identity.RegisterDeviceRequestwithIdentityPoolId(String identityPoolId)A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.RegisterDeviceRequestwithPlatform(Platform platform)The SNS platform type (e.g.RegisterDeviceRequestwithPlatform(String platform)The SNS platform type (e.g.RegisterDeviceRequestwithToken(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RegisterDeviceRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-