public class CreatePlatformApplicationRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Input for CreatePlatformApplication action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalMap<java.lang.String,java.lang.String> |
attributes
For a list of attributes, see SetPlatformApplicationAttributes
|
private java.lang.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.
|
private java.lang.String |
platform
The following platforms are supported: ADM (Amazon Device Messaging),
APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google
Cloud Messaging).
|
NOOP
Constructor and Description |
---|
CreatePlatformApplicationRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePlatformApplicationRequest |
addAttributesEntry(java.lang.String key,
java.lang.String value) |
CreatePlatformApplicationRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
CreatePlatformApplicationRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
For a list of attributes, see SetPlatformApplicationAttributes
|
java.lang.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.
|
java.lang.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(java.util.Map<java.lang.String,java.lang.String> attributes)
For a list of attributes, see SetPlatformApplicationAttributes
|
void |
setName(java.lang.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(java.lang.String platform)
The following platforms are supported: ADM (Amazon Device Messaging),
APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google
Cloud Messaging).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePlatformApplicationRequest |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
For a list of attributes, see SetPlatformApplicationAttributes
|
CreatePlatformApplicationRequest |
withName(java.lang.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(java.lang.String platform)
The following platforms are supported: ADM (Amazon Device Messaging),
APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google
Cloud Messaging).
|
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
private java.lang.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.
private java.lang.String platform
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).
private SdkInternalMap<java.lang.String,java.lang.String> attributes
For a list of attributes, see SetPlatformApplicationAttributes
public void setName(java.lang.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.
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.public java.lang.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.
public CreatePlatformApplicationRequest withName(java.lang.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.
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.public void setPlatform(java.lang.String platform)
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).
platform
- The following platforms are supported: ADM (Amazon Device
Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX,
and GCM (Google Cloud Messaging).public java.lang.String getPlatform()
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).
public CreatePlatformApplicationRequest withPlatform(java.lang.String platform)
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging).
platform
- The following platforms are supported: ADM (Amazon Device
Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX,
and GCM (Google Cloud Messaging).public java.util.Map<java.lang.String,java.lang.String> getAttributes()
For a list of attributes, see SetPlatformApplicationAttributes
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
For a list of attributes, see SetPlatformApplicationAttributes
attributes
- For a list of attributes, see SetPlatformApplicationAttributespublic CreatePlatformApplicationRequest withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
For a list of attributes, see SetPlatformApplicationAttributes
attributes
- For a list of attributes, see SetPlatformApplicationAttributespublic CreatePlatformApplicationRequest addAttributesEntry(java.lang.String key, java.lang.String value)
public CreatePlatformApplicationRequest clearAttributesEntries()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreatePlatformApplicationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()