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 get_endpoint_arn(&self) -> &Option<String>
pub fn get_endpoint_arn(&self) -> &Option<String>
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 get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
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.
source§impl SetEndpointAttributesInputBuilder
impl SetEndpointAttributesInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<SetEndpointAttributesOutput, SdkError<SetEndpointAttributesError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<SetEndpointAttributesOutput, SdkError<SetEndpointAttributesError, HttpResponse>>
Sends a request with this input using the given client.
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 for SetEndpointAttributesInputBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for SetEndpointAttributesInputBuilder
Auto Trait Implementations§
impl Freeze for SetEndpointAttributesInputBuilder
impl RefUnwindSafe for SetEndpointAttributesInputBuilder
impl Send for SetEndpointAttributesInputBuilder
impl Sync for SetEndpointAttributesInputBuilder
impl Unpin for SetEndpointAttributesInputBuilder
impl UnwindSafe for SetEndpointAttributesInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more