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>
53 inline void SetActionsEnabled(
bool value) { m_actionsEnabledHasBeenSet =
true; m_actionsEnabled = value; }
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>>
68 template<
typename AlarmActionsT = Aws::String>
69 CompositeAlarm&
AddAlarmActions(AlarmActionsT&& value) { m_alarmActionsHasBeenSet =
true; m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
return *
this; }
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>
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>
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>
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>
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>
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>>
144 template<
typename InsufficientDataActionsT = Aws::String>
145 CompositeAlarm&
AddInsufficientDataActions(InsufficientDataActionsT&& value) { m_insufficientDataActionsHasBeenSet =
true; m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
return *
this; }
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>>
159 template<
typename OKActionsT = Aws::String>
160 CompositeAlarm&
AddOKActions(OKActionsT&& value) { m_oKActionsHasBeenSet =
true; m_oKActions.emplace_back(std::forward<OKActionsT>(value));
return *
this; }
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>
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>
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>
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>
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>
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>
298 bool m_actionsEnabled{
false};
299 bool m_actionsEnabledHasBeenSet =
false;
302 bool m_alarmActionsHasBeenSet =
false;
305 bool m_alarmArnHasBeenSet =
false;
308 bool m_alarmConfigurationUpdatedTimestampHasBeenSet =
false;
311 bool m_alarmDescriptionHasBeenSet =
false;
314 bool m_alarmNameHasBeenSet =
false;
317 bool m_alarmRuleHasBeenSet =
false;
320 bool m_insufficientDataActionsHasBeenSet =
false;
323 bool m_oKActionsHasBeenSet =
false;
326 bool m_stateReasonHasBeenSet =
false;
329 bool m_stateReasonDataHasBeenSet =
false;
332 bool m_stateUpdatedTimestampHasBeenSet =
false;
335 bool m_stateValueHasBeenSet =
false;
338 bool m_stateTransitionedTimestampHasBeenSet =
false;
341 bool m_actionsSuppressedByHasBeenSet =
false;
344 bool m_actionsSuppressedReasonHasBeenSet =
false;
347 bool m_actionsSuppressorHasBeenSet =
false;
349 int m_actionsSuppressorWaitPeriod{0};
350 bool m_actionsSuppressorWaitPeriodHasBeenSet =
false;
352 int m_actionsSuppressorExtensionPeriod{0};
353 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
bool InsufficientDataActionsHasBeenSet() const
CompositeAlarm & WithActionsSuppressorExtensionPeriod(int value)
bool AlarmRuleHasBeenSet() const
bool ActionsSuppressorWaitPeriodHasBeenSet() const
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)
int GetActionsSuppressorWaitPeriod() const
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 & WithAlarmName(AlarmNameT &&value)
CompositeAlarm & WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
bool ActionsSuppressorHasBeenSet() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CompositeAlarm & WithStateReasonData(StateReasonDataT &&value)
int GetActionsSuppressorExtensionPeriod() const
const Aws::String & GetAlarmName() const
bool StateReasonHasBeenSet() const
CompositeAlarm & WithStateUpdatedTimestamp(StateUpdatedTimestampT &&value)
void SetStateReasonData(StateReasonDataT &&value)
CompositeAlarm & AddAlarmActions(AlarmActionsT &&value)
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)
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
bool AlarmNameHasBeenSet() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CompositeAlarm & WithAlarmArn(AlarmArnT &&value)
StateValue GetStateValue() const
void SetActionsSuppressedBy(ActionsSuppressedBy value)
bool ActionsSuppressorExtensionPeriodHasBeenSet() const
void SetActionsSuppressorWaitPeriod(int value)
bool AlarmArnHasBeenSet() const
bool ActionsSuppressedByHasBeenSet() const
void SetActionsSuppressorExtensionPeriod(int value)
CompositeAlarm & WithAlarmRule(AlarmRuleT &&value)
bool StateReasonDataHasBeenSet() const
bool AlarmActionsHasBeenSet() const
void SetStateReason(StateReasonT &&value)
void SetAlarmName(AlarmNameT &&value)
bool StateTransitionedTimestampHasBeenSet() const
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