Struct aws_sdk_sesv2::types::builders::SuppressedDestinationBuilder
source · #[non_exhaustive]pub struct SuppressedDestinationBuilder { /* private fields */ }
Expand description
A builder for SuppressedDestination
.
Implementations§
source§impl SuppressedDestinationBuilder
impl SuppressedDestinationBuilder
sourcepub fn email_address(self, input: impl Into<String>) -> Self
pub fn email_address(self, input: impl Into<String>) -> Self
The email address that is on the suppression list for your account.
This field is required.sourcepub fn set_email_address(self, input: Option<String>) -> Self
pub fn set_email_address(self, input: Option<String>) -> Self
The email address that is on the suppression list for your account.
sourcepub fn get_email_address(&self) -> &Option<String>
pub fn get_email_address(&self) -> &Option<String>
The email address that is on the suppression list for your account.
sourcepub fn reason(self, input: SuppressionListReason) -> Self
pub fn reason(self, input: SuppressionListReason) -> Self
The reason that the address was added to the suppression list for your account.
This field is required.sourcepub fn set_reason(self, input: Option<SuppressionListReason>) -> Self
pub fn set_reason(self, input: Option<SuppressionListReason>) -> Self
The reason that the address was added to the suppression list for your account.
sourcepub fn get_reason(&self) -> &Option<SuppressionListReason>
pub fn get_reason(&self) -> &Option<SuppressionListReason>
The reason that the address was added to the suppression list for your account.
sourcepub fn last_update_time(self, input: DateTime) -> Self
pub fn last_update_time(self, input: DateTime) -> Self
The date and time when the suppressed destination was last updated, shown in Unix time format.
This field is required.sourcepub fn set_last_update_time(self, input: Option<DateTime>) -> Self
pub fn set_last_update_time(self, input: Option<DateTime>) -> Self
The date and time when the suppressed destination was last updated, shown in Unix time format.
sourcepub fn get_last_update_time(&self) -> &Option<DateTime>
pub fn get_last_update_time(&self) -> &Option<DateTime>
The date and time when the suppressed destination was last updated, shown in Unix time format.
sourcepub fn attributes(self, input: SuppressedDestinationAttributes) -> Self
pub fn attributes(self, input: SuppressedDestinationAttributes) -> Self
An optional value that can contain additional information about the reasons that the address was added to the suppression list for your account.
sourcepub fn set_attributes(
self,
input: Option<SuppressedDestinationAttributes>,
) -> Self
pub fn set_attributes( self, input: Option<SuppressedDestinationAttributes>, ) -> Self
An optional value that can contain additional information about the reasons that the address was added to the suppression list for your account.
sourcepub fn get_attributes(&self) -> &Option<SuppressedDestinationAttributes>
pub fn get_attributes(&self) -> &Option<SuppressedDestinationAttributes>
An optional value that can contain additional information about the reasons that the address was added to the suppression list for your account.
sourcepub fn build(self) -> Result<SuppressedDestination, BuildError>
pub fn build(self) -> Result<SuppressedDestination, BuildError>
Consumes the builder and constructs a SuppressedDestination
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SuppressedDestinationBuilder
impl Clone for SuppressedDestinationBuilder
source§fn clone(&self) -> SuppressedDestinationBuilder
fn clone(&self) -> SuppressedDestinationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SuppressedDestinationBuilder
impl Debug for SuppressedDestinationBuilder
source§impl Default for SuppressedDestinationBuilder
impl Default for SuppressedDestinationBuilder
source§fn default() -> SuppressedDestinationBuilder
fn default() -> SuppressedDestinationBuilder
source§impl PartialEq for SuppressedDestinationBuilder
impl PartialEq for SuppressedDestinationBuilder
source§fn eq(&self, other: &SuppressedDestinationBuilder) -> bool
fn eq(&self, other: &SuppressedDestinationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SuppressedDestinationBuilder
Auto Trait Implementations§
impl Freeze for SuppressedDestinationBuilder
impl RefUnwindSafe for SuppressedDestinationBuilder
impl Send for SuppressedDestinationBuilder
impl Sync for SuppressedDestinationBuilder
impl Unpin for SuppressedDestinationBuilder
impl UnwindSafe for SuppressedDestinationBuilder
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