public class CreatePlatformApplicationRequest extends AmazonWebServiceRequest implements Serializable
Creates a platform application object for one of the supported push
notification services, such as APNS and FCM, to which devices and mobile apps
may register. You must specify PlatformPrincipal and PlatformCredential
attributes when using the CreatePlatformApplication action. The
PlatformPrincipal is received from the notification service. For
APNS/APNS_SANDBOX, PlatformPrincipal is "SSL certificate". For FCM,
PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is
"client id". The PlatformCredential is also received from the notification
service. For WNS, PlatformPrincipal is "Package Security Identifier". For
MPNS, PlatformPrincipal is "TLS certificate". For Baidu, PlatformPrincipal is
"API key".
For APNS/APNS_SANDBOX, PlatformCredential is "private key". For FCM,
PlatformCredential is "API key". For ADM, PlatformCredential is
"client secret". For WNS, PlatformCredential is "secret key". For MPNS,
PlatformCredential is "private key". For Baidu, PlatformCredential is
"secret key". The PlatformApplicationArn that is returned when using
CreatePlatformApplication is then used as an attribute for the
CreatePlatformEndpoint action.
| Constructor and Description |
|---|
CreatePlatformApplicationRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreatePlatformApplicationRequest |
addAttributesEntry(String key,
String value)
For a list of attributes, see SetPlatformApplicationAttributes
|
CreatePlatformApplicationRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
For a list of attributes, see SetPlatformApplicationAttributes
|
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.
|
String |
getPlatform()
The following platforms are supported: ADM (Amazon Device Messaging),
APNS (Apple Push Notification Service), APNS_SANDBOX, and FCM (Firebase
Cloud Messaging).
|
int |
hashCode() |
void |
setAttributes(Map<String,String> attributes)
For a list of attributes, see SetPlatformApplicationAttributes
|
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.
|
void |
setPlatform(String platform)
The following platforms are supported: ADM (Amazon Device Messaging),
APNS (Apple Push Notification Service), APNS_SANDBOX, and FCM (Firebase
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 SetPlatformApplicationAttributes
|
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.
|
CreatePlatformApplicationRequest |
withPlatform(String platform)
The following platforms are supported: ADM (Amazon Device Messaging),
APNS (Apple Push Notification Service), APNS_SANDBOX, and FCM (Firebase
Cloud Messaging).
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic 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.
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 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.
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 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.
Returns a reference to this object so that method calls can be chained together.
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 String getPlatform()
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and FCM (Firebase Cloud Messaging).
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and FCM (Firebase Cloud Messaging).
public void setPlatform(String platform)
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and FCM (Firebase Cloud Messaging).
platform - The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and FCM (Firebase Cloud Messaging).
public CreatePlatformApplicationRequest withPlatform(String platform)
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and FCM (Firebase Cloud Messaging).
Returns a reference to this object so that method calls can be chained together.
platform - The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and FCM (Firebase Cloud Messaging).
public Map<String,String> getAttributes()
For a list of attributes, see SetPlatformApplicationAttributes
For a list of attributes, see SetPlatformApplicationAttributes
public void setAttributes(Map<String,String> attributes)
For a list of attributes, see SetPlatformApplicationAttributes
attributes - For a list of attributes, see SetPlatformApplicationAttributes
public CreatePlatformApplicationRequest withAttributes(Map<String,String> attributes)
For a list of attributes, see SetPlatformApplicationAttributes
Returns a reference to this object so that method calls can be chained together.
attributes - For a list of attributes, see SetPlatformApplicationAttributes
public CreatePlatformApplicationRequest addAttributesEntry(String key, String value)
For a list of attributes, see SetPlatformApplicationAttributes
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Attributes.value - The corresponding value of the entry to be added into
Attributes.public CreatePlatformApplicationRequest clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.