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<ListTargetsInputBuilder> for ListTargetsInputBuilder
impl PartialEq<ListTargetsInputBuilder> 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 ==
.