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:
  • Constructor Details

    • RegisterDeviceRequest

      public RegisterDeviceRequest()
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: