Class CreatePlatformApplicationRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.sns.model.CreatePlatformApplicationRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class CreatePlatformApplicationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Input for CreatePlatformApplication action.

See Also:
  • Constructor Details

    • CreatePlatformApplicationRequest

      public CreatePlatformApplicationRequest()
  • Method Details

    • setName

      public void setName(String name)

      Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.

      Parameters:
      name - Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.
    • getName

      public String getName()

      Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.

      Returns:
      Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.
    • withName

      public CreatePlatformApplicationRequest withName(String name)

      Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.

      Parameters:
      name - Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPlatform

      public void setPlatform(String platform)

      The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).

      Parameters:
      platform - The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).
    • getPlatform

      public String getPlatform()

      The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).

      Returns:
      The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).
    • withPlatform

      public CreatePlatformApplicationRequest withPlatform(String platform)

      The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).

      Parameters:
      platform - The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getAttributes

      public Map<String,String> getAttributes()

      For a list of attributes, see SetPlatformApplicationAttributes

      Returns:
      For a list of attributes, see SetPlatformApplicationAttributes
    • setAttributes

      public void setAttributes(Map<String,String> attributes)

      For a list of attributes, see SetPlatformApplicationAttributes

      Parameters:
      attributes - For a list of attributes, see SetPlatformApplicationAttributes
    • withAttributes

      public CreatePlatformApplicationRequest withAttributes(Map<String,String> attributes)

      For a list of attributes, see SetPlatformApplicationAttributes

      Parameters:
      attributes - For a list of attributes, see SetPlatformApplicationAttributes
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • addAttributesEntry

      public CreatePlatformApplicationRequest addAttributesEntry(String key, String value)
    • clearAttributesEntries

      public CreatePlatformApplicationRequest 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:
    • equals

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

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