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 CreatePlatformApplicationRequestaddAttributesEntry(String key, String value)CreatePlatformApplicationRequestclearAttributesEntries()Removes all the entries added into Attributes.CreatePlatformApplicationRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)Map<String,String>getAttributes()For a list of attributes, see SetPlatformApplicationAttributesStringgetName()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.StringgetPlatform()The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).inthashCode()voidsetAttributes(Map<String,String> attributes)For a list of attributes, see SetPlatformApplicationAttributesvoidsetName(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.voidsetPlatform(String platform)The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).StringtoString()Returns a string representation of this object; useful for testing and debugging.CreatePlatformApplicationRequestwithAttributes(Map<String,String> attributes)For a list of attributes, see SetPlatformApplicationAttributesCreatePlatformApplicationRequestwithName(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.CreatePlatformApplicationRequestwithPlatform(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreatePlatformApplicationRequest 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()
-
-