#[non_exhaustive]pub struct SnsTopicPublishActionBuilder { /* private fields */ }
Expand description
A builder for SnsTopicPublishAction
.
Implementations§
source§impl SnsTopicPublishActionBuilder
impl SnsTopicPublishActionBuilder
sourcepub fn target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The ARN of the Amazon SNS target where the message is sent.
This field is required.sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The ARN of the Amazon SNS target where the message is sent.
sourcepub fn get_target_arn(&self) -> &Option<String>
pub fn get_target_arn(&self) -> &Option<String>
The ARN of the Amazon SNS target where the message is sent.
sourcepub fn payload(self, input: Payload) -> Self
pub fn payload(self, input: Payload) -> Self
You can configure the action payload when you send a message as an Amazon SNS push notification.
sourcepub fn set_payload(self, input: Option<Payload>) -> Self
pub fn set_payload(self, input: Option<Payload>) -> Self
You can configure the action payload when you send a message as an Amazon SNS push notification.
sourcepub fn get_payload(&self) -> &Option<Payload>
pub fn get_payload(&self) -> &Option<Payload>
You can configure the action payload when you send a message as an Amazon SNS push notification.
sourcepub fn build(self) -> Result<SnsTopicPublishAction, BuildError>
pub fn build(self) -> Result<SnsTopicPublishAction, BuildError>
Consumes the builder and constructs a SnsTopicPublishAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SnsTopicPublishActionBuilder
impl Clone for SnsTopicPublishActionBuilder
source§fn clone(&self) -> SnsTopicPublishActionBuilder
fn clone(&self) -> SnsTopicPublishActionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SnsTopicPublishActionBuilder
impl Debug for SnsTopicPublishActionBuilder
source§impl Default for SnsTopicPublishActionBuilder
impl Default for SnsTopicPublishActionBuilder
source§fn default() -> SnsTopicPublishActionBuilder
fn default() -> SnsTopicPublishActionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SnsTopicPublishActionBuilder
impl PartialEq for SnsTopicPublishActionBuilder
source§fn eq(&self, other: &SnsTopicPublishActionBuilder) -> bool
fn eq(&self, other: &SnsTopicPublishActionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SnsTopicPublishActionBuilder
Auto Trait Implementations§
impl Freeze for SnsTopicPublishActionBuilder
impl RefUnwindSafe for SnsTopicPublishActionBuilder
impl Send for SnsTopicPublishActionBuilder
impl Sync for SnsTopicPublishActionBuilder
impl Unpin for SnsTopicPublishActionBuilder
impl UnwindSafe for SnsTopicPublishActionBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.