Class CreatePlatformEndpointRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
Input for CreatePlatformEndpoint action.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesEntry
(String key, String value) Removes all the entries added into Attributes.clone()
Creates a shallow clone of this request.boolean
For a list of attributes, see SetEndpointAttributes.Arbitrary user data to associate with the endpoint.PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.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
Unique identifier created by the notification service for an app on a device.toString()
Returns a string representation of this object; useful for testing and debugging.withAttributes
(Map<String, String> attributes) For a list of attributes, see SetEndpointAttributes.withCustomUserData
(String customUserData) Arbitrary user data to associate with the endpoint.withPlatformApplicationArn
(String platformApplicationArn) PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.Unique identifier created by the notification service for an app on a device.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
CreatePlatformEndpointRequest
public CreatePlatformEndpointRequest()
-
-
Method Details
-
setPlatformApplicationArn
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
- Parameters:
platformApplicationArn
- PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
-
getPlatformApplicationArn
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
- Returns:
- PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
-
withPlatformApplicationArn
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
- Parameters:
platformApplicationArn
- PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setToken
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withToken
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCustomUserData
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withCustomUserData
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttributes
For a list of attributes, see SetEndpointAttributes.
- Returns:
- For a list of attributes, see SetEndpointAttributes.
-
setAttributes
For a list of attributes, see SetEndpointAttributes.
- Parameters:
attributes
- For a list of attributes, see SetEndpointAttributes.
-
withAttributes
For a list of attributes, see SetEndpointAttributes.
- Parameters:
attributes
- For a list of attributes, see SetEndpointAttributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAttributesEntry
-
clearAttributesEntries
Removes all the entries added into Attributes. <p> Returns a reference to this object so that method calls can be chained together. -
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-