aws_sdk_bcmpricingcalculator/client/
update_workload_estimate.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateWorkloadEstimate`](crate::operation::update_workload_estimate::builders::UpdateWorkloadEstimateFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`identifier(impl Into<String>)`](crate::operation::update_workload_estimate::builders::UpdateWorkloadEstimateFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::update_workload_estimate::builders::UpdateWorkloadEstimateFluentBuilder::set_identifier):<br>required: **true**<br><p>The unique identifier of the workload estimate to update.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::update_workload_estimate::builders::UpdateWorkloadEstimateFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_workload_estimate::builders::UpdateWorkloadEstimateFluentBuilder::set_name):<br>required: **false**<br><p>The new name for the workload estimate.</p><br>
8    ///   - [`expires_at(DateTime)`](crate::operation::update_workload_estimate::builders::UpdateWorkloadEstimateFluentBuilder::expires_at) / [`set_expires_at(Option<DateTime>)`](crate::operation::update_workload_estimate::builders::UpdateWorkloadEstimateFluentBuilder::set_expires_at):<br>required: **false**<br><p>The new expiration date for the workload estimate.</p><br>
9    /// - On success, responds with [`UpdateWorkloadEstimateOutput`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateOutput) with field(s):
10    ///   - [`id(String)`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateOutput::id): <p>The unique identifier of the updated workload estimate.</p>
11    ///   - [`name(Option<String>)`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateOutput::name): <p>The updated name of the workload estimate.</p>
12    ///   - [`created_at(Option<DateTime>)`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateOutput::created_at): <p>The timestamp when the workload estimate was originally created.</p>
13    ///   - [`expires_at(Option<DateTime>)`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateOutput::expires_at): <p>The updated expiration timestamp for the workload estimate.</p>
14    ///   - [`rate_type(Option<WorkloadEstimateRateType>)`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateOutput::rate_type): <p>The type of pricing rates used for the updated estimate.</p>
15    ///   - [`rate_timestamp(Option<DateTime>)`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateOutput::rate_timestamp): <p>The timestamp of the pricing rates used for the updated estimate.</p>
16    ///   - [`status(Option<WorkloadEstimateStatus>)`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateOutput::status): <p>The current status of the updated workload estimate.</p>
17    ///   - [`total_cost(Option<f64>)`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateOutput::total_cost): <p>The updated total estimated cost for the workload.</p>
18    ///   - [`cost_currency(Option<CurrencyCode>)`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateOutput::cost_currency): <p>The currency of the updated estimated cost.</p>
19    ///   - [`failure_message(Option<String>)`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateOutput::failure_message): <p>An error message if the workload estimate update failed.</p>
20    /// - On failure, responds with [`SdkError<UpdateWorkloadEstimateError>`](crate::operation::update_workload_estimate::UpdateWorkloadEstimateError)
21    pub fn update_workload_estimate(&self) -> crate::operation::update_workload_estimate::builders::UpdateWorkloadEstimateFluentBuilder {
22        crate::operation::update_workload_estimate::builders::UpdateWorkloadEstimateFluentBuilder::new(self.handle.clone())
23    }
24}