/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ForecastService { namespace Model { /** *

Provides a summary of the predictor properties that are used in the * ListPredictors operation. To get the complete set of properties, call the * DescribePredictor operation, and provide the listed * PredictorArn.

See Also:

AWS * API Reference

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

The ARN of the predictor.

*/ inline const Aws::String& GetPredictorArn() const{ return m_predictorArn; } /** *

The ARN of the predictor.

*/ inline bool PredictorArnHasBeenSet() const { return m_predictorArnHasBeenSet; } /** *

The ARN of the predictor.

*/ inline void SetPredictorArn(const Aws::String& value) { m_predictorArnHasBeenSet = true; m_predictorArn = value; } /** *

The ARN of the predictor.

*/ inline void SetPredictorArn(Aws::String&& value) { m_predictorArnHasBeenSet = true; m_predictorArn = std::move(value); } /** *

The ARN of the predictor.

*/ inline void SetPredictorArn(const char* value) { m_predictorArnHasBeenSet = true; m_predictorArn.assign(value); } /** *

The ARN of the predictor.

*/ inline PredictorSummary& WithPredictorArn(const Aws::String& value) { SetPredictorArn(value); return *this;} /** *

The ARN of the predictor.

*/ inline PredictorSummary& WithPredictorArn(Aws::String&& value) { SetPredictorArn(std::move(value)); return *this;} /** *

The ARN of the predictor.

*/ inline PredictorSummary& WithPredictorArn(const char* value) { SetPredictorArn(value); return *this;} /** *

The name of the predictor.

*/ inline const Aws::String& GetPredictorName() const{ return m_predictorName; } /** *

The name of the predictor.

*/ inline bool PredictorNameHasBeenSet() const { return m_predictorNameHasBeenSet; } /** *

The name of the predictor.

*/ inline void SetPredictorName(const Aws::String& value) { m_predictorNameHasBeenSet = true; m_predictorName = value; } /** *

The name of the predictor.

*/ inline void SetPredictorName(Aws::String&& value) { m_predictorNameHasBeenSet = true; m_predictorName = std::move(value); } /** *

The name of the predictor.

*/ inline void SetPredictorName(const char* value) { m_predictorNameHasBeenSet = true; m_predictorName.assign(value); } /** *

The name of the predictor.

*/ inline PredictorSummary& WithPredictorName(const Aws::String& value) { SetPredictorName(value); return *this;} /** *

The name of the predictor.

*/ inline PredictorSummary& WithPredictorName(Aws::String&& value) { SetPredictorName(std::move(value)); return *this;} /** *

The name of the predictor.

*/ inline PredictorSummary& WithPredictorName(const char* value) { SetPredictorName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset group that contains the data * used to train the predictor.

*/ inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; } /** *

The Amazon Resource Name (ARN) of the dataset group that contains the data * used to train the predictor.

*/ inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the dataset group that contains the data * used to train the predictor.

*/ inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; } /** *

The Amazon Resource Name (ARN) of the dataset group that contains the data * used to train the predictor.

*/ inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the dataset group that contains the data * used to train the predictor.

*/ inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the dataset group that contains the data * used to train the predictor.

*/ inline PredictorSummary& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset group that contains the data * used to train the predictor.

*/ inline PredictorSummary& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset group that contains the data * used to train the predictor.

*/ inline PredictorSummary& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;} /** *

Whether AutoPredictor was used to create the predictor.

*/ inline bool GetIsAutoPredictor() const{ return m_isAutoPredictor; } /** *

Whether AutoPredictor was used to create the predictor.

*/ inline bool IsAutoPredictorHasBeenSet() const { return m_isAutoPredictorHasBeenSet; } /** *

Whether AutoPredictor was used to create the predictor.

*/ inline void SetIsAutoPredictor(bool value) { m_isAutoPredictorHasBeenSet = true; m_isAutoPredictor = value; } /** *

Whether AutoPredictor was used to create the predictor.

*/ inline PredictorSummary& WithIsAutoPredictor(bool value) { SetIsAutoPredictor(value); return *this;} /** *

A summary of the reference predictor used if the predictor was retrained or * upgraded.

*/ inline const ReferencePredictorSummary& GetReferencePredictorSummary() const{ return m_referencePredictorSummary; } /** *

A summary of the reference predictor used if the predictor was retrained or * upgraded.

*/ inline bool ReferencePredictorSummaryHasBeenSet() const { return m_referencePredictorSummaryHasBeenSet; } /** *

A summary of the reference predictor used if the predictor was retrained or * upgraded.

*/ inline void SetReferencePredictorSummary(const ReferencePredictorSummary& value) { m_referencePredictorSummaryHasBeenSet = true; m_referencePredictorSummary = value; } /** *

A summary of the reference predictor used if the predictor was retrained or * upgraded.

*/ inline void SetReferencePredictorSummary(ReferencePredictorSummary&& value) { m_referencePredictorSummaryHasBeenSet = true; m_referencePredictorSummary = std::move(value); } /** *

A summary of the reference predictor used if the predictor was retrained or * upgraded.

*/ inline PredictorSummary& WithReferencePredictorSummary(const ReferencePredictorSummary& value) { SetReferencePredictorSummary(value); return *this;} /** *

A summary of the reference predictor used if the predictor was retrained or * upgraded.

*/ inline PredictorSummary& WithReferencePredictorSummary(ReferencePredictorSummary&& value) { SetReferencePredictorSummary(std::move(value)); return *this;} /** *

The status of the predictor. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

The Status * of the predictor must be ACTIVE before you can use the predictor to * create a forecast.

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

The status of the predictor. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

The Status * of the predictor must be ACTIVE before you can use the predictor to * create a forecast.

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

The status of the predictor. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

The Status * of the predictor must be ACTIVE before you can use the predictor to * create a forecast.

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

The status of the predictor. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

The Status * of the predictor must be ACTIVE before you can use the predictor to * create a forecast.

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

The status of the predictor. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

The Status * of the predictor must be ACTIVE before you can use the predictor to * create a forecast.

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

The status of the predictor. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

The Status * of the predictor must be ACTIVE before you can use the predictor to * create a forecast.

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

The status of the predictor. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

The Status * of the predictor must be ACTIVE before you can use the predictor to * create a forecast.

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

The status of the predictor. States include:

  • * ACTIVE

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

  • CREATE_STOPPING, * CREATE_STOPPED

The Status * of the predictor must be ACTIVE before you can use the predictor to * create a forecast.

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

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

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

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

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

When the model training task was created.

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

When the model training task was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

When the model training task was created.

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

When the model training task was created.

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

When the model training task was created.

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

When the model training task was created.

*/ inline PredictorSummary& 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 PredictorSummary& 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 PredictorSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;} private: Aws::String m_predictorArn; bool m_predictorArnHasBeenSet = false; Aws::String m_predictorName; bool m_predictorNameHasBeenSet = false; Aws::String m_datasetGroupArn; bool m_datasetGroupArnHasBeenSet = false; bool m_isAutoPredictor; bool m_isAutoPredictorHasBeenSet = false; ReferencePredictorSummary m_referencePredictorSummary; bool m_referencePredictorSummaryHasBeenSet = 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