/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ForecastService { namespace Model { class DescribeWhatIfForecastResult { public: AWS_FORECASTSERVICE_API DescribeWhatIfForecastResult(); AWS_FORECASTSERVICE_API DescribeWhatIfForecastResult(const Aws::AmazonWebServiceResult& result); AWS_FORECASTSERVICE_API DescribeWhatIfForecastResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the what-if forecast.

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

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

*/ inline const Aws::String& GetWhatIfForecastArn() const{ return m_whatIfForecastArn; } /** *

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

*/ inline void SetWhatIfForecastArn(const Aws::String& value) { m_whatIfForecastArn = value; } /** *

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

*/ inline void SetWhatIfForecastArn(Aws::String&& value) { m_whatIfForecastArn = std::move(value); } /** *

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

*/ inline void SetWhatIfForecastArn(const char* value) { m_whatIfForecastArn.assign(value); } /** *

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

*/ inline DescribeWhatIfForecastResult& WithWhatIfForecastArn(const Aws::String& value) { SetWhatIfForecastArn(value); return *this;} /** *

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

*/ inline DescribeWhatIfForecastResult& WithWhatIfForecastArn(Aws::String&& value) { SetWhatIfForecastArn(std::move(value)); return *this;} /** *

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

*/ inline DescribeWhatIfForecastResult& WithWhatIfForecastArn(const char* value) { SetWhatIfForecastArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the what-if analysis that contains this * forecast.

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

The Amazon Resource Name (ARN) of the what-if analysis that contains this * forecast.

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

The Amazon Resource Name (ARN) of the what-if analysis that contains this * forecast.

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

The Amazon Resource Name (ARN) of the what-if analysis that contains this * forecast.

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

The Amazon Resource Name (ARN) of the what-if analysis that contains this * forecast.

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

The Amazon Resource Name (ARN) of the what-if analysis that contains this * forecast.

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

The Amazon Resource Name (ARN) of the what-if analysis that contains this * forecast.

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

The approximate time remaining to complete the what-if forecast, in * minutes.

*/ inline long long GetEstimatedTimeRemainingInMinutes() const{ return m_estimatedTimeRemainingInMinutes; } /** *

The approximate time remaining to complete the what-if forecast, in * minutes.

*/ inline void SetEstimatedTimeRemainingInMinutes(long long value) { m_estimatedTimeRemainingInMinutes = value; } /** *

The approximate time remaining to complete the what-if forecast, in * minutes.

*/ inline DescribeWhatIfForecastResult& WithEstimatedTimeRemainingInMinutes(long long value) { SetEstimatedTimeRemainingInMinutes(value); return *this;} /** *

The status of the what-if forecast. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * CREATE_STOPPING, CREATE_STOPPED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

The Status of * the what-if forecast must be ACTIVE before you can access the * forecast.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the what-if forecast. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * CREATE_STOPPING, CREATE_STOPPED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

The Status of * the what-if forecast must be ACTIVE before you can access the * forecast.

*/ inline void SetStatus(const Aws::String& value) { m_status = value; } /** *

The status of the what-if forecast. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * CREATE_STOPPING, CREATE_STOPPED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

The Status of * the what-if forecast must be ACTIVE before you can access the * forecast.

*/ inline void SetStatus(Aws::String&& value) { m_status = std::move(value); } /** *

The status of the what-if forecast. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * CREATE_STOPPING, CREATE_STOPPED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

The Status of * the what-if forecast must be ACTIVE before you can access the * forecast.

*/ inline void SetStatus(const char* value) { m_status.assign(value); } /** *

The status of the what-if forecast. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * CREATE_STOPPING, CREATE_STOPPED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

The Status of * the what-if forecast must be ACTIVE before you can access the * forecast.

*/ inline DescribeWhatIfForecastResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the what-if forecast. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * CREATE_STOPPING, CREATE_STOPPED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

The Status of * the what-if forecast must be ACTIVE before you can access the * forecast.

*/ inline DescribeWhatIfForecastResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the what-if forecast. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * CREATE_STOPPING, CREATE_STOPPED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

The Status of * the what-if forecast must be ACTIVE before you can access the * forecast.

*/ inline DescribeWhatIfForecastResult& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

If an error occurred, an informational message about the error.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

If an error occurred, an informational message about the error.

*/ inline void SetMessage(const Aws::String& value) { m_message = value; } /** *

If an error occurred, an informational message about the error.

*/ inline void SetMessage(Aws::String&& value) { m_message = std::move(value); } /** *

If an error occurred, an informational message about the error.

*/ inline void SetMessage(const char* value) { m_message.assign(value); } /** *

If an error occurred, an informational message about the error.

*/ inline DescribeWhatIfForecastResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

If an error occurred, an informational message about the error.

*/ inline DescribeWhatIfForecastResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

If an error occurred, an informational message about the error.

*/ inline DescribeWhatIfForecastResult& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

When the what-if forecast was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

When the what-if forecast was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *

When the what-if forecast was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } /** *

When the what-if forecast was created.

*/ inline DescribeWhatIfForecastResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

When the what-if forecast was created.

*/ inline DescribeWhatIfForecastResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The last time the resource was modified. The timestamp depends on the status * of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • CREATE_STOPPING - The * current timestamp.

  • CREATE_STOPPED - When the job * stopped.

  • ACTIVE or CREATE_FAILED - * When the job finished or failed.

*/ inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; } /** *

The last time the resource was modified. The timestamp depends on the status * of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • CREATE_STOPPING - The * current timestamp.

  • CREATE_STOPPED - When the job * stopped.

  • ACTIVE or CREATE_FAILED - * When the job finished or failed.

*/ inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTime = value; } /** *

The last time the resource was modified. The timestamp depends on the status * of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • CREATE_STOPPING - The * current timestamp.

  • CREATE_STOPPED - When the job * stopped.

  • ACTIVE or CREATE_FAILED - * When the job finished or failed.

*/ inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTime = std::move(value); } /** *

The last time the resource was modified. The timestamp depends on the status * of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • CREATE_STOPPING - The * current timestamp.

  • CREATE_STOPPED - When the job * stopped.

  • ACTIVE or CREATE_FAILED - * When the job finished or failed.

*/ inline DescribeWhatIfForecastResult& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;} /** *

The last time the resource was modified. The timestamp depends on the status * of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • CREATE_STOPPING - The * current timestamp.

  • CREATE_STOPPED - When the job * stopped.

  • ACTIVE or CREATE_FAILED - * When the job finished or failed.

*/ inline DescribeWhatIfForecastResult& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;} /** *

An array of Action and TimeSeriesConditions * elements that describe what transformations were applied to which time * series.

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

An array of Action and TimeSeriesConditions * elements that describe what transformations were applied to which time * series.

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

An array of Action and TimeSeriesConditions * elements that describe what transformations were applied to which time * series.

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

An array of Action and TimeSeriesConditions * elements that describe what transformations were applied to which time * series.

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

An array of Action and TimeSeriesConditions * elements that describe what transformations were applied to which time * series.

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

An array of Action and TimeSeriesConditions * elements that describe what transformations were applied to which time * series.

*/ inline DescribeWhatIfForecastResult& AddTimeSeriesTransformations(const TimeSeriesTransformation& value) { m_timeSeriesTransformations.push_back(value); return *this; } /** *

An array of Action and TimeSeriesConditions * elements that describe what transformations were applied to which time * series.

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

An array of S3Config, Schema, and * Format elements that describe the replacement time series.

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

An array of S3Config, Schema, and * Format elements that describe the replacement time series.

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

An array of S3Config, Schema, and * Format elements that describe the replacement time series.

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

An array of S3Config, Schema, and * Format elements that describe the replacement time series.

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

An array of S3Config, Schema, and * Format elements that describe the replacement time series.

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

The quantiles at which probabilistic forecasts are generated. You can specify * up to five quantiles per what-if forecast in the CreateWhatIfForecast * operation. If you didn't specify quantiles, the default values are ["0.1", * "0.5", "0.9"].

*/ inline const Aws::Vector& GetForecastTypes() const{ return m_forecastTypes; } /** *

The quantiles at which probabilistic forecasts are generated. You can specify * up to five quantiles per what-if forecast in the CreateWhatIfForecast * operation. If you didn't specify quantiles, the default values are ["0.1", * "0.5", "0.9"].

*/ inline void SetForecastTypes(const Aws::Vector& value) { m_forecastTypes = value; } /** *

The quantiles at which probabilistic forecasts are generated. You can specify * up to five quantiles per what-if forecast in the CreateWhatIfForecast * operation. If you didn't specify quantiles, the default values are ["0.1", * "0.5", "0.9"].

*/ inline void SetForecastTypes(Aws::Vector&& value) { m_forecastTypes = std::move(value); } /** *

The quantiles at which probabilistic forecasts are generated. You can specify * up to five quantiles per what-if forecast in the CreateWhatIfForecast * operation. If you didn't specify quantiles, the default values are ["0.1", * "0.5", "0.9"].

*/ inline DescribeWhatIfForecastResult& WithForecastTypes(const Aws::Vector& value) { SetForecastTypes(value); return *this;} /** *

The quantiles at which probabilistic forecasts are generated. You can specify * up to five quantiles per what-if forecast in the CreateWhatIfForecast * operation. If you didn't specify quantiles, the default values are ["0.1", * "0.5", "0.9"].

*/ inline DescribeWhatIfForecastResult& WithForecastTypes(Aws::Vector&& value) { SetForecastTypes(std::move(value)); return *this;} /** *

The quantiles at which probabilistic forecasts are generated. You can specify * up to five quantiles per what-if forecast in the CreateWhatIfForecast * operation. If you didn't specify quantiles, the default values are ["0.1", * "0.5", "0.9"].

*/ inline DescribeWhatIfForecastResult& AddForecastTypes(const Aws::String& value) { m_forecastTypes.push_back(value); return *this; } /** *

The quantiles at which probabilistic forecasts are generated. You can specify * up to five quantiles per what-if forecast in the CreateWhatIfForecast * operation. If you didn't specify quantiles, the default values are ["0.1", * "0.5", "0.9"].

*/ inline DescribeWhatIfForecastResult& AddForecastTypes(Aws::String&& value) { m_forecastTypes.push_back(std::move(value)); return *this; } /** *

The quantiles at which probabilistic forecasts are generated. You can specify * up to five quantiles per what-if forecast in the CreateWhatIfForecast * operation. If you didn't specify quantiles, the default values are ["0.1", * "0.5", "0.9"].

*/ inline DescribeWhatIfForecastResult& AddForecastTypes(const char* value) { m_forecastTypes.push_back(value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeWhatIfForecastResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeWhatIfForecastResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeWhatIfForecastResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_whatIfForecastName; Aws::String m_whatIfForecastArn; Aws::String m_whatIfAnalysisArn; long long m_estimatedTimeRemainingInMinutes; Aws::String m_status; Aws::String m_message; Aws::Utils::DateTime m_creationTime; Aws::Utils::DateTime m_lastModificationTime; Aws::Vector m_timeSeriesTransformations; TimeSeriesReplacementsDataSource m_timeSeriesReplacementsDataSource; Aws::Vector m_forecastTypes; Aws::String m_requestId; }; } // namespace Model } // namespace ForecastService } // namespace Aws