AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CompositeAlarm.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/monitoring/model/StateValue.h>
13#include <aws/monitoring/model/ActionsSuppressedBy.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudWatch
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CLOUDWATCH_API CompositeAlarm() = default;
39 AWS_CLOUDWATCH_API CompositeAlarm(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDWATCH_API CompositeAlarm& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
51 inline bool GetActionsEnabled() const { return m_actionsEnabled; }
52 inline bool ActionsEnabledHasBeenSet() const { return m_actionsEnabledHasBeenSet; }
53 inline void SetActionsEnabled(bool value) { m_actionsEnabledHasBeenSet = true; m_actionsEnabled = value; }
54 inline CompositeAlarm& WithActionsEnabled(bool value) { SetActionsEnabled(value); return *this;}
56
58
62 inline const Aws::Vector<Aws::String>& GetAlarmActions() const { return m_alarmActions; }
63 inline bool AlarmActionsHasBeenSet() const { return m_alarmActionsHasBeenSet; }
64 template<typename AlarmActionsT = Aws::Vector<Aws::String>>
65 void SetAlarmActions(AlarmActionsT&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = std::forward<AlarmActionsT>(value); }
66 template<typename AlarmActionsT = Aws::Vector<Aws::String>>
67 CompositeAlarm& WithAlarmActions(AlarmActionsT&& value) { SetAlarmActions(std::forward<AlarmActionsT>(value)); return *this;}
68 template<typename AlarmActionsT = Aws::String>
69 CompositeAlarm& AddAlarmActions(AlarmActionsT&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value)); return *this; }
71
73
76 inline const Aws::String& GetAlarmArn() const { return m_alarmArn; }
77 inline bool AlarmArnHasBeenSet() const { return m_alarmArnHasBeenSet; }
78 template<typename AlarmArnT = Aws::String>
79 void SetAlarmArn(AlarmArnT&& value) { m_alarmArnHasBeenSet = true; m_alarmArn = std::forward<AlarmArnT>(value); }
80 template<typename AlarmArnT = Aws::String>
81 CompositeAlarm& WithAlarmArn(AlarmArnT&& value) { SetAlarmArn(std::forward<AlarmArnT>(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetAlarmConfigurationUpdatedTimestamp() const { return m_alarmConfigurationUpdatedTimestamp; }
89 inline bool AlarmConfigurationUpdatedTimestampHasBeenSet() const { return m_alarmConfigurationUpdatedTimestampHasBeenSet; }
90 template<typename AlarmConfigurationUpdatedTimestampT = Aws::Utils::DateTime>
91 void SetAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT&& value) { m_alarmConfigurationUpdatedTimestampHasBeenSet = true; m_alarmConfigurationUpdatedTimestamp = std::forward<AlarmConfigurationUpdatedTimestampT>(value); }
92 template<typename AlarmConfigurationUpdatedTimestampT = Aws::Utils::DateTime>
93 CompositeAlarm& WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT&& value) { SetAlarmConfigurationUpdatedTimestamp(std::forward<AlarmConfigurationUpdatedTimestampT>(value)); return *this;}
95
97
100 inline const Aws::String& GetAlarmDescription() const { return m_alarmDescription; }
101 inline bool AlarmDescriptionHasBeenSet() const { return m_alarmDescriptionHasBeenSet; }
102 template<typename AlarmDescriptionT = Aws::String>
103 void SetAlarmDescription(AlarmDescriptionT&& value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription = std::forward<AlarmDescriptionT>(value); }
104 template<typename AlarmDescriptionT = Aws::String>
105 CompositeAlarm& WithAlarmDescription(AlarmDescriptionT&& value) { SetAlarmDescription(std::forward<AlarmDescriptionT>(value)); return *this;}
107
109
112 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
113 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
114 template<typename AlarmNameT = Aws::String>
115 void SetAlarmName(AlarmNameT&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::forward<AlarmNameT>(value); }
116 template<typename AlarmNameT = Aws::String>
117 CompositeAlarm& WithAlarmName(AlarmNameT&& value) { SetAlarmName(std::forward<AlarmNameT>(value)); return *this;}
119
121
124 inline const Aws::String& GetAlarmRule() const { return m_alarmRule; }
125 inline bool AlarmRuleHasBeenSet() const { return m_alarmRuleHasBeenSet; }
126 template<typename AlarmRuleT = Aws::String>
127 void SetAlarmRule(AlarmRuleT&& value) { m_alarmRuleHasBeenSet = true; m_alarmRule = std::forward<AlarmRuleT>(value); }
128 template<typename AlarmRuleT = Aws::String>
129 CompositeAlarm& WithAlarmRule(AlarmRuleT&& value) { SetAlarmRule(std::forward<AlarmRuleT>(value)); return *this;}
131
133
138 inline const Aws::Vector<Aws::String>& GetInsufficientDataActions() const { return m_insufficientDataActions; }
139 inline bool InsufficientDataActionsHasBeenSet() const { return m_insufficientDataActionsHasBeenSet; }
140 template<typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
141 void SetInsufficientDataActions(InsufficientDataActionsT&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value); }
142 template<typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
143 CompositeAlarm& WithInsufficientDataActions(InsufficientDataActionsT&& value) { SetInsufficientDataActions(std::forward<InsufficientDataActionsT>(value)); return *this;}
144 template<typename InsufficientDataActionsT = Aws::String>
145 CompositeAlarm& AddInsufficientDataActions(InsufficientDataActionsT&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value)); return *this; }
147
149
153 inline const Aws::Vector<Aws::String>& GetOKActions() const { return m_oKActions; }
154 inline bool OKActionsHasBeenSet() const { return m_oKActionsHasBeenSet; }
155 template<typename OKActionsT = Aws::Vector<Aws::String>>
156 void SetOKActions(OKActionsT&& value) { m_oKActionsHasBeenSet = true; m_oKActions = std::forward<OKActionsT>(value); }
157 template<typename OKActionsT = Aws::Vector<Aws::String>>
158 CompositeAlarm& WithOKActions(OKActionsT&& value) { SetOKActions(std::forward<OKActionsT>(value)); return *this;}
159 template<typename OKActionsT = Aws::String>
160 CompositeAlarm& AddOKActions(OKActionsT&& value) { m_oKActionsHasBeenSet = true; m_oKActions.emplace_back(std::forward<OKActionsT>(value)); return *this; }
162
164
167 inline const Aws::String& GetStateReason() const { return m_stateReason; }
168 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
169 template<typename StateReasonT = Aws::String>
170 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
171 template<typename StateReasonT = Aws::String>
172 CompositeAlarm& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
174
176
179 inline const Aws::String& GetStateReasonData() const { return m_stateReasonData; }
180 inline bool StateReasonDataHasBeenSet() const { return m_stateReasonDataHasBeenSet; }
181 template<typename StateReasonDataT = Aws::String>
182 void SetStateReasonData(StateReasonDataT&& value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData = std::forward<StateReasonDataT>(value); }
183 template<typename StateReasonDataT = Aws::String>
184 CompositeAlarm& WithStateReasonData(StateReasonDataT&& value) { SetStateReasonData(std::forward<StateReasonDataT>(value)); return *this;}
186
188
192 inline const Aws::Utils::DateTime& GetStateUpdatedTimestamp() const { return m_stateUpdatedTimestamp; }
193 inline bool StateUpdatedTimestampHasBeenSet() const { return m_stateUpdatedTimestampHasBeenSet; }
194 template<typename StateUpdatedTimestampT = Aws::Utils::DateTime>
195 void SetStateUpdatedTimestamp(StateUpdatedTimestampT&& value) { m_stateUpdatedTimestampHasBeenSet = true; m_stateUpdatedTimestamp = std::forward<StateUpdatedTimestampT>(value); }
196 template<typename StateUpdatedTimestampT = Aws::Utils::DateTime>
197 CompositeAlarm& WithStateUpdatedTimestamp(StateUpdatedTimestampT&& value) { SetStateUpdatedTimestamp(std::forward<StateUpdatedTimestampT>(value)); return *this;}
199
201
204 inline StateValue GetStateValue() const { return m_stateValue; }
205 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
206 inline void SetStateValue(StateValue value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
207 inline CompositeAlarm& WithStateValue(StateValue value) { SetStateValue(value); return *this;}
209
211
215 inline const Aws::Utils::DateTime& GetStateTransitionedTimestamp() const { return m_stateTransitionedTimestamp; }
216 inline bool StateTransitionedTimestampHasBeenSet() const { return m_stateTransitionedTimestampHasBeenSet; }
217 template<typename StateTransitionedTimestampT = Aws::Utils::DateTime>
218 void SetStateTransitionedTimestamp(StateTransitionedTimestampT&& value) { m_stateTransitionedTimestampHasBeenSet = true; m_stateTransitionedTimestamp = std::forward<StateTransitionedTimestampT>(value); }
219 template<typename StateTransitionedTimestampT = Aws::Utils::DateTime>
220 CompositeAlarm& WithStateTransitionedTimestamp(StateTransitionedTimestampT&& value) { SetStateTransitionedTimestamp(std::forward<StateTransitionedTimestampT>(value)); return *this;}
222
224
237 inline ActionsSuppressedBy GetActionsSuppressedBy() const { return m_actionsSuppressedBy; }
238 inline bool ActionsSuppressedByHasBeenSet() const { return m_actionsSuppressedByHasBeenSet; }
239 inline void SetActionsSuppressedBy(ActionsSuppressedBy value) { m_actionsSuppressedByHasBeenSet = true; m_actionsSuppressedBy = value; }
242
244
247 inline const Aws::String& GetActionsSuppressedReason() const { return m_actionsSuppressedReason; }
248 inline bool ActionsSuppressedReasonHasBeenSet() const { return m_actionsSuppressedReasonHasBeenSet; }
249 template<typename ActionsSuppressedReasonT = Aws::String>
250 void SetActionsSuppressedReason(ActionsSuppressedReasonT&& value) { m_actionsSuppressedReasonHasBeenSet = true; m_actionsSuppressedReason = std::forward<ActionsSuppressedReasonT>(value); }
251 template<typename ActionsSuppressedReasonT = Aws::String>
252 CompositeAlarm& WithActionsSuppressedReason(ActionsSuppressedReasonT&& value) { SetActionsSuppressedReason(std::forward<ActionsSuppressedReasonT>(value)); return *this;}
254
256
261 inline const Aws::String& GetActionsSuppressor() const { return m_actionsSuppressor; }
262 inline bool ActionsSuppressorHasBeenSet() const { return m_actionsSuppressorHasBeenSet; }
263 template<typename ActionsSuppressorT = Aws::String>
264 void SetActionsSuppressor(ActionsSuppressorT&& value) { m_actionsSuppressorHasBeenSet = true; m_actionsSuppressor = std::forward<ActionsSuppressorT>(value); }
265 template<typename ActionsSuppressorT = Aws::String>
266 CompositeAlarm& WithActionsSuppressor(ActionsSuppressorT&& value) { SetActionsSuppressor(std::forward<ActionsSuppressorT>(value)); return *this;}
268
270
277 inline int GetActionsSuppressorWaitPeriod() const { return m_actionsSuppressorWaitPeriod; }
278 inline bool ActionsSuppressorWaitPeriodHasBeenSet() const { return m_actionsSuppressorWaitPeriodHasBeenSet; }
279 inline void SetActionsSuppressorWaitPeriod(int value) { m_actionsSuppressorWaitPeriodHasBeenSet = true; m_actionsSuppressorWaitPeriod = value; }
282
284
291 inline int GetActionsSuppressorExtensionPeriod() const { return m_actionsSuppressorExtensionPeriod; }
292 inline bool ActionsSuppressorExtensionPeriodHasBeenSet() const { return m_actionsSuppressorExtensionPeriodHasBeenSet; }
293 inline void SetActionsSuppressorExtensionPeriod(int value) { m_actionsSuppressorExtensionPeriodHasBeenSet = true; m_actionsSuppressorExtensionPeriod = value; }
296 private:
297
298 bool m_actionsEnabled{false};
299 bool m_actionsEnabledHasBeenSet = false;
300
301 Aws::Vector<Aws::String> m_alarmActions;
302 bool m_alarmActionsHasBeenSet = false;
303
304 Aws::String m_alarmArn;
305 bool m_alarmArnHasBeenSet = false;
306
307 Aws::Utils::DateTime m_alarmConfigurationUpdatedTimestamp{};
308 bool m_alarmConfigurationUpdatedTimestampHasBeenSet = false;
309
310 Aws::String m_alarmDescription;
311 bool m_alarmDescriptionHasBeenSet = false;
312
313 Aws::String m_alarmName;
314 bool m_alarmNameHasBeenSet = false;
315
316 Aws::String m_alarmRule;
317 bool m_alarmRuleHasBeenSet = false;
318
319 Aws::Vector<Aws::String> m_insufficientDataActions;
320 bool m_insufficientDataActionsHasBeenSet = false;
321
322 Aws::Vector<Aws::String> m_oKActions;
323 bool m_oKActionsHasBeenSet = false;
324
325 Aws::String m_stateReason;
326 bool m_stateReasonHasBeenSet = false;
327
328 Aws::String m_stateReasonData;
329 bool m_stateReasonDataHasBeenSet = false;
330
331 Aws::Utils::DateTime m_stateUpdatedTimestamp{};
332 bool m_stateUpdatedTimestampHasBeenSet = false;
333
334 StateValue m_stateValue{StateValue::NOT_SET};
335 bool m_stateValueHasBeenSet = false;
336
337 Aws::Utils::DateTime m_stateTransitionedTimestamp{};
338 bool m_stateTransitionedTimestampHasBeenSet = false;
339
341 bool m_actionsSuppressedByHasBeenSet = false;
342
343 Aws::String m_actionsSuppressedReason;
344 bool m_actionsSuppressedReasonHasBeenSet = false;
345
346 Aws::String m_actionsSuppressor;
347 bool m_actionsSuppressorHasBeenSet = false;
348
349 int m_actionsSuppressorWaitPeriod{0};
350 bool m_actionsSuppressorWaitPeriodHasBeenSet = false;
351
352 int m_actionsSuppressorExtensionPeriod{0};
353 bool m_actionsSuppressorExtensionPeriodHasBeenSet = false;
354 };
355
356} // namespace Model
357} // namespace CloudWatch
358} // namespace Aws
void SetStateUpdatedTimestamp(StateUpdatedTimestampT &&value)
const Aws::Utils::DateTime & GetAlarmConfigurationUpdatedTimestamp() const
void SetAlarmActions(AlarmActionsT &&value)
void SetInsufficientDataActions(InsufficientDataActionsT &&value)
const Aws::Utils::DateTime & GetStateUpdatedTimestamp() const
CompositeAlarm & WithActionsSuppressorExtensionPeriod(int value)
const Aws::String & GetActionsSuppressedReason() const
CompositeAlarm & WithActionsSuppressedReason(ActionsSuppressedReasonT &&value)
AWS_CLOUDWATCH_API CompositeAlarm(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetStateReasonData() const
CompositeAlarm & WithActionsSuppressorWaitPeriod(int value)
const Aws::String & GetActionsSuppressor() const
AWS_CLOUDWATCH_API CompositeAlarm & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAlarmRule(AlarmRuleT &&value)
const Aws::Vector< Aws::String > & GetAlarmActions() const
CompositeAlarm & WithStateReason(StateReasonT &&value)
void SetStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
CompositeAlarm & WithActionsEnabled(bool value)
CompositeAlarm & WithInsufficientDataActions(InsufficientDataActionsT &&value)
CompositeAlarm & WithAlarmName(AlarmNameT &&value)
CompositeAlarm & WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CompositeAlarm & WithStateReasonData(StateReasonDataT &&value)
const Aws::String & GetAlarmName() const
CompositeAlarm & WithStateUpdatedTimestamp(StateUpdatedTimestampT &&value)
void SetStateReasonData(StateReasonDataT &&value)
CompositeAlarm & AddAlarmActions(AlarmActionsT &&value)
void SetActionsSuppressor(ActionsSuppressorT &&value)
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
const Aws::String & GetAlarmArn() const
void SetAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
CompositeAlarm & AddInsufficientDataActions(InsufficientDataActionsT &&value)
void SetOKActions(OKActionsT &&value)
CompositeAlarm & WithStateValue(StateValue value)
const Aws::Vector< Aws::String > & GetOKActions() const
CompositeAlarm & WithAlarmActions(AlarmActionsT &&value)
CompositeAlarm & WithAlarmDescription(AlarmDescriptionT &&value)
const Aws::String & GetAlarmDescription() const
void SetAlarmDescription(AlarmDescriptionT &&value)
const Aws::String & GetStateReason() const
CompositeAlarm & WithActionsSuppressor(ActionsSuppressorT &&value)
CompositeAlarm & WithOKActions(OKActionsT &&value)
void SetActionsSuppressedReason(ActionsSuppressedReasonT &&value)
CompositeAlarm & WithActionsSuppressedBy(ActionsSuppressedBy value)
CompositeAlarm & WithStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
AWS_CLOUDWATCH_API CompositeAlarm()=default
ActionsSuppressedBy GetActionsSuppressedBy() const
const Aws::String & GetAlarmRule() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CompositeAlarm & WithAlarmArn(AlarmArnT &&value)
void SetActionsSuppressedBy(ActionsSuppressedBy value)
CompositeAlarm & WithAlarmRule(AlarmRuleT &&value)
void SetStateReason(StateReasonT &&value)
void SetAlarmName(AlarmNameT &&value)
const Aws::Utils::DateTime & GetStateTransitionedTimestamp() const
CompositeAlarm & AddOKActions(OKActionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream