Struct aws_sdk_sns::operation::set_endpoint_attributes::builders::SetEndpointAttributesInputBuilder
source · #[non_exhaustive]pub struct SetEndpointAttributesInputBuilder { /* private fields */ }Expand description
A builder for SetEndpointAttributesInput.
Implementations§
source§impl SetEndpointAttributesInputBuilder
impl SetEndpointAttributesInputBuilder
sourcepub fn endpoint_arn(self, input: impl Into<String>) -> Self
pub fn endpoint_arn(self, input: impl Into<String>) -> Self
EndpointArn used for SetEndpointAttributes action.
sourcepub fn set_endpoint_arn(self, input: Option<String>) -> Self
pub fn set_endpoint_arn(self, input: Option<String>) -> Self
EndpointArn used for SetEndpointAttributes action.
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.
A map of the endpoint attributes. Attributes in this map include the following:
-
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. -
Enabled– flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token. -
Token– device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
A map of the endpoint attributes. Attributes in this map include the following:
-
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. -
Enabled– flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token. -
Token– device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.
sourcepub fn build(self) -> Result<SetEndpointAttributesInput, BuildError>
pub fn build(self) -> Result<SetEndpointAttributesInput, BuildError>
Consumes the builder and constructs a SetEndpointAttributesInput.
Trait Implementations§
source§impl Clone for SetEndpointAttributesInputBuilder
impl Clone for SetEndpointAttributesInputBuilder
source§fn clone(&self) -> SetEndpointAttributesInputBuilder
fn clone(&self) -> SetEndpointAttributesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SetEndpointAttributesInputBuilder
impl Default for SetEndpointAttributesInputBuilder
source§fn default() -> SetEndpointAttributesInputBuilder
fn default() -> SetEndpointAttributesInputBuilder
source§impl PartialEq<SetEndpointAttributesInputBuilder> for SetEndpointAttributesInputBuilder
impl PartialEq<SetEndpointAttributesInputBuilder> for SetEndpointAttributesInputBuilder
source§fn eq(&self, other: &SetEndpointAttributesInputBuilder) -> bool
fn eq(&self, other: &SetEndpointAttributesInputBuilder) -> bool
self and other values to be equal, and is used
by ==.