AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DeploymentAlarms.h
Go to the documentation of this file.
1
6#pragma once
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:
49
50
54 inline const Aws::Vector<Aws::String>& GetAlarmNames() const{ return m_alarmNames; }
55
59 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
60
64 inline void SetAlarmNames(const Aws::Vector<Aws::String>& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = value; }
65
69 inline void SetAlarmNames(Aws::Vector<Aws::String>&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = std::move(value); }
70
74 inline DeploymentAlarms& WithAlarmNames(const Aws::Vector<Aws::String>& value) { SetAlarmNames(value); return *this;}
75
79 inline DeploymentAlarms& WithAlarmNames(Aws::Vector<Aws::String>&& value) { SetAlarmNames(std::move(value)); return *this;}
80
84 inline DeploymentAlarms& AddAlarmNames(const Aws::String& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
85
89 inline DeploymentAlarms& AddAlarmNames(Aws::String&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(std::move(value)); return *this; }
90
94 inline DeploymentAlarms& AddAlarmNames(const char* value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
95
96
101 inline bool GetEnable() const{ return m_enable; }
102
107 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
108
113 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
114
119 inline DeploymentAlarms& WithEnable(bool value) { SetEnable(value); return *this;}
120
121
128 inline bool GetRollback() const{ return m_rollback; }
129
136 inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; }
137
144 inline void SetRollback(bool value) { m_rollbackHasBeenSet = true; m_rollback = value; }
145
152 inline DeploymentAlarms& WithRollback(bool value) { SetRollback(value); return *this;}
153
154 private:
155
156 Aws::Vector<Aws::String> m_alarmNames;
157 bool m_alarmNamesHasBeenSet = false;
158
159 bool m_enable;
160 bool m_enableHasBeenSet = false;
161
162 bool m_rollback;
163 bool m_rollbackHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace ECS
168} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetAlarmNames(const Aws::Vector< Aws::String > &value)
AWS_ECS_API DeploymentAlarms(Aws::Utils::Json::JsonView jsonValue)
DeploymentAlarms & AddAlarmNames(Aws::String &&value)
DeploymentAlarms & WithAlarmNames(Aws::Vector< Aws::String > &&value)
DeploymentAlarms & AddAlarmNames(const char *value)
DeploymentAlarms & WithEnable(bool value)
DeploymentAlarms & AddAlarmNames(const Aws::String &value)
DeploymentAlarms & WithAlarmNames(const Aws::Vector< Aws::String > &value)
void SetAlarmNames(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAlarmNames() const
AWS_ECS_API DeploymentAlarms & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentAlarms & WithRollback(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector