/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace ForecastService { namespace Model { /** */ class CreateWhatIfForecastRequest : public ForecastServiceRequest { public: AWS_FORECASTSERVICE_API CreateWhatIfForecastRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateWhatIfForecast"; } AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override; AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the what-if forecast. Names must be unique within each what-if * analysis.

*/ inline const Aws::String& GetWhatIfForecastName() const{ return m_whatIfForecastName; } /** *

The name of the what-if forecast. Names must be unique within each what-if * analysis.

*/ inline bool WhatIfForecastNameHasBeenSet() const { return m_whatIfForecastNameHasBeenSet; } /** *

The name of the what-if forecast. Names must be unique within each what-if * analysis.

*/ inline void SetWhatIfForecastName(const Aws::String& value) { m_whatIfForecastNameHasBeenSet = true; m_whatIfForecastName = value; } /** *

The name of the what-if forecast. Names must be unique within each what-if * analysis.

*/ inline void SetWhatIfForecastName(Aws::String&& value) { m_whatIfForecastNameHasBeenSet = true; m_whatIfForecastName = std::move(value); } /** *

The name of the what-if forecast. Names must be unique within each what-if * analysis.

*/ inline void SetWhatIfForecastName(const char* value) { m_whatIfForecastNameHasBeenSet = true; m_whatIfForecastName.assign(value); } /** *

The name of the what-if forecast. Names must be unique within each what-if * analysis.

*/ inline CreateWhatIfForecastRequest& WithWhatIfForecastName(const Aws::String& value) { SetWhatIfForecastName(value); return *this;} /** *

The name of the what-if forecast. Names must be unique within each what-if * analysis.

*/ inline CreateWhatIfForecastRequest& WithWhatIfForecastName(Aws::String&& value) { SetWhatIfForecastName(std::move(value)); return *this;} /** *

The name of the what-if forecast. Names must be unique within each what-if * analysis.

*/ inline CreateWhatIfForecastRequest& WithWhatIfForecastName(const char* value) { SetWhatIfForecastName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the what-if analysis.

*/ inline const Aws::String& GetWhatIfAnalysisArn() const{ return m_whatIfAnalysisArn; } /** *

The Amazon Resource Name (ARN) of the what-if analysis.

*/ inline bool WhatIfAnalysisArnHasBeenSet() const { return m_whatIfAnalysisArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the what-if analysis.

*/ inline void SetWhatIfAnalysisArn(const Aws::String& value) { m_whatIfAnalysisArnHasBeenSet = true; m_whatIfAnalysisArn = value; } /** *

The Amazon Resource Name (ARN) of the what-if analysis.

*/ inline void SetWhatIfAnalysisArn(Aws::String&& value) { m_whatIfAnalysisArnHasBeenSet = true; m_whatIfAnalysisArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the what-if analysis.

*/ inline void SetWhatIfAnalysisArn(const char* value) { m_whatIfAnalysisArnHasBeenSet = true; m_whatIfAnalysisArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the what-if analysis.

*/ inline CreateWhatIfForecastRequest& WithWhatIfAnalysisArn(const Aws::String& value) { SetWhatIfAnalysisArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the what-if analysis.

*/ inline CreateWhatIfForecastRequest& WithWhatIfAnalysisArn(Aws::String&& value) { SetWhatIfAnalysisArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the what-if analysis.

*/ inline CreateWhatIfForecastRequest& WithWhatIfAnalysisArn(const char* value) { SetWhatIfAnalysisArn(value); return *this;} /** *

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.

*/ inline const Aws::Vector& GetTimeSeriesTransformations() const{ return m_timeSeriesTransformations; } /** *

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.

*/ inline bool TimeSeriesTransformationsHasBeenSet() const { return m_timeSeriesTransformationsHasBeenSet; } /** *

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.

*/ inline void SetTimeSeriesTransformations(const Aws::Vector& value) { m_timeSeriesTransformationsHasBeenSet = true; m_timeSeriesTransformations = value; } /** *

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.

*/ inline void SetTimeSeriesTransformations(Aws::Vector&& value) { m_timeSeriesTransformationsHasBeenSet = true; m_timeSeriesTransformations = std::move(value); } /** *

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.

*/ inline CreateWhatIfForecastRequest& WithTimeSeriesTransformations(const Aws::Vector& value) { SetTimeSeriesTransformations(value); return *this;} /** *

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.

*/ inline CreateWhatIfForecastRequest& WithTimeSeriesTransformations(Aws::Vector&& value) { SetTimeSeriesTransformations(std::move(value)); return *this;} /** *

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.

*/ inline CreateWhatIfForecastRequest& AddTimeSeriesTransformations(const TimeSeriesTransformation& value) { m_timeSeriesTransformationsHasBeenSet = true; m_timeSeriesTransformations.push_back(value); return *this; } /** *

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.

*/ inline CreateWhatIfForecastRequest& AddTimeSeriesTransformations(TimeSeriesTransformation&& value) { m_timeSeriesTransformationsHasBeenSet = true; m_timeSeriesTransformations.push_back(std::move(value)); return *this; } /** *

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.

This dataset is merged with the original time series to * create a transformed dataset that is used for the what-if analysis.

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.

Timestamps and item_ids not included in this dataset * are not included in the what-if analysis.

*/ inline const TimeSeriesReplacementsDataSource& GetTimeSeriesReplacementsDataSource() const{ return m_timeSeriesReplacementsDataSource; } /** *

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.

This dataset is merged with the original time series to * create a transformed dataset that is used for the what-if analysis.

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.

Timestamps and item_ids not included in this dataset * are not included in the what-if analysis.

*/ inline bool TimeSeriesReplacementsDataSourceHasBeenSet() const { return m_timeSeriesReplacementsDataSourceHasBeenSet; } /** *

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.

This dataset is merged with the original time series to * create a transformed dataset that is used for the what-if analysis.

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.

Timestamps and item_ids not included in this dataset * are not included in the what-if analysis.

*/ inline void SetTimeSeriesReplacementsDataSource(const TimeSeriesReplacementsDataSource& value) { m_timeSeriesReplacementsDataSourceHasBeenSet = true; m_timeSeriesReplacementsDataSource = value; } /** *

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.

This dataset is merged with the original time series to * create a transformed dataset that is used for the what-if analysis.

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.

Timestamps and item_ids not included in this dataset * are not included in the what-if analysis.

*/ inline void SetTimeSeriesReplacementsDataSource(TimeSeriesReplacementsDataSource&& value) { m_timeSeriesReplacementsDataSourceHasBeenSet = true; m_timeSeriesReplacementsDataSource = std::move(value); } /** *

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.

This dataset is merged with the original time series to * create a transformed dataset that is used for the what-if analysis.

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.

Timestamps and item_ids not included in this dataset * are not included in the what-if analysis.

*/ inline CreateWhatIfForecastRequest& WithTimeSeriesReplacementsDataSource(const TimeSeriesReplacementsDataSource& value) { SetTimeSeriesReplacementsDataSource(value); return *this;} /** *

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.

This dataset is merged with the original time series to * create a transformed dataset that is used for the what-if analysis.

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.

Timestamps and item_ids not included in this dataset * are not included in the what-if analysis.

*/ inline CreateWhatIfForecastRequest& WithTimeSeriesReplacementsDataSource(TimeSeriesReplacementsDataSource&& value) { SetTimeSeriesReplacementsDataSource(std::move(value)); return *this;} /** *

A list of tags * to apply to the what if forecast.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags * to apply to the what if forecast.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags * to apply to the what if forecast.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags * to apply to the what if forecast.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags * to apply to the what if forecast.

*/ inline CreateWhatIfForecastRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags * to apply to the what if forecast.

*/ inline CreateWhatIfForecastRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags * to apply to the what if forecast.

*/ inline CreateWhatIfForecastRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags * to apply to the what if forecast.

*/ inline CreateWhatIfForecastRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_whatIfForecastName; bool m_whatIfForecastNameHasBeenSet = false; Aws::String m_whatIfAnalysisArn; bool m_whatIfAnalysisArnHasBeenSet = false; Aws::Vector m_timeSeriesTransformations; bool m_timeSeriesTransformationsHasBeenSet = false; TimeSeriesReplacementsDataSource m_timeSeriesReplacementsDataSource; bool m_timeSeriesReplacementsDataSourceHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws