Struct aws_sdk_sns::operation::get_endpoint_attributes::builders::GetEndpointAttributesOutputBuilder
source · #[non_exhaustive]pub struct GetEndpointAttributesOutputBuilder { /* private fields */ }
Expand description
A builder for GetEndpointAttributesOutput
.
Implementations§
source§impl GetEndpointAttributesOutputBuilder
impl GetEndpointAttributesOutputBuilder
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
.
Attributes 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.The device token for the iOS platform is returned in lowercase.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
Attributes 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.The device token for the iOS platform is returned in lowercase.
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
Attributes 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.The device token for the iOS platform is returned in lowercase.
sourcepub fn build(self) -> GetEndpointAttributesOutput
pub fn build(self) -> GetEndpointAttributesOutput
Consumes the builder and constructs a GetEndpointAttributesOutput
.
Trait Implementations§
source§impl Clone for GetEndpointAttributesOutputBuilder
impl Clone for GetEndpointAttributesOutputBuilder
source§fn clone(&self) -> GetEndpointAttributesOutputBuilder
fn clone(&self) -> GetEndpointAttributesOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetEndpointAttributesOutputBuilder
impl Default for GetEndpointAttributesOutputBuilder
source§fn default() -> GetEndpointAttributesOutputBuilder
fn default() -> GetEndpointAttributesOutputBuilder
source§impl PartialEq for GetEndpointAttributesOutputBuilder
impl PartialEq for GetEndpointAttributesOutputBuilder
source§fn eq(&self, other: &GetEndpointAttributesOutputBuilder) -> bool
fn eq(&self, other: &GetEndpointAttributesOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.