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

Contains information about the configuration of a deployment.

See * Also:

AWS * API Reference

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

Toggle that determines whether to rollback to previous configuration if the * current deployment fails. By default this is turned on. You may turn this off if * you want to investigate the errors yourself.

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

Toggle that determines whether to rollback to previous configuration if the * current deployment fails. By default this is turned on. You may turn this off if * you want to investigate the errors yourself.

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

Toggle that determines whether to rollback to previous configuration if the * current deployment fails. By default this is turned on. You may turn this off if * you want to investigate the errors yourself.

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

Toggle that determines whether to rollback to previous configuration if the * current deployment fails. By default this is turned on. You may turn this off if * you want to investigate the errors yourself.

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

Toggle that determines whether to rollback to previous configuration if the * current deployment fails. By default this is turned on. You may turn this off if * you want to investigate the errors yourself.

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

Toggle that determines whether to rollback to previous configuration if the * current deployment fails. By default this is turned on. You may turn this off if * you want to investigate the errors yourself.

*/ inline EdgeDeploymentConfig& WithFailureHandlingPolicy(FailureHandlingPolicy&& value) { SetFailureHandlingPolicy(std::move(value)); return *this;} private: FailureHandlingPolicy m_failureHandlingPolicy; bool m_failureHandlingPolicyHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws