public class CreatePlatformApplicationRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a platform application object for one of the supported push
notification services, such as APNS and GCM (Firebase Cloud Messaging), to
which devices and mobile apps may register. You must specify
PlatformPrincipal
and PlatformCredential
attributes
when using the CreatePlatformApplication
action.
PlatformPrincipal
and PlatformCredential
are
received from the notification service.
For ADM
, PlatformPrincipal
is
client id
and PlatformCredential
is
client secret
.
For Baidu
, PlatformPrincipal
is
API key
and PlatformCredential
is
secret key
.
For APNS
and APNS_SANDBOX
,
PlatformPrincipal
is SSL certificate
and
PlatformCredential
is private key
.
For GCM
(Firebase Cloud Messaging), there is no
PlatformPrincipal
and the PlatformCredential
is
API key
.
For MPNS
, PlatformPrincipal
is
TLS certificate
and PlatformCredential
is
private key
.
For WNS
, PlatformPrincipal
is
Package Security Identifier
and PlatformCredential
is secret key
.
You can use the returned PlatformApplicationArn
as an attribute
for the CreatePlatformEndpoint
action.
Constructor and Description |
---|
CreatePlatformApplicationRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePlatformApplicationRequest |
addAttributesEntry(java.lang.String key,
java.lang.String value)
For a list of attributes, see SetPlatformApplicationAttributes
|
CreatePlatformApplicationRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
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 (Firebase
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 (Firebase
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 (Firebase
Cloud Messaging).
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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.
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(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 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.
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 java.lang.String getPlatform()
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).
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 (Firebase Cloud Messaging).
platform
- The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase 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 (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 GCM (Firebase Cloud Messaging).
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
For a list of attributes, see SetPlatformApplicationAttributes
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 SetPlatformApplicationAttributes
public CreatePlatformApplicationRequest withAttributes(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.