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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreatePlatformApplicationRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePlatformApplicationRequest
addAttributesEntry(String key, String value)
CreatePlatformApplicationRequest
clearAttributesEntries()
Removes all the entries added into Attributes.CreatePlatformApplicationRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
Map<String,String>
getAttributes()
For a list of attributes, see SetPlatformApplicationAttributesString
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.String
getPlatform()
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).int
hashCode()
void
setAttributes(Map<String,String> attributes)
For a list of attributes, see SetPlatformApplicationAttributesvoid
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.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).String
toString()
Returns a string representation of this object; useful for testing and debugging.CreatePlatformApplicationRequest
withAttributes(Map<String,String> attributes)
For a list of attributes, see SetPlatformApplicationAttributesCreatePlatformApplicationRequest
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.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).-
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
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreatePlatformApplicationRequest 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()
-
-