Struct aws_sdk_sagemaker::client::fluent_builders::ListWorkforces
source · pub struct ListWorkforces { /* private fields */ }
Expand description
Fluent builder constructing a request to ListWorkforces
.
Use this operation to list all private and vendor workforces in an Amazon Web Services Region. Note that you can only have one private workforce per Amazon Web Services Region.
Implementations§
source§impl ListWorkforces
impl ListWorkforces
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListWorkforces, AwsResponseRetryClassifier>, SdkError<ListWorkforcesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ListWorkforces, AwsResponseRetryClassifier>, SdkError<ListWorkforcesError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ListWorkforcesOutput, SdkError<ListWorkforcesError>>
pub async fn send(
self
) -> Result<ListWorkforcesOutput, SdkError<ListWorkforcesError>>
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 into_paginator(self) -> ListWorkforcesPaginator
pub fn into_paginator(self) -> ListWorkforcesPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn sort_by(self, input: ListWorkforcesSortByOptions) -> Self
pub fn sort_by(self, input: ListWorkforcesSortByOptions) -> Self
Sort workforces using the workforce name or creation date.
sourcepub fn set_sort_by(self, input: Option<ListWorkforcesSortByOptions>) -> Self
pub fn set_sort_by(self, input: Option<ListWorkforcesSortByOptions>) -> Self
Sort workforces using the workforce name or creation date.
sourcepub fn sort_order(self, input: SortOrder) -> Self
pub fn sort_order(self, input: SortOrder) -> Self
Sort workforces in ascending or descending order.
sourcepub fn set_sort_order(self, input: Option<SortOrder>) -> Self
pub fn set_sort_order(self, input: Option<SortOrder>) -> Self
Sort workforces in ascending or descending order.
sourcepub fn name_contains(self, input: impl Into<String>) -> Self
pub fn name_contains(self, input: impl Into<String>) -> Self
A filter you can use to search for workforces using part of the workforce name.
sourcepub fn set_name_contains(self, input: Option<String>) -> Self
pub fn set_name_contains(self, input: Option<String>) -> Self
A filter you can use to search for workforces using part of the workforce name.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
A token to resume pagination.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
A token to resume pagination.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of workforces returned in the response.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of workforces returned in the response.
Trait Implementations§
source§impl Clone for ListWorkforces
impl Clone for ListWorkforces
source§fn clone(&self) -> ListWorkforces
fn clone(&self) -> ListWorkforces
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more