/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 DescribeWhatIfAnalysisResult { public: AWS_FORECASTSERVICE_API DescribeWhatIfAnalysisResult(); AWS_FORECASTSERVICE_API DescribeWhatIfAnalysisResult(const Aws::AmazonWebServiceResult& result); AWS_FORECASTSERVICE_API DescribeWhatIfAnalysisResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the what-if analysis.

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

The name of the what-if analysis.

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

The name of the what-if analysis.

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

The name of the what-if analysis.

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

The name of the what-if analysis.

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

The name of the what-if analysis.

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

The name of the what-if analysis.

*/ inline DescribeWhatIfAnalysisResult& WithWhatIfAnalysisName(const char* value) { SetWhatIfAnalysisName(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 void SetWhatIfAnalysisArn(const Aws::String& value) { m_whatIfAnalysisArn = value; } /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The status of the what-if analysis. 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 analysis must be ACTIVE before you can access the * analysis.

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

The status of the what-if analysis. 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 analysis must be ACTIVE before you can access the * analysis.

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

The status of the what-if analysis. 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 analysis must be ACTIVE before you can access the * analysis.

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

The status of the what-if analysis. 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 analysis must be ACTIVE before you can access the * analysis.

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

The status of the what-if analysis. 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 analysis must be ACTIVE before you can access the * analysis.

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

The status of the what-if analysis. 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 analysis must be ACTIVE before you can access the * analysis.

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

The status of the what-if analysis. 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 analysis must be ACTIVE before you can access the * analysis.

*/ inline DescribeWhatIfAnalysisResult& 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 DescribeWhatIfAnalysisResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

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

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

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

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

When the what-if analysis was created.

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

When the what-if analysis was created.

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

When the what-if analysis was created.

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

When the what-if analysis was created.

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

When the what-if analysis was created.

*/ inline DescribeWhatIfAnalysisResult& 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 DescribeWhatIfAnalysisResult& 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 DescribeWhatIfAnalysisResult& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;} inline const TimeSeriesSelector& GetTimeSeriesSelector() const{ return m_timeSeriesSelector; } inline void SetTimeSeriesSelector(const TimeSeriesSelector& value) { m_timeSeriesSelector = value; } inline void SetTimeSeriesSelector(TimeSeriesSelector&& value) { m_timeSeriesSelector = std::move(value); } inline DescribeWhatIfAnalysisResult& WithTimeSeriesSelector(const TimeSeriesSelector& value) { SetTimeSeriesSelector(value); return *this;} inline DescribeWhatIfAnalysisResult& WithTimeSeriesSelector(TimeSeriesSelector&& value) { SetTimeSeriesSelector(std::move(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 DescribeWhatIfAnalysisResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeWhatIfAnalysisResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeWhatIfAnalysisResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_whatIfAnalysisName; Aws::String m_whatIfAnalysisArn; Aws::String m_forecastArn; long long m_estimatedTimeRemainingInMinutes; Aws::String m_status; Aws::String m_message; Aws::Utils::DateTime m_creationTime; Aws::Utils::DateTime m_lastModificationTime; TimeSeriesSelector m_timeSeriesSelector; Aws::String m_requestId; }; } // namespace Model } // namespace ForecastService } // namespace Aws