/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Determines whether a service deployment fails if a service cannot reach a
* steady state.See Also:
AWS
* API Reference
Whether to enable the deployment circuit breaker logic for the service.
*/ inline bool GetEnable() const{ return m_enable; } /** *Whether to enable the deployment circuit breaker logic for the service.
*/ inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; } /** *Whether to enable the deployment circuit breaker logic for the service.
*/ inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; } /** *Whether to enable the deployment circuit breaker logic for the service.
*/ inline AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails& WithEnable(bool value) { SetEnable(value); return *this;} /** *Whether to roll back the service if a service deployment fails. If rollback * is enabled, when a service deployment fails, the service is rolled back to the * last deployment that completed successfully.
*/ inline bool GetRollback() const{ return m_rollback; } /** *Whether to roll back the service if a service deployment fails. If rollback * is enabled, when a service deployment fails, the service is rolled back to the * last deployment that completed successfully.
*/ inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; } /** *Whether to roll back the service if a service deployment fails. If rollback * is enabled, when a service deployment fails, the service is rolled back to the * last deployment that completed successfully.
*/ inline void SetRollback(bool value) { m_rollbackHasBeenSet = true; m_rollback = value; } /** *Whether to roll back the service if a service deployment fails. If rollback * is enabled, when a service deployment fails, the service is rolled back to the * last deployment that completed successfully.
*/ inline AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails& WithRollback(bool value) { SetRollback(value); return *this;} private: bool m_enable; bool m_enableHasBeenSet = false; bool m_rollback; bool m_rollbackHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws