AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AlarmConfiguration.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 CodeDeploy
23{
24namespace Model
25{
26
34 {
35 public:
40
41
45 inline bool GetEnabled() const{ return m_enabled; }
46
50 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
51
55 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
56
60 inline AlarmConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
61
62
71 inline bool GetIgnorePollAlarmFailure() const{ return m_ignorePollAlarmFailure; }
72
81 inline bool IgnorePollAlarmFailureHasBeenSet() const { return m_ignorePollAlarmFailureHasBeenSet; }
82
91 inline void SetIgnorePollAlarmFailure(bool value) { m_ignorePollAlarmFailureHasBeenSet = true; m_ignorePollAlarmFailure = value; }
92
102
103
108 inline const Aws::Vector<Alarm>& GetAlarms() const{ return m_alarms; }
109
114 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
115
120 inline void SetAlarms(const Aws::Vector<Alarm>& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
121
126 inline void SetAlarms(Aws::Vector<Alarm>&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
127
132 inline AlarmConfiguration& WithAlarms(const Aws::Vector<Alarm>& value) { SetAlarms(value); return *this;}
133
138 inline AlarmConfiguration& WithAlarms(Aws::Vector<Alarm>&& value) { SetAlarms(std::move(value)); return *this;}
139
144 inline AlarmConfiguration& AddAlarms(const Alarm& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
145
150 inline AlarmConfiguration& AddAlarms(Alarm&& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(std::move(value)); return *this; }
151
152 private:
153
154 bool m_enabled;
155 bool m_enabledHasBeenSet = false;
156
157 bool m_ignorePollAlarmFailure;
158 bool m_ignorePollAlarmFailureHasBeenSet = false;
159
160 Aws::Vector<Alarm> m_alarms;
161 bool m_alarmsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace CodeDeploy
166} // namespace Aws
#define AWS_CODEDEPLOY_API
AlarmConfiguration & AddAlarms(Alarm &&value)
AWS_CODEDEPLOY_API AlarmConfiguration(Aws::Utils::Json::JsonView jsonValue)
AlarmConfiguration & WithEnabled(bool value)
AlarmConfiguration & AddAlarms(const Alarm &value)
const Aws::Vector< Alarm > & GetAlarms() const
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAlarms(Aws::Vector< Alarm > &&value)
AlarmConfiguration & WithIgnorePollAlarmFailure(bool value)
AlarmConfiguration & WithAlarms(const Aws::Vector< Alarm > &value)
AWS_CODEDEPLOY_API AlarmConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAlarms(const Aws::Vector< Alarm > &value)
AlarmConfiguration & WithAlarms(Aws::Vector< Alarm > &&value)
std::vector< T, Aws::Allocator< T > > Vector