|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.sns.model.CreatePlatformEndpointRequest
public class CreatePlatformEndpointRequest
Container for the parameters to the CreatePlatformEndpoint operation
.
The CreatePlatformEndpoint
creates an endpoint for a device and mobile app on one of the supported push notification services, such as
GCM and APNS. CreatePlatformEndpoint
requires the PlatformApplicationArn that is returned from CreatePlatformApplication
.
The EndpointArn that is returned when using CreatePlatformEndpoint
can then be used by the Publish
action to send a message
to a mobile app or by the Subscribe
action for subscription to a topic. For more information, see Using Amazon SNS Mobile Push Notifications .
AmazonSNS.createPlatformEndpoint(CreatePlatformEndpointRequest)
,
Serialized FormConstructor Summary | |
---|---|
CreatePlatformEndpointRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Map<String,String> |
getAttributes()
For a list of attributes, see SetEndpointAttributes. |
String |
getCustomUserData()
Arbitrary user data to associate with the endpoint. |
String |
getPlatformApplicationArn()
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint. |
String |
getToken()
Unique identifier created by the notification service for an app on a device. |
int |
hashCode()
|
void |
setAttributes(Map<String,String> attributes)
For a list of attributes, see SetEndpointAttributes. |
void |
setCustomUserData(String customUserData)
Arbitrary user data to associate with the endpoint. |
void |
setPlatformApplicationArn(String platformApplicationArn)
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint. |
void |
setToken(String token)
Unique identifier created by the notification service for an app on a device. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreatePlatformEndpointRequest |
withAttributes(Map<String,String> attributes)
For a list of attributes, see SetEndpointAttributes. |
CreatePlatformEndpointRequest |
withCustomUserData(String customUserData)
Arbitrary user data to associate with the endpoint. |
CreatePlatformEndpointRequest |
withPlatformApplicationArn(String platformApplicationArn)
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint. |
CreatePlatformEndpointRequest |
withToken(String token)
Unique identifier created by the notification service for an app on a device. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreatePlatformEndpointRequest()
Method Detail |
---|
public String getPlatformApplicationArn()
public void setPlatformApplicationArn(String platformApplicationArn)
platformApplicationArn
- PlatformApplicationArn returned from CreatePlatformApplication is used
to create a an endpoint.public CreatePlatformEndpointRequest withPlatformApplicationArn(String platformApplicationArn)
Returns a reference to this object so that method calls can be chained together.
platformApplicationArn
- PlatformApplicationArn returned from CreatePlatformApplication is used
to create a an endpoint.
public String getToken()
public void setToken(String token)
token
- Unique identifier created by the notification service for an app on a
device. The specific name for Token will vary, depending on which
notification service is being used. For example, when using APNS as
the notification service, you need the device token. Alternatively,
when using GCM or ADM, the device token equivalent is called the
registration ID.public CreatePlatformEndpointRequest withToken(String token)
Returns a reference to this object so that method calls can be chained together.
token
- Unique identifier created by the notification service for an app on a
device. The specific name for Token will vary, depending on which
notification service is being used. For example, when using APNS as
the notification service, you need the device token. Alternatively,
when using GCM or ADM, the device token equivalent is called the
registration ID.
public String getCustomUserData()
public void setCustomUserData(String customUserData)
customUserData
- Arbitrary user data to associate with the endpoint. SNS does not use
this data. The data must be in UTF-8 format and less than 2KB.public CreatePlatformEndpointRequest withCustomUserData(String customUserData)
Returns a reference to this object so that method calls can be chained together.
customUserData
- Arbitrary user data to associate with the endpoint. SNS does not use
this data. The data must be in UTF-8 format and less than 2KB.
public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes
- For a list of attributes, see SetEndpointAttributes.public CreatePlatformEndpointRequest withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes
- For a list of attributes, see SetEndpointAttributes.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |