public class CreatePlatformEndpointRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Input for CreatePlatformEndpoint action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalMap<java.lang.String,java.lang.String> |
attributes
For a list of attributes, see SetEndpointAttributes.
|
private java.lang.String |
customUserData
Arbitrary user data to associate with the endpoint.
|
private java.lang.String |
platformApplicationArn
PlatformApplicationArn returned from CreatePlatformApplication is used to
create a an endpoint.
|
private java.lang.String |
token
Unique identifier created by the notification service for an app on a
device.
|
NOOP
Constructor and Description |
---|
CreatePlatformEndpointRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePlatformEndpointRequest |
addAttributesEntry(java.lang.String key,
java.lang.String value) |
CreatePlatformEndpointRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
CreatePlatformEndpointRequest |
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 SetEndpointAttributes.
|
java.lang.String |
getCustomUserData()
Arbitrary user data to associate with the endpoint.
|
java.lang.String |
getPlatformApplicationArn()
PlatformApplicationArn returned from CreatePlatformApplication is used to
create a an endpoint.
|
java.lang.String |
getToken()
Unique identifier created by the notification service for an app on a
device.
|
int |
hashCode() |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
For a list of attributes, see SetEndpointAttributes.
|
void |
setCustomUserData(java.lang.String customUserData)
Arbitrary user data to associate with the endpoint.
|
void |
setPlatformApplicationArn(java.lang.String platformApplicationArn)
PlatformApplicationArn returned from CreatePlatformApplication is used to
create a an endpoint.
|
void |
setToken(java.lang.String token)
Unique identifier created by the notification service for an app on a
device.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePlatformEndpointRequest |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
For a list of attributes, see SetEndpointAttributes.
|
CreatePlatformEndpointRequest |
withCustomUserData(java.lang.String customUserData)
Arbitrary user data to associate with the endpoint.
|
CreatePlatformEndpointRequest |
withPlatformApplicationArn(java.lang.String platformApplicationArn)
PlatformApplicationArn returned from CreatePlatformApplication is used to
create a an endpoint.
|
CreatePlatformEndpointRequest |
withToken(java.lang.String token)
Unique identifier created by the notification service for an app on a
device.
|
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 platformApplicationArn
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
private java.lang.String 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.
private java.lang.String customUserData
Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.
private SdkInternalMap<java.lang.String,java.lang.String> attributes
For a list of attributes, see SetEndpointAttributes.
public void setPlatformApplicationArn(java.lang.String platformApplicationArn)
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
platformApplicationArn
- PlatformApplicationArn returned from CreatePlatformApplication is
used to create a an endpoint.public java.lang.String getPlatformApplicationArn()
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
public CreatePlatformEndpointRequest withPlatformApplicationArn(java.lang.String platformApplicationArn)
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
platformApplicationArn
- PlatformApplicationArn returned from CreatePlatformApplication is
used to create a an endpoint.public void setToken(java.lang.String 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.
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 java.lang.String getToken()
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(java.lang.String 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.
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 void setCustomUserData(java.lang.String customUserData)
Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.
customUserData
- Arbitrary user data to associate with the endpoint. Amazon SNS
does not use this data. The data must be in UTF-8 format and less
than 2KB.public java.lang.String getCustomUserData()
Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.
public CreatePlatformEndpointRequest withCustomUserData(java.lang.String customUserData)
Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.
customUserData
- Arbitrary user data to associate with the endpoint. Amazon SNS
does not use this data. The data must be in UTF-8 format and less
than 2KB.public java.util.Map<java.lang.String,java.lang.String> getAttributes()
For a list of attributes, see SetEndpointAttributes.
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
For a list of attributes, see SetEndpointAttributes.
attributes
- For a list of attributes, see SetEndpointAttributes.public CreatePlatformEndpointRequest withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
For a list of attributes, see SetEndpointAttributes.
attributes
- For a list of attributes, see SetEndpointAttributes.public CreatePlatformEndpointRequest addAttributesEntry(java.lang.String key, java.lang.String value)
public CreatePlatformEndpointRequest 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 CreatePlatformEndpointRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()