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 [`CreateWhatIfForecast`](crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`what_if_forecast_name(impl Into<String>)`](crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder::what_if_forecast_name) / [`set_what_if_forecast_name(Option<String>)`](crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder::set_what_if_forecast_name):<br>required: **true**<br><p>The name of the what-if forecast. Names must be unique within each what-if analysis.</p><br>
    ///   - [`what_if_analysis_arn(impl Into<String>)`](crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder::what_if_analysis_arn) / [`set_what_if_analysis_arn(Option<String>)`](crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder::set_what_if_analysis_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the what-if analysis.</p><br>
    ///   - [`time_series_transformations(TimeSeriesTransformation)`](crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder::time_series_transformations) / [`set_time_series_transformations(Option<Vec::<TimeSeriesTransformation>>)`](crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder::set_time_series_transformations):<br>required: **false**<br><p>The transformations that are applied to the baseline time series. Each transformation contains an action and a set of conditions. An action is applied only when all conditions are met. If no conditions are provided, the action is applied to all items.</p><br>
    ///   - [`time_series_replacements_data_source(TimeSeriesReplacementsDataSource)`](crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder::time_series_replacements_data_source) / [`set_time_series_replacements_data_source(Option<TimeSeriesReplacementsDataSource>)`](crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder::set_time_series_replacements_data_source):<br>required: **false**<br><p>The replacement time series dataset, which contains the rows that you want to change in the related time series dataset. A replacement time series does not need to contain all rows that are in the baseline related time series. Include only the rows (measure-dimension combinations) that you want to include in the what-if forecast.</p> <p>This dataset is merged with the original time series to create a transformed dataset that is used for the what-if analysis.</p> <p>This dataset should contain the items to modify (such as item_id or workforce_type), any relevant dimensions, the timestamp column, and at least one of the related time series columns. This file should not contain duplicate timestamps for the same time series.</p> <p>Timestamps and item_ids not included in this dataset are not included in the what-if analysis.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder::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 [`CreateWhatIfForecastOutput`](crate::operation::create_what_if_forecast::CreateWhatIfForecastOutput) with field(s):
    ///   - [`what_if_forecast_arn(Option<String>)`](crate::operation::create_what_if_forecast::CreateWhatIfForecastOutput::what_if_forecast_arn): <p>The Amazon Resource Name (ARN) of the what-if forecast.</p>
    /// - On failure, responds with [`SdkError<CreateWhatIfForecastError>`](crate::operation::create_what_if_forecast::CreateWhatIfForecastError)
    pub fn create_what_if_forecast(&self) -> crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder {
        crate::operation::create_what_if_forecast::builders::CreateWhatIfForecastFluentBuilder::new(self.handle.clone())
    }
}