1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateWhatIfAnalysis`](crate::operation::create_what_if_analysis::builders::CreateWhatIfAnalysisFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`what_if_analysis_name(impl Into<String>)`](crate::operation::create_what_if_analysis::builders::CreateWhatIfAnalysisFluentBuilder::what_if_analysis_name) / [`set_what_if_analysis_name(Option<String>)`](crate::operation::create_what_if_analysis::builders::CreateWhatIfAnalysisFluentBuilder::set_what_if_analysis_name):<br>required: **true**<br><p>The name of the what-if analysis. Each name must be unique.</p><br>
    ///   - [`forecast_arn(impl Into<String>)`](crate::operation::create_what_if_analysis::builders::CreateWhatIfAnalysisFluentBuilder::forecast_arn) / [`set_forecast_arn(Option<String>)`](crate::operation::create_what_if_analysis::builders::CreateWhatIfAnalysisFluentBuilder::set_forecast_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the baseline forecast.</p><br>
    ///   - [`time_series_selector(TimeSeriesSelector)`](crate::operation::create_what_if_analysis::builders::CreateWhatIfAnalysisFluentBuilder::time_series_selector) / [`set_time_series_selector(Option<TimeSeriesSelector>)`](crate::operation::create_what_if_analysis::builders::CreateWhatIfAnalysisFluentBuilder::set_time_series_selector):<br>required: **false**<br><p>Defines the set of time series that are used in the what-if analysis with a <code>TimeSeriesIdentifiers</code> object. What-if analyses are performed only for the time series in this object.</p> <p>The <code>TimeSeriesIdentifiers</code> object needs the following information:</p> <ul>  <li>   <p><code>DataSource</code></p></li>  <li>   <p><code>Format</code></p></li>  <li>   <p><code>Schema</code></p></li> </ul><br>
    ///   - [`tags(Tag)`](crate::operation::create_what_if_analysis::builders::CreateWhatIfAnalysisFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_what_if_analysis::builders::CreateWhatIfAnalysisFluentBuilder::set_tags):<br>required: **false**<br><p>A list of <a href="https://docs.aws.amazon.com/forecast/latest/dg/tagging-forecast-resources.html">tags</a> to apply to the what if forecast.</p><br>
    /// - On success, responds with [`CreateWhatIfAnalysisOutput`](crate::operation::create_what_if_analysis::CreateWhatIfAnalysisOutput) with field(s):
    ///   - [`what_if_analysis_arn(Option<String>)`](crate::operation::create_what_if_analysis::CreateWhatIfAnalysisOutput::what_if_analysis_arn): <p>The Amazon Resource Name (ARN) of the what-if analysis.</p>
    /// - On failure, responds with [`SdkError<CreateWhatIfAnalysisError>`](crate::operation::create_what_if_analysis::CreateWhatIfAnalysisError)
    pub fn create_what_if_analysis(&self) -> crate::operation::create_what_if_analysis::builders::CreateWhatIfAnalysisFluentBuilder {
        crate::operation::create_what_if_analysis::builders::CreateWhatIfAnalysisFluentBuilder::new(self.handle.clone())
    }
}