/** * 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 SagemakerEdgeManager { namespace Model { /** *

See Also:

AWS * API Reference

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

The unique handle of the model.

*/ inline const Aws::String& GetModelHandle() const{ return m_modelHandle; } /** *

The unique handle of the model.

*/ inline bool ModelHandleHasBeenSet() const { return m_modelHandleHasBeenSet; } /** *

The unique handle of the model.

*/ inline void SetModelHandle(const Aws::String& value) { m_modelHandleHasBeenSet = true; m_modelHandle = value; } /** *

The unique handle of the model.

*/ inline void SetModelHandle(Aws::String&& value) { m_modelHandleHasBeenSet = true; m_modelHandle = std::move(value); } /** *

The unique handle of the model.

*/ inline void SetModelHandle(const char* value) { m_modelHandleHasBeenSet = true; m_modelHandle.assign(value); } /** *

The unique handle of the model.

*/ inline DeploymentModel& WithModelHandle(const Aws::String& value) { SetModelHandle(value); return *this;} /** *

The unique handle of the model.

*/ inline DeploymentModel& WithModelHandle(Aws::String&& value) { SetModelHandle(std::move(value)); return *this;} /** *

The unique handle of the model.

*/ inline DeploymentModel& WithModelHandle(const char* value) { SetModelHandle(value); return *this;} /** *

The name of the model.

*/ inline const Aws::String& GetModelName() const{ return m_modelName; } /** *

The name of the model.

*/ inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; } /** *

The name of the model.

*/ inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; } /** *

The name of the model.

*/ inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); } /** *

The name of the model.

*/ inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); } /** *

The name of the model.

*/ inline DeploymentModel& WithModelName(const Aws::String& value) { SetModelName(value); return *this;} /** *

The name of the model.

*/ inline DeploymentModel& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;} /** *

The name of the model.

*/ inline DeploymentModel& WithModelName(const char* value) { SetModelName(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 DeploymentModel& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;} /** *

The version of the model.

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

The version of the model.

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

The desired state of the model.

*/ inline const ModelState& GetDesiredState() const{ return m_desiredState; } /** *

The desired state of the model.

*/ inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; } /** *

The desired state of the model.

*/ inline void SetDesiredState(const ModelState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; } /** *

The desired state of the model.

*/ inline void SetDesiredState(ModelState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); } /** *

The desired state of the model.

*/ inline DeploymentModel& WithDesiredState(const ModelState& value) { SetDesiredState(value); return *this;} /** *

The desired state of the model.

*/ inline DeploymentModel& WithDesiredState(ModelState&& value) { SetDesiredState(std::move(value)); return *this;} /** *

Returns the current state of the model.

*/ inline const ModelState& GetState() const{ return m_state; } /** *

Returns the current state of the model.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

Returns the current state of the model.

*/ inline void SetState(const ModelState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

Returns the current state of the model.

*/ inline void SetState(ModelState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

Returns the current state of the model.

*/ inline DeploymentModel& WithState(const ModelState& value) { SetState(value); return *this;} /** *

Returns the current state of the model.

*/ inline DeploymentModel& WithState(ModelState&& value) { SetState(std::move(value)); return *this;} /** *

Returns the deployment status of the model.

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

Returns the deployment status of the model.

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

Returns the deployment status of the model.

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

Returns the deployment status of the model.

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

Returns the deployment status of the model.

*/ inline DeploymentModel& WithStatus(const DeploymentStatus& value) { SetStatus(value); return *this;} /** *

Returns the deployment status of the model.

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

Returns the error message for the deployment status result.

*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *

Returns the error message for the deployment status result.

*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *

Returns the error message for the deployment status result.

*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *

Returns the error message for the deployment status result.

*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *

Returns the error message for the deployment status result.

*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *

Returns the error message for the deployment status result.

*/ inline DeploymentModel& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *

Returns the error message for the deployment status result.

*/ inline DeploymentModel& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *

Returns the error message for the deployment status result.

*/ inline DeploymentModel& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *

Returns the error message if there is a rollback.

*/ inline const Aws::String& GetRollbackFailureReason() const{ return m_rollbackFailureReason; } /** *

Returns the error message if there is a rollback.

*/ inline bool RollbackFailureReasonHasBeenSet() const { return m_rollbackFailureReasonHasBeenSet; } /** *

Returns the error message if there is a rollback.

*/ inline void SetRollbackFailureReason(const Aws::String& value) { m_rollbackFailureReasonHasBeenSet = true; m_rollbackFailureReason = value; } /** *

Returns the error message if there is a rollback.

*/ inline void SetRollbackFailureReason(Aws::String&& value) { m_rollbackFailureReasonHasBeenSet = true; m_rollbackFailureReason = std::move(value); } /** *

Returns the error message if there is a rollback.

*/ inline void SetRollbackFailureReason(const char* value) { m_rollbackFailureReasonHasBeenSet = true; m_rollbackFailureReason.assign(value); } /** *

Returns the error message if there is a rollback.

*/ inline DeploymentModel& WithRollbackFailureReason(const Aws::String& value) { SetRollbackFailureReason(value); return *this;} /** *

Returns the error message if there is a rollback.

*/ inline DeploymentModel& WithRollbackFailureReason(Aws::String&& value) { SetRollbackFailureReason(std::move(value)); return *this;} /** *

Returns the error message if there is a rollback.

*/ inline DeploymentModel& WithRollbackFailureReason(const char* value) { SetRollbackFailureReason(value); return *this;} private: Aws::String m_modelHandle; bool m_modelHandleHasBeenSet = false; Aws::String m_modelName; bool m_modelNameHasBeenSet = false; Aws::String m_modelVersion; bool m_modelVersionHasBeenSet = false; ModelState m_desiredState; bool m_desiredStateHasBeenSet = false; ModelState m_state; bool m_stateHasBeenSet = false; DeploymentStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusReason; bool m_statusReasonHasBeenSet = false; Aws::String m_rollbackFailureReason; bool m_rollbackFailureReasonHasBeenSet = false; }; } // namespace Model } // namespace SagemakerEdgeManager } // namespace Aws