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