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

Information about the result of a deployment on an edge device that is * registered with SageMaker Edge Manager.

See Also:

AWS * API Reference

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

The name and unique ID of the deployment.

*/ inline const Aws::String& GetDeploymentName() const{ return m_deploymentName; } /** *

The name and unique ID of the deployment.

*/ inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; } /** *

The name and unique ID of the deployment.

*/ inline void SetDeploymentName(const Aws::String& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = value; } /** *

The name and unique ID of the deployment.

*/ inline void SetDeploymentName(Aws::String&& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = std::move(value); } /** *

The name and unique ID of the deployment.

*/ inline void SetDeploymentName(const char* value) { m_deploymentNameHasBeenSet = true; m_deploymentName.assign(value); } /** *

The name and unique ID of the deployment.

*/ inline DeploymentResult& WithDeploymentName(const Aws::String& value) { SetDeploymentName(value); return *this;} /** *

The name and unique ID of the deployment.

*/ inline DeploymentResult& WithDeploymentName(Aws::String&& value) { SetDeploymentName(std::move(value)); return *this;} /** *

The name and unique ID of the deployment.

*/ inline DeploymentResult& WithDeploymentName(const char* value) { SetDeploymentName(value); return *this;} /** *

Returns the bucket error code.

*/ inline const Aws::String& GetDeploymentStatus() const{ return m_deploymentStatus; } /** *

Returns the bucket error code.

*/ inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; } /** *

Returns the bucket error code.

*/ inline void SetDeploymentStatus(const Aws::String& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; } /** *

Returns the bucket error code.

*/ inline void SetDeploymentStatus(Aws::String&& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = std::move(value); } /** *

Returns the bucket error code.

*/ inline void SetDeploymentStatus(const char* value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus.assign(value); } /** *

Returns the bucket error code.

*/ inline DeploymentResult& WithDeploymentStatus(const Aws::String& value) { SetDeploymentStatus(value); return *this;} /** *

Returns the bucket error code.

*/ inline DeploymentResult& WithDeploymentStatus(Aws::String&& value) { SetDeploymentStatus(std::move(value)); return *this;} /** *

Returns the bucket error code.

*/ inline DeploymentResult& WithDeploymentStatus(const char* value) { SetDeploymentStatus(value); return *this;} /** *

Returns the detailed error message.

*/ inline const Aws::String& GetDeploymentStatusMessage() const{ return m_deploymentStatusMessage; } /** *

Returns the detailed error message.

*/ inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; } /** *

Returns the detailed error message.

*/ inline void SetDeploymentStatusMessage(const Aws::String& value) { m_deploymentStatusMessageHasBeenSet = true; m_deploymentStatusMessage = value; } /** *

Returns the detailed error message.

*/ inline void SetDeploymentStatusMessage(Aws::String&& value) { m_deploymentStatusMessageHasBeenSet = true; m_deploymentStatusMessage = std::move(value); } /** *

Returns the detailed error message.

*/ inline void SetDeploymentStatusMessage(const char* value) { m_deploymentStatusMessageHasBeenSet = true; m_deploymentStatusMessage.assign(value); } /** *

Returns the detailed error message.

*/ inline DeploymentResult& WithDeploymentStatusMessage(const Aws::String& value) { SetDeploymentStatusMessage(value); return *this;} /** *

Returns the detailed error message.

*/ inline DeploymentResult& WithDeploymentStatusMessage(Aws::String&& value) { SetDeploymentStatusMessage(std::move(value)); return *this;} /** *

Returns the detailed error message.

*/ inline DeploymentResult& WithDeploymentStatusMessage(const char* value) { SetDeploymentStatusMessage(value); return *this;} /** *

The timestamp of when the deployment was started on the agent.

*/ inline const Aws::Utils::DateTime& GetDeploymentStartTime() const{ return m_deploymentStartTime; } /** *

The timestamp of when the deployment was started on the agent.

*/ inline bool DeploymentStartTimeHasBeenSet() const { return m_deploymentStartTimeHasBeenSet; } /** *

The timestamp of when the deployment was started on the agent.

*/ inline void SetDeploymentStartTime(const Aws::Utils::DateTime& value) { m_deploymentStartTimeHasBeenSet = true; m_deploymentStartTime = value; } /** *

The timestamp of when the deployment was started on the agent.

*/ inline void SetDeploymentStartTime(Aws::Utils::DateTime&& value) { m_deploymentStartTimeHasBeenSet = true; m_deploymentStartTime = std::move(value); } /** *

The timestamp of when the deployment was started on the agent.

*/ inline DeploymentResult& WithDeploymentStartTime(const Aws::Utils::DateTime& value) { SetDeploymentStartTime(value); return *this;} /** *

The timestamp of when the deployment was started on the agent.

*/ inline DeploymentResult& WithDeploymentStartTime(Aws::Utils::DateTime&& value) { SetDeploymentStartTime(std::move(value)); return *this;} /** *

The timestamp of when the deployment was ended, and the agent got the * deployment results.

*/ inline const Aws::Utils::DateTime& GetDeploymentEndTime() const{ return m_deploymentEndTime; } /** *

The timestamp of when the deployment was ended, and the agent got the * deployment results.

*/ inline bool DeploymentEndTimeHasBeenSet() const { return m_deploymentEndTimeHasBeenSet; } /** *

The timestamp of when the deployment was ended, and the agent got the * deployment results.

*/ inline void SetDeploymentEndTime(const Aws::Utils::DateTime& value) { m_deploymentEndTimeHasBeenSet = true; m_deploymentEndTime = value; } /** *

The timestamp of when the deployment was ended, and the agent got the * deployment results.

*/ inline void SetDeploymentEndTime(Aws::Utils::DateTime&& value) { m_deploymentEndTimeHasBeenSet = true; m_deploymentEndTime = std::move(value); } /** *

The timestamp of when the deployment was ended, and the agent got the * deployment results.

*/ inline DeploymentResult& WithDeploymentEndTime(const Aws::Utils::DateTime& value) { SetDeploymentEndTime(value); return *this;} /** *

The timestamp of when the deployment was ended, and the agent got the * deployment results.

*/ inline DeploymentResult& WithDeploymentEndTime(Aws::Utils::DateTime&& value) { SetDeploymentEndTime(std::move(value)); return *this;} /** *

Returns a list of models deployed on the agent.

*/ inline const Aws::Vector& GetDeploymentModels() const{ return m_deploymentModels; } /** *

Returns a list of models deployed on the agent.

*/ inline bool DeploymentModelsHasBeenSet() const { return m_deploymentModelsHasBeenSet; } /** *

Returns a list of models deployed on the agent.

*/ inline void SetDeploymentModels(const Aws::Vector& value) { m_deploymentModelsHasBeenSet = true; m_deploymentModels = value; } /** *

Returns a list of models deployed on the agent.

*/ inline void SetDeploymentModels(Aws::Vector&& value) { m_deploymentModelsHasBeenSet = true; m_deploymentModels = std::move(value); } /** *

Returns a list of models deployed on the agent.

*/ inline DeploymentResult& WithDeploymentModels(const Aws::Vector& value) { SetDeploymentModels(value); return *this;} /** *

Returns a list of models deployed on the agent.

*/ inline DeploymentResult& WithDeploymentModels(Aws::Vector&& value) { SetDeploymentModels(std::move(value)); return *this;} /** *

Returns a list of models deployed on the agent.

*/ inline DeploymentResult& AddDeploymentModels(const DeploymentModel& value) { m_deploymentModelsHasBeenSet = true; m_deploymentModels.push_back(value); return *this; } /** *

Returns a list of models deployed on the agent.

*/ inline DeploymentResult& AddDeploymentModels(DeploymentModel&& value) { m_deploymentModelsHasBeenSet = true; m_deploymentModels.push_back(std::move(value)); return *this; } private: Aws::String m_deploymentName; bool m_deploymentNameHasBeenSet = false; Aws::String m_deploymentStatus; bool m_deploymentStatusHasBeenSet = false; Aws::String m_deploymentStatusMessage; bool m_deploymentStatusMessageHasBeenSet = false; Aws::Utils::DateTime m_deploymentStartTime; bool m_deploymentStartTimeHasBeenSet = false; Aws::Utils::DateTime m_deploymentEndTime; bool m_deploymentEndTimeHasBeenSet = false; Aws::Vector m_deploymentModels; bool m_deploymentModelsHasBeenSet = false; }; } // namespace Model } // namespace SagemakerEdgeManager } // namespace Aws