aws_sdk_deadline/client/
update_budget.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateBudget`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::set_client_token):<br>required: **false**<br><p>The unique token which the server uses to recognize retries of the same request.</p><br>
    ///   - [`farm_id(impl Into<String>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID of the budget to update.</p><br>
    ///   - [`budget_id(impl Into<String>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::budget_id) / [`set_budget_id(Option<String>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::set_budget_id):<br>required: **true**<br><p>The budget ID to update.</p><br>
    ///   - [`display_name(impl Into<String>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::display_name) / [`set_display_name(Option<String>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::set_display_name):<br>required: **false**<br><p>The display name of the budget to update.</p><important>  <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p> </important><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::set_description):<br>required: **false**<br><p>The description of the budget to update.</p><important>  <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p> </important><br>
    ///   - [`status(BudgetStatus)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::status) / [`set_status(Option<BudgetStatus>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::set_status):<br>required: **false**<br><p>Updates the status of the budget.</p> <ul>  <li>   <p><code>ACTIVE</code>–The budget is being evaluated.</p></li>  <li>   <p><code>INACTIVE</code>–The budget is inactive. This can include Expired, Canceled, or deleted Deleted statuses.</p></li> </ul><br>
    ///   - [`approximate_dollar_limit(f32)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::approximate_dollar_limit) / [`set_approximate_dollar_limit(Option<f32>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::set_approximate_dollar_limit):<br>required: **false**<br><p>The dollar limit to update on the budget. Based on consumed usage.</p><br>
    ///   - [`actions_to_add(BudgetActionToAdd)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::actions_to_add) / [`set_actions_to_add(Option<Vec::<BudgetActionToAdd>>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::set_actions_to_add):<br>required: **false**<br><p>The budget actions to add. Budget actions specify what happens when the budget runs out.</p><br>
    ///   - [`actions_to_remove(BudgetActionToRemove)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::actions_to_remove) / [`set_actions_to_remove(Option<Vec::<BudgetActionToRemove>>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::set_actions_to_remove):<br>required: **false**<br><p>The budget actions to remove from the budget.</p><br>
    ///   - [`schedule(BudgetSchedule)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::schedule) / [`set_schedule(Option<BudgetSchedule>)`](crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::set_schedule):<br>required: **false**<br><p>The schedule to update.</p><br>
    /// - On success, responds with [`UpdateBudgetOutput`](crate::operation::update_budget::UpdateBudgetOutput)
    /// - On failure, responds with [`SdkError<UpdateBudgetError>`](crate::operation::update_budget::UpdateBudgetError)
    pub fn update_budget(&self) -> crate::operation::update_budget::builders::UpdateBudgetFluentBuilder {
        crate::operation::update_budget::builders::UpdateBudgetFluentBuilder::new(self.handle.clone())
    }
}