Struct aws_sdk_codestarnotifications::operation::list_targets::builders::ListTargetsInputBuilder
source · #[non_exhaustive]pub struct ListTargetsInputBuilder { /* private fields */ }
Expand description
A builder for ListTargetsInput
.
Implementations§
source§impl ListTargetsInputBuilder
impl ListTargetsInputBuilder
sourcepub fn filters(self, input: ListTargetsFilter) -> Self
pub fn filters(self, input: ListTargetsFilter) -> Self
Appends an item to filters
.
To override the contents of this collection use set_filters
.
The filters to use to return information by service or resource type. Valid filters include target type, target address, and target status.
A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.
sourcepub fn set_filters(self, input: Option<Vec<ListTargetsFilter>>) -> Self
pub fn set_filters(self, input: Option<Vec<ListTargetsFilter>>) -> Self
The filters to use to return information by service or resource type. Valid filters include target type, target address, and target status.
A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.
sourcepub fn get_filters(&self) -> &Option<Vec<ListTargetsFilter>>
pub fn get_filters(&self) -> &Option<Vec<ListTargetsFilter>>
The filters to use to return information by service or resource type. Valid filters include target type, target address, and target status.
A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
An enumeration token that, when provided in a request, returns the next batch of the results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
An enumeration token that, when provided in a request, returns the next batch of the results.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
An enumeration token that, when provided in a request, returns the next batch of the results.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
A non-negative integer used to limit the number of returned results. The maximum number of results that can be returned is 100.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
A non-negative integer used to limit the number of returned results. The maximum number of results that can be returned is 100.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
A non-negative integer used to limit the number of returned results. The maximum number of results that can be returned is 100.
sourcepub fn build(self) -> Result<ListTargetsInput, BuildError>
pub fn build(self) -> Result<ListTargetsInput, BuildError>
Consumes the builder and constructs a ListTargetsInput
.
source§impl ListTargetsInputBuilder
impl ListTargetsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListTargetsOutput, SdkError<ListTargetsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListTargetsOutput, SdkError<ListTargetsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ListTargetsInputBuilder
impl Clone for ListTargetsInputBuilder
source§fn clone(&self) -> ListTargetsInputBuilder
fn clone(&self) -> ListTargetsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListTargetsInputBuilder
impl Debug for ListTargetsInputBuilder
source§impl Default for ListTargetsInputBuilder
impl Default for ListTargetsInputBuilder
source§fn default() -> ListTargetsInputBuilder
fn default() -> ListTargetsInputBuilder
source§impl PartialEq for ListTargetsInputBuilder
impl PartialEq for ListTargetsInputBuilder
source§fn eq(&self, other: &ListTargetsInputBuilder) -> bool
fn eq(&self, other: &ListTargetsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListTargetsInputBuilder
Auto Trait Implementations§
impl Freeze for ListTargetsInputBuilder
impl RefUnwindSafe for ListTargetsInputBuilder
impl Send for ListTargetsInputBuilder
impl Sync for ListTargetsInputBuilder
impl Unpin for ListTargetsInputBuilder
impl UnwindSafe for ListTargetsInputBuilder
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