/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the configuration of a deployment.See
* Also:
AWS
* API Reference
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