7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/monitoring/CloudWatch_EXPORTS.h>
12#include <aws/monitoring/model/ActionsSuppressedBy.h>
13#include <aws/monitoring/model/StateValue.h>
34 AWS_CLOUDWATCH_API
CompositeAlarm(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCH_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
46 m_actionsEnabledHasBeenSet =
true;
47 m_actionsEnabled = value;
62 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
64 m_alarmActionsHasBeenSet =
true;
65 m_alarmActions = std::forward<AlarmActionsT>(value);
67 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
72 template <
typename AlarmActionsT = Aws::String>
74 m_alarmActionsHasBeenSet =
true;
75 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
86 template <
typename AlarmArnT = Aws::String>
88 m_alarmArnHasBeenSet =
true;
89 m_alarmArn = std::forward<AlarmArnT>(value);
91 template <
typename AlarmArnT = Aws::String>
104 template <
typename AlarmConfigurationUpdatedTimestampT = Aws::Utils::DateTime>
106 m_alarmConfigurationUpdatedTimestampHasBeenSet =
true;
107 m_alarmConfigurationUpdatedTimestamp = std::forward<AlarmConfigurationUpdatedTimestampT>(value);
109 template <
typename AlarmConfigurationUpdatedTimestampT = Aws::Utils::DateTime>
122 template <
typename AlarmDescriptionT = Aws::String>
124 m_alarmDescriptionHasBeenSet =
true;
125 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
127 template <
typename AlarmDescriptionT = Aws::String>
140 template <
typename AlarmNameT = Aws::String>
142 m_alarmNameHasBeenSet =
true;
143 m_alarmName = std::forward<AlarmNameT>(value);
145 template <
typename AlarmNameT = Aws::String>
158 template <
typename AlarmRuleT = Aws::String>
160 m_alarmRuleHasBeenSet =
true;
161 m_alarmRule = std::forward<AlarmRuleT>(value);
163 template <
typename AlarmRuleT = Aws::String>
178 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
180 m_insufficientDataActionsHasBeenSet =
true;
181 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
183 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
188 template <
typename InsufficientDataActionsT = Aws::String>
190 m_insufficientDataActionsHasBeenSet =
true;
191 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
203 template <
typename OKActionsT = Aws::Vector<Aws::String>>
205 m_oKActionsHasBeenSet =
true;
206 m_oKActions = std::forward<OKActionsT>(value);
208 template <
typename OKActionsT = Aws::Vector<Aws::String>>
213 template <
typename OKActionsT = Aws::String>
215 m_oKActionsHasBeenSet =
true;
216 m_oKActions.emplace_back(std::forward<OKActionsT>(value));
227 template <
typename StateReasonT = Aws::String>
229 m_stateReasonHasBeenSet =
true;
230 m_stateReason = std::forward<StateReasonT>(value);
232 template <
typename StateReasonT = Aws::String>
245 template <
typename StateReasonDataT = Aws::String>
247 m_stateReasonDataHasBeenSet =
true;
248 m_stateReasonData = std::forward<StateReasonDataT>(value);
250 template <
typename StateReasonDataT = Aws::String>
264 template <
typename StateUpdatedTimestampT = Aws::Utils::DateTime>
266 m_stateUpdatedTimestampHasBeenSet =
true;
267 m_stateUpdatedTimestamp = std::forward<StateUpdatedTimestampT>(value);
269 template <
typename StateUpdatedTimestampT = Aws::Utils::DateTime>
283 m_stateValueHasBeenSet =
true;
284 m_stateValue = value;
299 template <
typename StateTransitionedTimestampT = Aws::Utils::DateTime>
301 m_stateTransitionedTimestampHasBeenSet =
true;
302 m_stateTransitionedTimestamp = std::forward<StateTransitionedTimestampT>(value);
304 template <
typename StateTransitionedTimestampT = Aws::Utils::DateTime>
328 m_actionsSuppressedByHasBeenSet =
true;
329 m_actionsSuppressedBy = value;
343 template <
typename ActionsSuppressedReasonT = Aws::String>
345 m_actionsSuppressedReasonHasBeenSet =
true;
346 m_actionsSuppressedReason = std::forward<ActionsSuppressedReasonT>(value);
348 template <
typename ActionsSuppressedReasonT = Aws::String>
363 template <
typename ActionsSuppressorT = Aws::String>
365 m_actionsSuppressorHasBeenSet =
true;
366 m_actionsSuppressor = std::forward<ActionsSuppressorT>(value);
368 template <
typename ActionsSuppressorT = Aws::String>
386 m_actionsSuppressorWaitPeriodHasBeenSet =
true;
387 m_actionsSuppressorWaitPeriod = value;
406 m_actionsSuppressorExtensionPeriodHasBeenSet =
true;
407 m_actionsSuppressorExtensionPeriod = value;
415 bool m_actionsEnabled{
false};
449 int64_t m_actionsSuppressorWaitPeriod{0};
451 int64_t m_actionsSuppressorExtensionPeriod{0};
452 bool m_actionsEnabledHasBeenSet =
false;
453 bool m_alarmActionsHasBeenSet =
false;
454 bool m_alarmArnHasBeenSet =
false;
455 bool m_alarmConfigurationUpdatedTimestampHasBeenSet =
false;
456 bool m_alarmDescriptionHasBeenSet =
false;
457 bool m_alarmNameHasBeenSet =
false;
458 bool m_alarmRuleHasBeenSet =
false;
459 bool m_insufficientDataActionsHasBeenSet =
false;
460 bool m_oKActionsHasBeenSet =
false;
461 bool m_stateReasonHasBeenSet =
false;
462 bool m_stateReasonDataHasBeenSet =
false;
463 bool m_stateUpdatedTimestampHasBeenSet =
false;
464 bool m_stateValueHasBeenSet =
false;
465 bool m_stateTransitionedTimestampHasBeenSet =
false;
466 bool m_actionsSuppressedByHasBeenSet =
false;
467 bool m_actionsSuppressedReasonHasBeenSet =
false;
468 bool m_actionsSuppressorHasBeenSet =
false;
469 bool m_actionsSuppressorWaitPeriodHasBeenSet =
false;
470 bool m_actionsSuppressorExtensionPeriodHasBeenSet =
false;
void SetAlarmArn(AlarmArnT &&value)
void SetStateUpdatedTimestamp(StateUpdatedTimestampT &&value)
const Aws::Utils::DateTime & GetAlarmConfigurationUpdatedTimestamp() const
bool StateValueHasBeenSet() const
bool ActionsEnabledHasBeenSet() const
void SetAlarmActions(AlarmActionsT &&value)
void SetInsufficientDataActions(InsufficientDataActionsT &&value)
const Aws::Utils::DateTime & GetStateUpdatedTimestamp() const
int64_t GetActionsSuppressorWaitPeriod() const
bool InsufficientDataActionsHasBeenSet() const
bool AlarmRuleHasBeenSet() const
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool ActionsSuppressorWaitPeriodHasBeenSet() const
const Aws::String & GetActionsSuppressedReason() const
CompositeAlarm & WithActionsSuppressedReason(ActionsSuppressedReasonT &&value)
const Aws::String & GetStateReasonData() const
const Aws::String & GetActionsSuppressor() const
void SetAlarmRule(AlarmRuleT &&value)
const Aws::Vector< Aws::String > & GetAlarmActions() const
CompositeAlarm & WithStateReason(StateReasonT &&value)
void SetStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
void SetStateValue(StateValue value)
bool GetActionsEnabled() const
bool StateUpdatedTimestampHasBeenSet() const
void SetActionsEnabled(bool value)
CompositeAlarm & WithActionsEnabled(bool value)
CompositeAlarm & WithInsufficientDataActions(InsufficientDataActionsT &&value)
CompositeAlarm & WithActionsSuppressorWaitPeriod(int64_t value)
CompositeAlarm & WithAlarmName(AlarmNameT &&value)
CompositeAlarm & WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
bool ActionsSuppressorHasBeenSet() const
CompositeAlarm & WithStateReasonData(StateReasonDataT &&value)
const Aws::String & GetAlarmName() const
bool StateReasonHasBeenSet() const
CompositeAlarm & WithStateUpdatedTimestamp(StateUpdatedTimestampT &&value)
void SetStateReasonData(StateReasonDataT &&value)
CompositeAlarm & AddAlarmActions(AlarmActionsT &&value)
int64_t GetActionsSuppressorExtensionPeriod() const
bool ActionsSuppressedReasonHasBeenSet() const
void SetActionsSuppressor(ActionsSuppressorT &&value)
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
const Aws::String & GetAlarmArn() const
void SetAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
CompositeAlarm & AddInsufficientDataActions(InsufficientDataActionsT &&value)
AWS_CLOUDWATCH_API CompositeAlarm & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetOKActions(OKActionsT &&value)
CompositeAlarm & WithStateValue(StateValue value)
const Aws::Vector< Aws::String > & GetOKActions() const
bool AlarmConfigurationUpdatedTimestampHasBeenSet() const
CompositeAlarm & WithAlarmActions(AlarmActionsT &&value)
CompositeAlarm & WithAlarmDescription(AlarmDescriptionT &&value)
const Aws::String & GetAlarmDescription() const
bool OKActionsHasBeenSet() const
void SetAlarmDescription(AlarmDescriptionT &&value)
const Aws::String & GetStateReason() const
bool AlarmDescriptionHasBeenSet() 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 CompositeAlarm(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool AlarmNameHasBeenSet() const
CompositeAlarm & WithAlarmArn(AlarmArnT &&value)
StateValue GetStateValue() const
void SetActionsSuppressedBy(ActionsSuppressedBy value)
bool ActionsSuppressorExtensionPeriodHasBeenSet() const
bool AlarmArnHasBeenSet() const
bool ActionsSuppressedByHasBeenSet() const
CompositeAlarm & WithAlarmRule(AlarmRuleT &&value)
bool StateReasonDataHasBeenSet() const
bool AlarmActionsHasBeenSet() const
void SetStateReason(StateReasonT &&value)
void SetActionsSuppressorWaitPeriod(int64_t value)
void SetAlarmName(AlarmNameT &&value)
CompositeAlarm & WithActionsSuppressorExtensionPeriod(int64_t value)
bool StateTransitionedTimestampHasBeenSet() const
const Aws::Utils::DateTime & GetStateTransitionedTimestamp() const
void SetActionsSuppressorExtensionPeriod(int64_t value)
CompositeAlarm & AddOKActions(OKActionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector