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/ComparisonOperator.h>
13#include <aws/monitoring/model/EvaluationState.h>
14#include <aws/monitoring/model/ScheduledQueryConfiguration.h>
15#include <aws/monitoring/model/StateValue.h>
36 AWS_CLOUDWATCH_API
LogAlarm(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CLOUDWATCH_API
LogAlarm&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CLOUDWATCH_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
46 template <
typename AlarmNameT = Aws::String>
48 m_alarmNameHasBeenSet =
true;
49 m_alarmName = std::forward<AlarmNameT>(value);
51 template <
typename AlarmNameT = Aws::String>
64 template <
typename AlarmArnT = Aws::String>
66 m_alarmArnHasBeenSet =
true;
67 m_alarmArn = std::forward<AlarmArnT>(value);
69 template <
typename AlarmArnT = Aws::String>
82 template <
typename AlarmDescriptionT = Aws::String>
84 m_alarmDescriptionHasBeenSet =
true;
85 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
87 template <
typename AlarmDescriptionT = Aws::String>
100 template <
typename AlarmConfigurationUpdatedTimestampT = Aws::Utils::DateTime>
102 m_alarmConfigurationUpdatedTimestampHasBeenSet =
true;
103 m_alarmConfigurationUpdatedTimestamp = std::forward<AlarmConfigurationUpdatedTimestampT>(value);
105 template <
typename AlarmConfigurationUpdatedTimestampT = Aws::Utils::DateTime>
120 m_actionsEnabledHasBeenSet =
true;
121 m_actionsEnabled = value;
137 template <
typename OKActionsT = Aws::Vector<Aws::String>>
139 m_oKActionsHasBeenSet =
true;
140 m_oKActions = std::forward<OKActionsT>(value);
142 template <
typename OKActionsT = Aws::Vector<Aws::String>>
147 template <
typename OKActionsT = Aws::String>
149 m_oKActionsHasBeenSet =
true;
150 m_oKActions.emplace_back(std::forward<OKActionsT>(value));
163 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
165 m_alarmActionsHasBeenSet =
true;
166 m_alarmActions = std::forward<AlarmActionsT>(value);
168 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
173 template <
typename AlarmActionsT = Aws::String>
175 m_alarmActionsHasBeenSet =
true;
176 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
189 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
191 m_insufficientDataActionsHasBeenSet =
true;
192 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
194 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
199 template <
typename InsufficientDataActionsT = Aws::String>
201 m_insufficientDataActionsHasBeenSet =
true;
202 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
214 m_stateValueHasBeenSet =
true;
215 m_stateValue = value;
229 template <
typename StateReasonT = Aws::String>
231 m_stateReasonHasBeenSet =
true;
232 m_stateReason = std::forward<StateReasonT>(value);
234 template <
typename StateReasonT = Aws::String>
247 template <
typename StateReasonDataT = Aws::String>
249 m_stateReasonDataHasBeenSet =
true;
250 m_stateReasonData = std::forward<StateReasonDataT>(value);
252 template <
typename StateReasonDataT = Aws::String>
266 template <
typename StateUpdatedTimestampT = Aws::Utils::DateTime>
268 m_stateUpdatedTimestampHasBeenSet =
true;
269 m_stateUpdatedTimestamp = std::forward<StateUpdatedTimestampT>(value);
271 template <
typename StateUpdatedTimestampT = Aws::Utils::DateTime>
286 template <
typename ScheduledQueryConfigurationT = ScheduledQueryConfiguration>
288 m_scheduledQueryConfigurationHasBeenSet =
true;
289 m_scheduledQueryConfiguration = std::forward<ScheduledQueryConfigurationT>(value);
291 template <
typename ScheduledQueryConfigurationT = ScheduledQueryConfiguration>
306 m_queryResultsToEvaluateHasBeenSet =
true;
307 m_queryResultsToEvaluate = value;
325 m_queryResultsToAlarmHasBeenSet =
true;
326 m_queryResultsToAlarm = value;
341 m_thresholdHasBeenSet =
true;
358 m_comparisonOperatorHasBeenSet =
true;
359 m_comparisonOperator = value;
375 template <
typename TreatMissingDataT = Aws::String>
377 m_treatMissingDataHasBeenSet =
true;
378 m_treatMissingData = std::forward<TreatMissingDataT>(value);
380 template <
typename TreatMissingDataT = Aws::String>
394 template <
typename StateTransitionedTimestampT = Aws::Utils::DateTime>
396 m_stateTransitionedTimestampHasBeenSet =
true;
397 m_stateTransitionedTimestamp = std::forward<StateTransitionedTimestampT>(value);
399 template <
typename StateTransitionedTimestampT = Aws::Utils::DateTime>
421 m_evaluationStateHasBeenSet =
true;
422 m_evaluationState = value;
439 m_actionLogLineCountHasBeenSet =
true;
440 m_actionLogLineCount = value;
456 template <
typename ActionLogLineRoleArnT = Aws::String>
458 m_actionLogLineRoleArnHasBeenSet =
true;
459 m_actionLogLineRoleArn = std::forward<ActionLogLineRoleArnT>(value);
461 template <
typename ActionLogLineRoleArnT = Aws::String>
476 bool m_actionsEnabled{
false};
492 ScheduledQueryConfiguration m_scheduledQueryConfiguration;
494 int64_t m_queryResultsToEvaluate{0};
496 int64_t m_queryResultsToAlarm{0};
498 double m_threshold{0.0};
508 int64_t m_actionLogLineCount{0};
511 bool m_alarmNameHasBeenSet =
false;
512 bool m_alarmArnHasBeenSet =
false;
513 bool m_alarmDescriptionHasBeenSet =
false;
514 bool m_alarmConfigurationUpdatedTimestampHasBeenSet =
false;
515 bool m_actionsEnabledHasBeenSet =
false;
516 bool m_oKActionsHasBeenSet =
false;
517 bool m_alarmActionsHasBeenSet =
false;
518 bool m_insufficientDataActionsHasBeenSet =
false;
519 bool m_stateValueHasBeenSet =
false;
520 bool m_stateReasonHasBeenSet =
false;
521 bool m_stateReasonDataHasBeenSet =
false;
522 bool m_stateUpdatedTimestampHasBeenSet =
false;
523 bool m_scheduledQueryConfigurationHasBeenSet =
false;
524 bool m_queryResultsToEvaluateHasBeenSet =
false;
525 bool m_queryResultsToAlarmHasBeenSet =
false;
526 bool m_thresholdHasBeenSet =
false;
527 bool m_comparisonOperatorHasBeenSet =
false;
528 bool m_treatMissingDataHasBeenSet =
false;
529 bool m_stateTransitionedTimestampHasBeenSet =
false;
530 bool m_evaluationStateHasBeenSet =
false;
531 bool m_actionLogLineCountHasBeenSet =
false;
532 bool m_actionLogLineRoleArnHasBeenSet =
false;
void SetStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
LogAlarm & WithStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
bool StateReasonHasBeenSet() const
bool QueryResultsToAlarmHasBeenSet() const
void SetTreatMissingData(TreatMissingDataT &&value)
const ScheduledQueryConfiguration & GetScheduledQueryConfiguration() const
LogAlarm & WithThreshold(double value)
const Aws::Utils::DateTime & GetAlarmConfigurationUpdatedTimestamp() const
AWS_CLOUDWATCH_API LogAlarm(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< Aws::String > & GetOKActions() const
LogAlarm & WithTreatMissingData(TreatMissingDataT &&value)
AWS_CLOUDWATCH_API LogAlarm & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Utils::DateTime & GetStateUpdatedTimestamp() const
bool ComparisonOperatorHasBeenSet() const
const Aws::String & GetTreatMissingData() const
const Aws::String & GetStateReasonData() const
const Aws::String & GetAlarmName() const
LogAlarm & AddInsufficientDataActions(InsufficientDataActionsT &&value)
void SetActionLogLineRoleArn(ActionLogLineRoleArnT &&value)
void SetActionsEnabled(bool value)
void SetThreshold(double value)
LogAlarm & WithAlarmName(AlarmNameT &&value)
LogAlarm & WithAlarmActions(AlarmActionsT &&value)
bool AlarmDescriptionHasBeenSet() const
const Aws::String & GetStateReason() const
bool InsufficientDataActionsHasBeenSet() const
void SetAlarmDescription(AlarmDescriptionT &&value)
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
LogAlarm & AddOKActions(OKActionsT &&value)
int64_t GetActionLogLineCount() const
LogAlarm & WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
void SetStateReason(StateReasonT &&value)
bool ThresholdHasBeenSet() const
bool StateReasonDataHasBeenSet() const
bool ActionsEnabledHasBeenSet() const
LogAlarm & WithQueryResultsToAlarm(int64_t value)
void SetStateValue(StateValue value)
bool TreatMissingDataHasBeenSet() const
void SetAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
void SetInsufficientDataActions(InsufficientDataActionsT &&value)
LogAlarm & AddAlarmActions(AlarmActionsT &&value)
bool StateTransitionedTimestampHasBeenSet() const
void SetAlarmName(AlarmNameT &&value)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetQueryResultsToEvaluate(int64_t value)
void SetActionLogLineCount(int64_t value)
void SetOKActions(OKActionsT &&value)
bool AlarmArnHasBeenSet() const
EvaluationState GetEvaluationState() const
void SetAlarmActions(AlarmActionsT &&value)
bool ScheduledQueryConfigurationHasBeenSet() const
bool StateUpdatedTimestampHasBeenSet() const
void SetStateUpdatedTimestamp(StateUpdatedTimestampT &&value)
LogAlarm & WithActionsEnabled(bool value)
LogAlarm & WithOKActions(OKActionsT &&value)
bool AlarmActionsHasBeenSet() const
LogAlarm & WithStateReason(StateReasonT &&value)
bool AlarmConfigurationUpdatedTimestampHasBeenSet() const
LogAlarm & WithActionLogLineRoleArn(ActionLogLineRoleArnT &&value)
void SetComparisonOperator(ComparisonOperator value)
LogAlarm & WithActionLogLineCount(int64_t value)
const Aws::String & GetAlarmDescription() const
AWS_CLOUDWATCH_API LogAlarm()=default
bool EvaluationStateHasBeenSet() const
bool OKActionsHasBeenSet() const
bool StateValueHasBeenSet() const
double GetThreshold() const
LogAlarm & WithInsufficientDataActions(InsufficientDataActionsT &&value)
LogAlarm & WithStateUpdatedTimestamp(StateUpdatedTimestampT &&value)
const Aws::String & GetActionLogLineRoleArn() const
const Aws::Vector< Aws::String > & GetAlarmActions() const
void SetScheduledQueryConfiguration(ScheduledQueryConfigurationT &&value)
void SetEvaluationState(EvaluationState value)
ComparisonOperator GetComparisonOperator() const
bool ActionLogLineCountHasBeenSet() const
void SetStateReasonData(StateReasonDataT &&value)
LogAlarm & WithStateValue(StateValue value)
LogAlarm & WithAlarmDescription(AlarmDescriptionT &&value)
const Aws::Utils::DateTime & GetStateTransitionedTimestamp() const
int64_t GetQueryResultsToAlarm() const
void SetQueryResultsToAlarm(int64_t value)
LogAlarm & WithQueryResultsToEvaluate(int64_t value)
bool GetActionsEnabled() const
const Aws::String & GetAlarmArn() const
LogAlarm & WithStateReasonData(StateReasonDataT &&value)
LogAlarm & WithEvaluationState(EvaluationState value)
StateValue GetStateValue() const
LogAlarm & WithComparisonOperator(ComparisonOperator value)
bool AlarmNameHasBeenSet() const
void SetAlarmArn(AlarmArnT &&value)
int64_t GetQueryResultsToEvaluate() const
bool QueryResultsToEvaluateHasBeenSet() const
LogAlarm & WithScheduledQueryConfiguration(ScheduledQueryConfigurationT &&value)
LogAlarm & WithAlarmArn(AlarmArnT &&value)
bool ActionLogLineRoleArnHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector