Struct aws_sdk_mailmanager::types::builders::SendActionBuilder
source · #[non_exhaustive]pub struct SendActionBuilder { /* private fields */ }
Expand description
A builder for SendAction
.
Implementations§
source§impl SendActionBuilder
impl SendActionBuilder
sourcepub fn action_failure_policy(self, input: ActionFailurePolicy) -> Self
pub fn action_failure_policy(self, input: ActionFailurePolicy) -> Self
A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the caller does not have the permissions to call the sendRawEmail API.
sourcepub fn set_action_failure_policy(
self,
input: Option<ActionFailurePolicy>
) -> Self
pub fn set_action_failure_policy( self, input: Option<ActionFailurePolicy> ) -> Self
A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the caller does not have the permissions to call the sendRawEmail API.
sourcepub fn get_action_failure_policy(&self) -> &Option<ActionFailurePolicy>
pub fn get_action_failure_policy(&self) -> &Option<ActionFailurePolicy>
A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the caller does not have the permissions to call the sendRawEmail API.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the role to use for this action. This role must have access to the ses:SendRawEmail API.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the role to use for this action. This role must have access to the ses:SendRawEmail API.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the role to use for this action. This role must have access to the ses:SendRawEmail API.
sourcepub fn build(self) -> Result<SendAction, BuildError>
pub fn build(self) -> Result<SendAction, BuildError>
Consumes the builder and constructs a SendAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SendActionBuilder
impl Clone for SendActionBuilder
source§fn clone(&self) -> SendActionBuilder
fn clone(&self) -> SendActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SendActionBuilder
impl Debug for SendActionBuilder
source§impl Default for SendActionBuilder
impl Default for SendActionBuilder
source§fn default() -> SendActionBuilder
fn default() -> SendActionBuilder
source§impl PartialEq for SendActionBuilder
impl PartialEq for SendActionBuilder
source§fn eq(&self, other: &SendActionBuilder) -> bool
fn eq(&self, other: &SendActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SendActionBuilder
Auto Trait Implementations§
impl Freeze for SendActionBuilder
impl RefUnwindSafe for SendActionBuilder
impl Send for SendActionBuilder
impl Sync for SendActionBuilder
impl Unpin for SendActionBuilder
impl UnwindSafe for SendActionBuilder
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> 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