Class CreatePlatformEndpointRequest

    • Constructor Detail

      • CreatePlatformEndpointRequest

        public CreatePlatformEndpointRequest()
    • Method Detail

      • setPlatformApplicationArn

        public void setPlatformApplicationArn​(String platformApplicationArn)

        PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.

        Parameters:
        platformApplicationArn - PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
      • getPlatformApplicationArn

        public String getPlatformApplicationArn()

        PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.

        Returns:
        PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
      • withPlatformApplicationArn

        public CreatePlatformEndpointRequest withPlatformApplicationArn​(String platformApplicationArn)

        PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.

        Parameters:
        platformApplicationArn - PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setToken

        public void setToken​(String token)

        Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM or ADM, the device token equivalent is called the registration ID.

        Parameters:
        token - Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM or ADM, the device token equivalent is called the registration ID.
      • getToken

        public String getToken()

        Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM or ADM, the device token equivalent is called the registration ID.

        Returns:
        Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM or ADM, the device token equivalent is called the registration ID.
      • withToken

        public CreatePlatformEndpointRequest withToken​(String token)

        Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM or ADM, the device token equivalent is called the registration ID.

        Parameters:
        token - Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM or ADM, the device token equivalent is called the registration ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCustomUserData

        public void setCustomUserData​(String customUserData)

        Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.

        Parameters:
        customUserData - Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.
      • getCustomUserData

        public String getCustomUserData()

        Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.

        Returns:
        Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.
      • withCustomUserData

        public CreatePlatformEndpointRequest withCustomUserData​(String customUserData)

        Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.

        Parameters:
        customUserData - Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clearAttributesEntries

        public CreatePlatformEndpointRequest clearAttributesEntries()
        Removes all the entries added into Attributes. <p> 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object