/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ForecastService { namespace Model { /** *

Provides a summary of the what-if forecast properties used in the * ListWhatIfForecasts operation. To get the complete set of properties, * call the DescribeWhatIfForecast operation, and provide the * WhatIfForecastArn that is listed in the summary.

See * Also:

AWS * API Reference

*/ class WhatIfForecastSummary { public: AWS_FORECASTSERVICE_API WhatIfForecastSummary(); AWS_FORECASTSERVICE_API WhatIfForecastSummary(Aws::Utils::Json::JsonView jsonValue); AWS_FORECASTSERVICE_API WhatIfForecastSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 bool WhatIfForecastArnHasBeenSet() const { return m_whatIfForecastArnHasBeenSet; } /** *

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

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

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

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

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

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

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

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

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

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

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

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

The name of the what-if forecast.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline WhatIfForecastSummary& WithWhatIfAnalysisArn(const char* value) { SetWhatIfAnalysisArn(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 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 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 analysis must be ACTIVE before you can access the * analysis.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

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 analysis must be ACTIVE before you can access the * analysis.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; 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 analysis must be ACTIVE before you can access the * analysis.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; 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 analysis must be ACTIVE before you can access the * analysis.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; 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 analysis must be ACTIVE before you can access the * analysis.

*/ inline WhatIfForecastSummary& 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 analysis must be ACTIVE before you can access the * analysis.

*/ inline WhatIfForecastSummary& 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 analysis must be ACTIVE before you can access the * analysis.

*/ inline WhatIfForecastSummary& 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 bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

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

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

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

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

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

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

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

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

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

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

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

*/ inline WhatIfForecastSummary& 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 bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

When the what-if forecast was created.

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

When the what-if forecast was created.

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

When the what-if forecast was created.

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

When the what-if forecast was created.

*/ inline WhatIfForecastSummary& 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 bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; } /** *

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_lastModificationTimeHasBeenSet = true; 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_lastModificationTimeHasBeenSet = true; 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 WhatIfForecastSummary& 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 WhatIfForecastSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;} private: Aws::String m_whatIfForecastArn; bool m_whatIfForecastArnHasBeenSet = false; Aws::String m_whatIfForecastName; bool m_whatIfForecastNameHasBeenSet = false; Aws::String m_whatIfAnalysisArn; bool m_whatIfAnalysisArnHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastModificationTime; bool m_lastModificationTimeHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws