/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include One of the methods which provide a way for you to quickly identify when a
* deployment has failed, and then to optionally roll back the failure to the last
* working deployment. When the alarms are generated, Amazon ECS sets the
* service deployment to failed. Set the rollback parameter to have Amazon ECS to
* roll back your service to the last completed deployment after a failure. You can only use the For more information, see Rolling
* update in the Amazon Elastic Container Service Developer Guide
* .DeploymentAlarms
method to detect failures
* when the DeploymentController
is set to ECS
(rolling
* update).See Also:
AWS
* API Reference
One or more CloudWatch alarm names. Use a "," to separate the alarms.
*/ inline const Aws::VectorOne or more CloudWatch alarm names. Use a "," to separate the alarms.
*/ inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; } /** *One or more CloudWatch alarm names. Use a "," to separate the alarms.
*/ inline void SetAlarmNames(const Aws::VectorOne or more CloudWatch alarm names. Use a "," to separate the alarms.
*/ inline void SetAlarmNames(Aws::VectorOne or more CloudWatch alarm names. Use a "," to separate the alarms.
*/ inline DeploymentAlarms& WithAlarmNames(const Aws::VectorOne or more CloudWatch alarm names. Use a "," to separate the alarms.
*/ inline DeploymentAlarms& WithAlarmNames(Aws::VectorOne or more CloudWatch alarm names. Use a "," to separate the alarms.
*/ inline DeploymentAlarms& AddAlarmNames(const Aws::String& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; } /** *One or more CloudWatch alarm names. Use a "," to separate the alarms.
*/ inline DeploymentAlarms& AddAlarmNames(Aws::String&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(std::move(value)); return *this; } /** *One or more CloudWatch alarm names. Use a "," to separate the alarms.
*/ inline DeploymentAlarms& AddAlarmNames(const char* value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; } /** *Determines whether to use the CloudWatch alarm option in the service * deployment process.
*/ inline bool GetEnable() const{ return m_enable; } /** *Determines whether to use the CloudWatch alarm option in the service * deployment process.
*/ inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; } /** *Determines whether to use the CloudWatch alarm option in the service * deployment process.
*/ inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; } /** *Determines whether to use the CloudWatch alarm option in the service * deployment process.
*/ inline DeploymentAlarms& WithEnable(bool value) { SetEnable(value); return *this;} /** *Determines whether to configure Amazon ECS to roll back the service if a * service deployment fails. If rollback is used, when a service deployment fails, * the service is rolled back to the last deployment that completed * successfully.
*/ inline bool GetRollback() const{ return m_rollback; } /** *Determines whether to configure Amazon ECS to roll back the service if a * service deployment fails. If rollback is used, when a service deployment fails, * the service is rolled back to the last deployment that completed * successfully.
*/ inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; } /** *Determines whether to configure Amazon ECS to roll back the service if a * service deployment fails. If rollback is used, 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; } /** *Determines whether to configure Amazon ECS to roll back the service if a * service deployment fails. If rollback is used, when a service deployment fails, * the service is rolled back to the last deployment that completed * successfully.
*/ inline DeploymentAlarms& WithRollback(bool value) { SetRollback(value); return *this;} private: Aws::Vector