aws_sdk_deadline/client/list_budgets.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListBudgets`](crate::operation::list_budgets::builders::ListBudgetsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_budgets::builders::ListBudgetsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::operation::list_budgets::builders::ListBudgetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_budgets::builders::ListBudgetsFluentBuilder::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>
/// - [`farm_id(impl Into<String>)`](crate::operation::list_budgets::builders::ListBudgetsFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::list_budgets::builders::ListBudgetsFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID associated with the budgets.</p><br>
/// - [`max_results(i32)`](crate::operation::list_budgets::builders::ListBudgetsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_budgets::builders::ListBudgetsFluentBuilder::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>
/// - [`status(BudgetStatus)`](crate::operation::list_budgets::builders::ListBudgetsFluentBuilder::status) / [`set_status(Option<BudgetStatus>)`](crate::operation::list_budgets::builders::ListBudgetsFluentBuilder::set_status):<br>required: **false**<br><p>The status to list for the budgets.</p><br>
/// - On success, responds with [`ListBudgetsOutput`](crate::operation::list_budgets::ListBudgetsOutput) with field(s):
/// - [`next_token(Option<String>)`](crate::operation::list_budgets::ListBudgetsOutput::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>
/// - [`budgets(Vec::<BudgetSummary>)`](crate::operation::list_budgets::ListBudgetsOutput::budgets): <p>The budgets to include on the list.</p>
/// - On failure, responds with [`SdkError<ListBudgetsError>`](crate::operation::list_budgets::ListBudgetsError)
pub fn list_budgets(&self) -> crate::operation::list_budgets::builders::ListBudgetsFluentBuilder {
crate::operation::list_budgets::builders::ListBudgetsFluentBuilder::new(self.handle.clone())
}
}