aws_sdk_deadline/client/
search_workers.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`SearchWorkers`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`farm_id(impl Into<String>)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID in the workers search.</p><br>
    ///   - [`fleet_ids(impl Into<String>)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::fleet_ids) / [`set_fleet_ids(Option<Vec::<String>>)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::set_fleet_ids):<br>required: **true**<br><p>The fleet ID of the workers to search for.</p><br>
    ///   - [`filter_expressions(SearchGroupedFilterExpressions)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::filter_expressions) / [`set_filter_expressions(Option<SearchGroupedFilterExpressions>)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::set_filter_expressions):<br>required: **false**<br><p>The filter expression, <code>AND</code> or <code>OR</code>, to use when searching among a group of search strings in a resource. You can use two groupings per search each within parenthesis <code>()</code>.</p><br>
    ///   - [`sort_expressions(SearchSortExpression)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::sort_expressions) / [`set_sort_expressions(Option<Vec::<SearchSortExpression>>)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::set_sort_expressions):<br>required: **false**<br><p>The search terms for a resource.</p><br>
    ///   - [`item_offset(i32)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::item_offset) / [`set_item_offset(Option<i32>)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::set_item_offset):<br>required: **true**<br><p>Defines how far into the scrollable list to start the return of results.</p><br>
    ///   - [`page_size(i32)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::page_size) / [`set_page_size(Option<i32>)`](crate::operation::search_workers::builders::SearchWorkersFluentBuilder::set_page_size):<br>required: **false**<br><p>Specifies the number of items per page for the resource.</p><br>
    /// - On success, responds with [`SearchWorkersOutput`](crate::operation::search_workers::SearchWorkersOutput) with field(s):
    ///   - [`workers(Vec::<WorkerSearchSummary>)`](crate::operation::search_workers::SearchWorkersOutput::workers): <p>The workers for the search.</p>
    ///   - [`next_item_offset(Option<i32>)`](crate::operation::search_workers::SearchWorkersOutput::next_item_offset): <p>The next incremental starting point after the defined <code>itemOffset</code>.</p>
    ///   - [`total_results(i32)`](crate::operation::search_workers::SearchWorkersOutput::total_results): <p>The total number of results in the search.</p>
    /// - On failure, responds with [`SdkError<SearchWorkersError>`](crate::operation::search_workers::SearchWorkersError)
    pub fn search_workers(&self) -> crate::operation::search_workers::builders::SearchWorkersFluentBuilder {
        crate::operation::search_workers::builders::SearchWorkersFluentBuilder::new(self.handle.clone())
    }
}