Struct aws_sdk_mailmanager::types::builders::RelayActionBuilder
source · #[non_exhaustive]pub struct RelayActionBuilder { /* private fields */ }
Expand description
A builder for RelayAction
.
Implementations§
source§impl RelayActionBuilder
impl RelayActionBuilder
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 specified relay has been deleted.
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 specified relay has been deleted.
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 specified relay has been deleted.
sourcepub fn relay(self, input: impl Into<String>) -> Self
pub fn relay(self, input: impl Into<String>) -> Self
The identifier of the relay resource to be used when relaying an email.
This field is required.sourcepub fn set_relay(self, input: Option<String>) -> Self
pub fn set_relay(self, input: Option<String>) -> Self
The identifier of the relay resource to be used when relaying an email.
sourcepub fn get_relay(&self) -> &Option<String>
pub fn get_relay(&self) -> &Option<String>
The identifier of the relay resource to be used when relaying an email.
sourcepub fn mail_from(self, input: MailFrom) -> Self
pub fn mail_from(self, input: MailFrom) -> Self
This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
sourcepub fn set_mail_from(self, input: Option<MailFrom>) -> Self
pub fn set_mail_from(self, input: Option<MailFrom>) -> Self
This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
sourcepub fn get_mail_from(&self) -> &Option<MailFrom>
pub fn get_mail_from(&self) -> &Option<MailFrom>
This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
sourcepub fn build(self) -> Result<RelayAction, BuildError>
pub fn build(self) -> Result<RelayAction, BuildError>
Consumes the builder and constructs a RelayAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RelayActionBuilder
impl Clone for RelayActionBuilder
source§fn clone(&self) -> RelayActionBuilder
fn clone(&self) -> RelayActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RelayActionBuilder
impl Debug for RelayActionBuilder
source§impl Default for RelayActionBuilder
impl Default for RelayActionBuilder
source§fn default() -> RelayActionBuilder
fn default() -> RelayActionBuilder
source§impl PartialEq for RelayActionBuilder
impl PartialEq for RelayActionBuilder
source§fn eq(&self, other: &RelayActionBuilder) -> bool
fn eq(&self, other: &RelayActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RelayActionBuilder
Auto Trait Implementations§
impl Freeze for RelayActionBuilder
impl RefUnwindSafe for RelayActionBuilder
impl Send for RelayActionBuilder
impl Sync for RelayActionBuilder
impl Unpin for RelayActionBuilder
impl UnwindSafe for RelayActionBuilder
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