Struct aws_sdk_mailmanager::types::builders::ArchiveActionBuilder
source · #[non_exhaustive]pub struct ArchiveActionBuilder { /* private fields */ }
Expand description
A builder for ArchiveAction
.
Implementations§
source§impl ArchiveActionBuilder
impl ArchiveActionBuilder
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 archive 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 archive 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 archive has been deleted.
sourcepub fn target_archive(self, input: impl Into<String>) -> Self
pub fn target_archive(self, input: impl Into<String>) -> Self
The identifier of the archive to send the email to.
This field is required.sourcepub fn set_target_archive(self, input: Option<String>) -> Self
pub fn set_target_archive(self, input: Option<String>) -> Self
The identifier of the archive to send the email to.
sourcepub fn get_target_archive(&self) -> &Option<String>
pub fn get_target_archive(&self) -> &Option<String>
The identifier of the archive to send the email to.
sourcepub fn build(self) -> Result<ArchiveAction, BuildError>
pub fn build(self) -> Result<ArchiveAction, BuildError>
Consumes the builder and constructs a ArchiveAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ArchiveActionBuilder
impl Clone for ArchiveActionBuilder
source§fn clone(&self) -> ArchiveActionBuilder
fn clone(&self) -> ArchiveActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ArchiveActionBuilder
impl Debug for ArchiveActionBuilder
source§impl Default for ArchiveActionBuilder
impl Default for ArchiveActionBuilder
source§fn default() -> ArchiveActionBuilder
fn default() -> ArchiveActionBuilder
source§impl PartialEq for ArchiveActionBuilder
impl PartialEq for ArchiveActionBuilder
source§fn eq(&self, other: &ArchiveActionBuilder) -> bool
fn eq(&self, other: &ArchiveActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ArchiveActionBuilder
Auto Trait Implementations§
impl Freeze for ArchiveActionBuilder
impl RefUnwindSafe for ArchiveActionBuilder
impl Send for ArchiveActionBuilder
impl Sync for ArchiveActionBuilder
impl Unpin for ArchiveActionBuilder
impl UnwindSafe for ArchiveActionBuilder
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