Struct aws_sdk_sesv2::operation::list_suppressed_destinations::builders::ListSuppressedDestinationsFluentBuilder
source · pub struct ListSuppressedDestinationsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ListSuppressedDestinations
.
Retrieves a list of email addresses that are on the suppression list for your account.
Implementations§
source§impl ListSuppressedDestinationsFluentBuilder
impl ListSuppressedDestinationsFluentBuilder
sourcepub fn as_input(&self) -> &ListSuppressedDestinationsInputBuilder
pub fn as_input(&self) -> &ListSuppressedDestinationsInputBuilder
Access the ListSuppressedDestinations as a reference.
sourcepub async fn send(
self
) -> Result<ListSuppressedDestinationsOutput, SdkError<ListSuppressedDestinationsError, HttpResponse>>
pub async fn send( self ) -> Result<ListSuppressedDestinationsOutput, SdkError<ListSuppressedDestinationsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<ListSuppressedDestinationsOutput, ListSuppressedDestinationsError, Self>
pub fn customize( self ) -> CustomizableOperation<ListSuppressedDestinationsOutput, ListSuppressedDestinationsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> ListSuppressedDestinationsPaginator
pub fn into_paginator(self) -> ListSuppressedDestinationsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
sourcepub fn reasons(self, input: SuppressionListReason) -> Self
pub fn reasons(self, input: SuppressionListReason) -> Self
Appends an item to Reasons
.
To override the contents of this collection use set_reasons
.
The factors that caused the email address to be added to .
sourcepub fn set_reasons(self, input: Option<Vec<SuppressionListReason>>) -> Self
pub fn set_reasons(self, input: Option<Vec<SuppressionListReason>>) -> Self
The factors that caused the email address to be added to .
sourcepub fn get_reasons(&self) -> &Option<Vec<SuppressionListReason>>
pub fn get_reasons(&self) -> &Option<Vec<SuppressionListReason>>
The factors that caused the email address to be added to .
sourcepub fn start_date(self, input: DateTime) -> Self
pub fn start_date(self, input: DateTime) -> Self
Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list after a specific date.
sourcepub fn set_start_date(self, input: Option<DateTime>) -> Self
pub fn set_start_date(self, input: Option<DateTime>) -> Self
Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list after a specific date.
sourcepub fn get_start_date(&self) -> &Option<DateTime>
pub fn get_start_date(&self) -> &Option<DateTime>
Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list after a specific date.
sourcepub fn end_date(self, input: DateTime) -> Self
pub fn end_date(self, input: DateTime) -> Self
Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list before a specific date.
sourcepub fn set_end_date(self, input: Option<DateTime>) -> Self
pub fn set_end_date(self, input: Option<DateTime>) -> Self
Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list before a specific date.
sourcepub fn get_end_date(&self) -> &Option<DateTime>
pub fn get_end_date(&self) -> &Option<DateTime>
Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list before a specific date.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
A token returned from a previous call to ListSuppressedDestinations
to indicate the position in the list of suppressed email addresses.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
A token returned from a previous call to ListSuppressedDestinations
to indicate the position in the list of suppressed email addresses.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
A token returned from a previous call to ListSuppressedDestinations
to indicate the position in the list of suppressed email addresses.
sourcepub fn page_size(self, input: i32) -> Self
pub fn page_size(self, input: i32) -> Self
The number of results to show in a single call to ListSuppressedDestinations
. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken
element, which you can use to obtain additional results.
sourcepub fn set_page_size(self, input: Option<i32>) -> Self
pub fn set_page_size(self, input: Option<i32>) -> Self
The number of results to show in a single call to ListSuppressedDestinations
. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken
element, which you can use to obtain additional results.
sourcepub fn get_page_size(&self) -> &Option<i32>
pub fn get_page_size(&self) -> &Option<i32>
The number of results to show in a single call to ListSuppressedDestinations
. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken
element, which you can use to obtain additional results.
Trait Implementations§
source§impl Clone for ListSuppressedDestinationsFluentBuilder
impl Clone for ListSuppressedDestinationsFluentBuilder
source§fn clone(&self) -> ListSuppressedDestinationsFluentBuilder
fn clone(&self) -> ListSuppressedDestinationsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ListSuppressedDestinationsFluentBuilder
impl !RefUnwindSafe for ListSuppressedDestinationsFluentBuilder
impl Send for ListSuppressedDestinationsFluentBuilder
impl Sync for ListSuppressedDestinationsFluentBuilder
impl Unpin for ListSuppressedDestinationsFluentBuilder
impl !UnwindSafe for ListSuppressedDestinationsFluentBuilder
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