/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 a deployment on an edge device that is registered with * SageMaker Edge Manager.

See Also:

AWS * API Reference

*/ class EdgeDeployment { public: AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment(); AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment& 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 EdgeDeployment& WithDeploymentName(const Aws::String& value) { SetDeploymentName(value); return *this;} /** *

The name and unique ID of the deployment.

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

The name and unique ID of the deployment.

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

The type of the deployment.

*/ inline const DeploymentType& GetType() const{ return m_type; } /** *

The type of the deployment.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the deployment.

*/ inline void SetType(const DeploymentType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the deployment.

*/ inline void SetType(DeploymentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the deployment.

*/ inline EdgeDeployment& WithType(const DeploymentType& value) { SetType(value); return *this;} /** *

The type of the deployment.

*/ inline EdgeDeployment& WithType(DeploymentType&& value) { SetType(std::move(value)); return *this;} /** *

Determines whether to rollback to previous configuration if deployment * fails.

*/ inline const FailureHandlingPolicy& GetFailureHandlingPolicy() const{ return m_failureHandlingPolicy; } /** *

Determines whether to rollback to previous configuration if deployment * fails.

*/ inline bool FailureHandlingPolicyHasBeenSet() const { return m_failureHandlingPolicyHasBeenSet; } /** *

Determines whether to rollback to previous configuration if deployment * fails.

*/ inline void SetFailureHandlingPolicy(const FailureHandlingPolicy& value) { m_failureHandlingPolicyHasBeenSet = true; m_failureHandlingPolicy = value; } /** *

Determines whether to rollback to previous configuration if deployment * fails.

*/ inline void SetFailureHandlingPolicy(FailureHandlingPolicy&& value) { m_failureHandlingPolicyHasBeenSet = true; m_failureHandlingPolicy = std::move(value); } /** *

Determines whether to rollback to previous configuration if deployment * fails.

*/ inline EdgeDeployment& WithFailureHandlingPolicy(const FailureHandlingPolicy& value) { SetFailureHandlingPolicy(value); return *this;} /** *

Determines whether to rollback to previous configuration if deployment * fails.

*/ inline EdgeDeployment& WithFailureHandlingPolicy(FailureHandlingPolicy&& value) { SetFailureHandlingPolicy(std::move(value)); return *this;} /** *

Returns a list of Definition objects.

*/ inline const Aws::Vector& GetDefinitions() const{ return m_definitions; } /** *

Returns a list of Definition objects.

*/ inline bool DefinitionsHasBeenSet() const { return m_definitionsHasBeenSet; } /** *

Returns a list of Definition objects.

*/ inline void SetDefinitions(const Aws::Vector& value) { m_definitionsHasBeenSet = true; m_definitions = value; } /** *

Returns a list of Definition objects.

*/ inline void SetDefinitions(Aws::Vector&& value) { m_definitionsHasBeenSet = true; m_definitions = std::move(value); } /** *

Returns a list of Definition objects.

*/ inline EdgeDeployment& WithDefinitions(const Aws::Vector& value) { SetDefinitions(value); return *this;} /** *

Returns a list of Definition objects.

*/ inline EdgeDeployment& WithDefinitions(Aws::Vector&& value) { SetDefinitions(std::move(value)); return *this;} /** *

Returns a list of Definition objects.

*/ inline EdgeDeployment& AddDefinitions(const Definition& value) { m_definitionsHasBeenSet = true; m_definitions.push_back(value); return *this; } /** *

Returns a list of Definition objects.

*/ inline EdgeDeployment& AddDefinitions(Definition&& value) { m_definitionsHasBeenSet = true; m_definitions.push_back(std::move(value)); return *this; } private: Aws::String m_deploymentName; bool m_deploymentNameHasBeenSet = false; DeploymentType m_type; bool m_typeHasBeenSet = false; FailureHandlingPolicy m_failureHandlingPolicy; bool m_failureHandlingPolicyHasBeenSet = false; Aws::Vector m_definitions; bool m_definitionsHasBeenSet = false; }; } // namespace Model } // namespace SagemakerEdgeManager } // namespace Aws