pub struct Builder { /* private fields */ }
Expand description
A builder for ListTargetsInput
.
Implementations§
source§impl Builder
impl Builder
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 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 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 build(self) -> Result<ListTargetsInput, BuildError>
pub fn build(self) -> Result<ListTargetsInput, BuildError>
Consumes the builder and constructs a ListTargetsInput
.