Struct aws_sdk_sns::operation::create_platform_endpoint::builders::CreatePlatformEndpointInputBuilder
source · #[non_exhaustive]pub struct CreatePlatformEndpointInputBuilder { /* private fields */ }Expand description
A builder for CreatePlatformEndpointInput.
Implementations§
source§impl CreatePlatformEndpointInputBuilder
impl CreatePlatformEndpointInputBuilder
sourcepub fn platform_application_arn(self, input: impl Into<String>) -> Self
pub fn platform_application_arn(self, input: impl Into<String>) -> Self
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
This field is required.sourcepub fn set_platform_application_arn(self, input: Option<String>) -> Self
pub fn set_platform_application_arn(self, input: Option<String>) -> Self
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
sourcepub fn get_platform_application_arn(&self) -> &Option<String>
pub fn get_platform_application_arn(&self) -> &Option<String>
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
sourcepub fn token(self, input: impl Into<String>) -> Self
pub fn token(self, input: impl Into<String>) -> Self
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 (Firebase Cloud Messaging) or ADM, the device token equivalent is called the registration ID.
This field is required.sourcepub fn set_token(self, input: Option<String>) -> Self
pub fn set_token(self, input: Option<String>) -> Self
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 (Firebase Cloud Messaging) or ADM, the device token equivalent is called the registration ID.
sourcepub fn get_token(&self) -> &Option<String>
pub fn get_token(&self) -> &Option<String>
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 (Firebase Cloud Messaging) or ADM, the device token equivalent is called the registration ID.
sourcepub fn custom_user_data(self, input: impl Into<String>) -> Self
pub fn custom_user_data(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_custom_user_data(self, input: Option<String>) -> Self
pub fn set_custom_user_data(self, input: Option<String>) -> Self
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.
sourcepub fn get_custom_user_data(&self) -> &Option<String>
pub fn get_custom_user_data(&self) -> &Option<String>
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.
sourcepub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to attributes.
To override the contents of this collection use set_attributes.
For a list of attributes, see SetEndpointAttributes.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
For a list of attributes, see SetEndpointAttributes.
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
For a list of attributes, see SetEndpointAttributes.
sourcepub fn build(self) -> Result<CreatePlatformEndpointInput, BuildError>
pub fn build(self) -> Result<CreatePlatformEndpointInput, BuildError>
Consumes the builder and constructs a CreatePlatformEndpointInput.
source§impl CreatePlatformEndpointInputBuilder
impl CreatePlatformEndpointInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreatePlatformEndpointOutput, SdkError<CreatePlatformEndpointError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreatePlatformEndpointOutput, SdkError<CreatePlatformEndpointError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreatePlatformEndpointInputBuilder
impl Clone for CreatePlatformEndpointInputBuilder
source§fn clone(&self) -> CreatePlatformEndpointInputBuilder
fn clone(&self) -> CreatePlatformEndpointInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreatePlatformEndpointInputBuilder
impl Default for CreatePlatformEndpointInputBuilder
source§fn default() -> CreatePlatformEndpointInputBuilder
fn default() -> CreatePlatformEndpointInputBuilder
source§impl PartialEq for CreatePlatformEndpointInputBuilder
impl PartialEq for CreatePlatformEndpointInputBuilder
source§fn eq(&self, other: &CreatePlatformEndpointInputBuilder) -> bool
fn eq(&self, other: &CreatePlatformEndpointInputBuilder) -> bool
self and other values to be equal, and is used
by ==.