AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DeploymentAlarms.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_ECS_API DeploymentAlarms() = default;
49
50
52
55 inline const Aws::Vector<Aws::String>& GetAlarmNames() const { return m_alarmNames; }
56 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
57 template<typename AlarmNamesT = Aws::Vector<Aws::String>>
58 void SetAlarmNames(AlarmNamesT&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = std::forward<AlarmNamesT>(value); }
59 template<typename AlarmNamesT = Aws::Vector<Aws::String>>
60 DeploymentAlarms& WithAlarmNames(AlarmNamesT&& value) { SetAlarmNames(std::forward<AlarmNamesT>(value)); return *this;}
61 template<typename AlarmNamesT = Aws::String>
62 DeploymentAlarms& AddAlarmNames(AlarmNamesT&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.emplace_back(std::forward<AlarmNamesT>(value)); return *this; }
64
66
72 inline bool GetRollback() const { return m_rollback; }
73 inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; }
74 inline void SetRollback(bool value) { m_rollbackHasBeenSet = true; m_rollback = value; }
75 inline DeploymentAlarms& WithRollback(bool value) { SetRollback(value); return *this;}
77
79
83 inline bool GetEnable() const { return m_enable; }
84 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
85 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
86 inline DeploymentAlarms& WithEnable(bool value) { SetEnable(value); return *this;}
88 private:
89
90 Aws::Vector<Aws::String> m_alarmNames;
91 bool m_alarmNamesHasBeenSet = false;
92
93 bool m_rollback{false};
94 bool m_rollbackHasBeenSet = false;
95
96 bool m_enable{false};
97 bool m_enableHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace ECS
102} // namespace Aws
AWS_ECS_API DeploymentAlarms(Aws::Utils::Json::JsonView jsonValue)
void SetAlarmNames(AlarmNamesT &&value)
DeploymentAlarms & WithEnable(bool value)
DeploymentAlarms & AddAlarmNames(AlarmNamesT &&value)
DeploymentAlarms & WithAlarmNames(AlarmNamesT &&value)
const Aws::Vector< Aws::String > & GetAlarmNames() const
AWS_ECS_API DeploymentAlarms()=default
AWS_ECS_API DeploymentAlarms & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentAlarms & WithRollback(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue