/** * 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 namespace Aws { namespace ForecastService { namespace Model { /** */ class CreateWhatIfAnalysisRequest : public ForecastServiceRequest { public: AWS_FORECASTSERVICE_API CreateWhatIfAnalysisRequest(); // 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 "CreateWhatIfAnalysis"; } AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override; AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the what-if analysis. Each name must be unique.

*/ inline const Aws::String& GetWhatIfAnalysisName() const{ return m_whatIfAnalysisName; } /** *

The name of the what-if analysis. Each name must be unique.

*/ inline bool WhatIfAnalysisNameHasBeenSet() const { return m_whatIfAnalysisNameHasBeenSet; } /** *

The name of the what-if analysis. Each name must be unique.

*/ inline void SetWhatIfAnalysisName(const Aws::String& value) { m_whatIfAnalysisNameHasBeenSet = true; m_whatIfAnalysisName = value; } /** *

The name of the what-if analysis. Each name must be unique.

*/ inline void SetWhatIfAnalysisName(Aws::String&& value) { m_whatIfAnalysisNameHasBeenSet = true; m_whatIfAnalysisName = std::move(value); } /** *

The name of the what-if analysis. Each name must be unique.

*/ inline void SetWhatIfAnalysisName(const char* value) { m_whatIfAnalysisNameHasBeenSet = true; m_whatIfAnalysisName.assign(value); } /** *

The name of the what-if analysis. Each name must be unique.

*/ inline CreateWhatIfAnalysisRequest& WithWhatIfAnalysisName(const Aws::String& value) { SetWhatIfAnalysisName(value); return *this;} /** *

The name of the what-if analysis. Each name must be unique.

*/ inline CreateWhatIfAnalysisRequest& WithWhatIfAnalysisName(Aws::String&& value) { SetWhatIfAnalysisName(std::move(value)); return *this;} /** *

The name of the what-if analysis. Each name must be unique.

*/ inline CreateWhatIfAnalysisRequest& WithWhatIfAnalysisName(const char* value) { SetWhatIfAnalysisName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the baseline forecast.

*/ inline const Aws::String& GetForecastArn() const{ return m_forecastArn; } /** *

The Amazon Resource Name (ARN) of the baseline forecast.

*/ inline bool ForecastArnHasBeenSet() const { return m_forecastArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the baseline forecast.

*/ inline void SetForecastArn(const Aws::String& value) { m_forecastArnHasBeenSet = true; m_forecastArn = value; } /** *

The Amazon Resource Name (ARN) of the baseline forecast.

*/ inline void SetForecastArn(Aws::String&& value) { m_forecastArnHasBeenSet = true; m_forecastArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the baseline forecast.

*/ inline void SetForecastArn(const char* value) { m_forecastArnHasBeenSet = true; m_forecastArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the baseline forecast.

*/ inline CreateWhatIfAnalysisRequest& WithForecastArn(const Aws::String& value) { SetForecastArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the baseline forecast.

*/ inline CreateWhatIfAnalysisRequest& WithForecastArn(Aws::String&& value) { SetForecastArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the baseline forecast.

*/ inline CreateWhatIfAnalysisRequest& WithForecastArn(const char* value) { SetForecastArn(value); return *this;} /** *

Defines the set of time series that are used in the what-if analysis with a * TimeSeriesIdentifiers object. What-if analyses are performed only * for the time series in this object.

The * TimeSeriesIdentifiers object needs the following information:

*
  • DataSource

  • Format *

  • Schema

*/ inline const TimeSeriesSelector& GetTimeSeriesSelector() const{ return m_timeSeriesSelector; } /** *

Defines the set of time series that are used in the what-if analysis with a * TimeSeriesIdentifiers object. What-if analyses are performed only * for the time series in this object.

The * TimeSeriesIdentifiers object needs the following information:

*
  • DataSource

  • Format *

  • Schema

*/ inline bool TimeSeriesSelectorHasBeenSet() const { return m_timeSeriesSelectorHasBeenSet; } /** *

Defines the set of time series that are used in the what-if analysis with a * TimeSeriesIdentifiers object. What-if analyses are performed only * for the time series in this object.

The * TimeSeriesIdentifiers object needs the following information:

*
  • DataSource

  • Format *

  • Schema

*/ inline void SetTimeSeriesSelector(const TimeSeriesSelector& value) { m_timeSeriesSelectorHasBeenSet = true; m_timeSeriesSelector = value; } /** *

Defines the set of time series that are used in the what-if analysis with a * TimeSeriesIdentifiers object. What-if analyses are performed only * for the time series in this object.

The * TimeSeriesIdentifiers object needs the following information:

*
  • DataSource

  • Format *

  • Schema

*/ inline void SetTimeSeriesSelector(TimeSeriesSelector&& value) { m_timeSeriesSelectorHasBeenSet = true; m_timeSeriesSelector = std::move(value); } /** *

Defines the set of time series that are used in the what-if analysis with a * TimeSeriesIdentifiers object. What-if analyses are performed only * for the time series in this object.

The * TimeSeriesIdentifiers object needs the following information:

*
  • DataSource

  • Format *

  • Schema

*/ inline CreateWhatIfAnalysisRequest& WithTimeSeriesSelector(const TimeSeriesSelector& value) { SetTimeSeriesSelector(value); return *this;} /** *

Defines the set of time series that are used in the what-if analysis with a * TimeSeriesIdentifiers object. What-if analyses are performed only * for the time series in this object.

The * TimeSeriesIdentifiers object needs the following information:

*
  • DataSource

  • Format *

  • Schema

*/ inline CreateWhatIfAnalysisRequest& WithTimeSeriesSelector(TimeSeriesSelector&& value) { SetTimeSeriesSelector(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 CreateWhatIfAnalysisRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

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

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

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

*/ inline CreateWhatIfAnalysisRequest& 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 CreateWhatIfAnalysisRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_whatIfAnalysisName; bool m_whatIfAnalysisNameHasBeenSet = false; Aws::String m_forecastArn; bool m_forecastArnHasBeenSet = false; TimeSeriesSelector m_timeSeriesSelector; bool m_timeSeriesSelectorHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws