Struct aws_sdk_proton::operation::list_service_instances::builders::ListServiceInstancesInputBuilder
source · #[non_exhaustive]pub struct ListServiceInstancesInputBuilder { /* private fields */ }Expand description
A builder for ListServiceInstancesInput.
Implementations§
source§impl ListServiceInstancesInputBuilder
impl ListServiceInstancesInputBuilder
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the service that the service instance belongs to.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the service that the service instance belongs to.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the service that the service instance belongs to.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
A token that indicates the location of the next service in the array of service instances, after the list of service instances that was previously requested.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
A token that indicates the location of the next service in the array of service instances, after the list of service instances that was previously requested.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
A token that indicates the location of the next service in the array of service instances, after the list of service instances that was previously requested.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of service instances to list.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of service instances to list.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of service instances to list.
sourcepub fn filters(self, input: ListServiceInstancesFilter) -> Self
pub fn filters(self, input: ListServiceInstancesFilter) -> Self
Appends an item to filters.
To override the contents of this collection use set_filters.
An array of filtering criteria that scope down the result list. By default, all service instances in the Amazon Web Services account are returned.
sourcepub fn set_filters(self, input: Option<Vec<ListServiceInstancesFilter>>) -> Self
pub fn set_filters(self, input: Option<Vec<ListServiceInstancesFilter>>) -> Self
An array of filtering criteria that scope down the result list. By default, all service instances in the Amazon Web Services account are returned.
sourcepub fn get_filters(&self) -> &Option<Vec<ListServiceInstancesFilter>>
pub fn get_filters(&self) -> &Option<Vec<ListServiceInstancesFilter>>
An array of filtering criteria that scope down the result list. By default, all service instances in the Amazon Web Services account are returned.
sourcepub fn sort_by(self, input: ListServiceInstancesSortBy) -> Self
pub fn sort_by(self, input: ListServiceInstancesSortBy) -> Self
The field that the result list is sorted by.
When you choose to sort by serviceName, service instances within each service are sorted by service instance name.
Default: serviceName
sourcepub fn set_sort_by(self, input: Option<ListServiceInstancesSortBy>) -> Self
pub fn set_sort_by(self, input: Option<ListServiceInstancesSortBy>) -> Self
The field that the result list is sorted by.
When you choose to sort by serviceName, service instances within each service are sorted by service instance name.
Default: serviceName
sourcepub fn get_sort_by(&self) -> &Option<ListServiceInstancesSortBy>
pub fn get_sort_by(&self) -> &Option<ListServiceInstancesSortBy>
The field that the result list is sorted by.
When you choose to sort by serviceName, service instances within each service are sorted by service instance name.
Default: serviceName
sourcepub fn sort_order(self, input: SortOrder) -> Self
pub fn sort_order(self, input: SortOrder) -> Self
Result list sort order.
Default: ASCENDING
sourcepub fn set_sort_order(self, input: Option<SortOrder>) -> Self
pub fn set_sort_order(self, input: Option<SortOrder>) -> Self
Result list sort order.
Default: ASCENDING
sourcepub fn get_sort_order(&self) -> &Option<SortOrder>
pub fn get_sort_order(&self) -> &Option<SortOrder>
Result list sort order.
Default: ASCENDING
sourcepub fn build(self) -> Result<ListServiceInstancesInput, BuildError>
pub fn build(self) -> Result<ListServiceInstancesInput, BuildError>
Consumes the builder and constructs a ListServiceInstancesInput.
source§impl ListServiceInstancesInputBuilder
impl ListServiceInstancesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListServiceInstancesOutput, SdkError<ListServiceInstancesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListServiceInstancesOutput, SdkError<ListServiceInstancesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ListServiceInstancesInputBuilder
impl Clone for ListServiceInstancesInputBuilder
source§fn clone(&self) -> ListServiceInstancesInputBuilder
fn clone(&self) -> ListServiceInstancesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ListServiceInstancesInputBuilder
impl Default for ListServiceInstancesInputBuilder
source§fn default() -> ListServiceInstancesInputBuilder
fn default() -> ListServiceInstancesInputBuilder
source§impl PartialEq for ListServiceInstancesInputBuilder
impl PartialEq for ListServiceInstancesInputBuilder
source§fn eq(&self, other: &ListServiceInstancesInputBuilder) -> bool
fn eq(&self, other: &ListServiceInstancesInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ListServiceInstancesInputBuilder
Auto Trait Implementations§
impl Freeze for ListServiceInstancesInputBuilder
impl RefUnwindSafe for ListServiceInstancesInputBuilder
impl Send for ListServiceInstancesInputBuilder
impl Sync for ListServiceInstancesInputBuilder
impl Unpin for ListServiceInstancesInputBuilder
impl UnwindSafe for ListServiceInstancesInputBuilder
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