aws_sdk_deadline/client/
list_farms.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListFarms`](crate::operation::list_farms::builders::ListFarmsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_farms::builders::ListFarmsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_farms::builders::ListFarmsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_farms::builders::ListFarmsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of results, or <code>null</code> to start from the beginning.</p><br>
    ///   - [`principal_id(impl Into<String>)`](crate::operation::list_farms::builders::ListFarmsFluentBuilder::principal_id) / [`set_principal_id(Option<String>)`](crate::operation::list_farms::builders::ListFarmsFluentBuilder::set_principal_id):<br>required: **false**<br><p>The principal ID of the member to list on the farm.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_farms::builders::ListFarmsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_farms::builders::ListFarmsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set of sequential pages.</p><br>
    /// - On success, responds with [`ListFarmsOutput`](crate::operation::list_farms::ListFarmsOutput) with field(s):
    ///   - [`next_token(Option<String>)`](crate::operation::list_farms::ListFarmsOutput::next_token): <p>If Deadline Cloud returns <code>nextToken</code>, then there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then <code>nextToken</code> is set to <code>null</code>. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 <code>ValidationException</code> error.</p>
    ///   - [`farms(Vec::<FarmSummary>)`](crate::operation::list_farms::ListFarmsOutput::farms): <p>Farms on the list.</p>
    /// - On failure, responds with [`SdkError<ListFarmsError>`](crate::operation::list_farms::ListFarmsError)
    pub fn list_farms(&self) -> crate::operation::list_farms::builders::ListFarmsFluentBuilder {
        crate::operation::list_farms::builders::ListFarmsFluentBuilder::new(self.handle.clone())
    }
}