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

Describes an Amazon Lookout for Vision model.

See Also:

AWS * API Reference

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

The unix timestamp for the date and time that the model was created.

*/ inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; } /** *

The unix timestamp for the date and time that the model was created.

*/ inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; } /** *

The unix timestamp for the date and time that the model was created.

*/ inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; } /** *

The unix timestamp for the date and time that the model was created.

*/ inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::move(value); } /** *

The unix timestamp for the date and time that the model was created.

*/ inline ModelMetadata& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;} /** *

The unix timestamp for the date and time that the model was created.

*/ inline ModelMetadata& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;} /** *

The version of the model.

*/ inline const Aws::String& GetModelVersion() const{ return m_modelVersion; } /** *

The version of the model.

*/ inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; } /** *

The version of the model.

*/ inline void SetModelVersion(const Aws::String& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; } /** *

The version of the model.

*/ inline void SetModelVersion(Aws::String&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); } /** *

The version of the model.

*/ inline void SetModelVersion(const char* value) { m_modelVersionHasBeenSet = true; m_modelVersion.assign(value); } /** *

The version of the model.

*/ inline ModelMetadata& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;} /** *

The version of the model.

*/ inline ModelMetadata& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;} /** *

The version of the model.

*/ inline ModelMetadata& WithModelVersion(const char* value) { SetModelVersion(value); return *this;} /** *

The Amazon Resource Name (ARN) of the model.

*/ inline const Aws::String& GetModelArn() const{ return m_modelArn; } /** *

The Amazon Resource Name (ARN) of the model.

*/ inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the model.

*/ inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; } /** *

The Amazon Resource Name (ARN) of the model.

*/ inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the model.

*/ inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the model.

*/ inline ModelMetadata& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the model.

*/ inline ModelMetadata& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the model.

*/ inline ModelMetadata& WithModelArn(const char* value) { SetModelArn(value); return *this;} /** *

The description for the model.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for the model.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description for the model.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description for the model.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description for the model.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description for the model.

*/ inline ModelMetadata& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for the model.

*/ inline ModelMetadata& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for the model.

*/ inline ModelMetadata& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The status of the model.

*/ inline const ModelStatus& GetStatus() const{ return m_status; } /** *

The status of the model.

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

The status of the model.

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

The status of the model.

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

The status of the model.

*/ inline ModelMetadata& WithStatus(const ModelStatus& value) { SetStatus(value); return *this;} /** *

The status of the model.

*/ inline ModelMetadata& WithStatus(ModelStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The status message for the model.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

The status message for the model.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

The status message for the model.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

The status message for the model.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

The status message for the model.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

The status message for the model.

*/ inline ModelMetadata& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

The status message for the model.

*/ inline ModelMetadata& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

The status message for the model.

*/ inline ModelMetadata& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

Performance metrics for the model. Not available until training has * successfully completed.

*/ inline const ModelPerformance& GetPerformance() const{ return m_performance; } /** *

Performance metrics for the model. Not available until training has * successfully completed.

*/ inline bool PerformanceHasBeenSet() const { return m_performanceHasBeenSet; } /** *

Performance metrics for the model. Not available until training has * successfully completed.

*/ inline void SetPerformance(const ModelPerformance& value) { m_performanceHasBeenSet = true; m_performance = value; } /** *

Performance metrics for the model. Not available until training has * successfully completed.

*/ inline void SetPerformance(ModelPerformance&& value) { m_performanceHasBeenSet = true; m_performance = std::move(value); } /** *

Performance metrics for the model. Not available until training has * successfully completed.

*/ inline ModelMetadata& WithPerformance(const ModelPerformance& value) { SetPerformance(value); return *this;} /** *

Performance metrics for the model. Not available until training has * successfully completed.

*/ inline ModelMetadata& WithPerformance(ModelPerformance&& value) { SetPerformance(std::move(value)); return *this;} private: Aws::Utils::DateTime m_creationTimestamp; bool m_creationTimestampHasBeenSet = false; Aws::String m_modelVersion; bool m_modelVersionHasBeenSet = false; Aws::String m_modelArn; bool m_modelArnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; ModelStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; ModelPerformance m_performance; bool m_performanceHasBeenSet = false; }; } // namespace Model } // namespace LookoutforVision } // namespace Aws