7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/monitoring/model/StateValue.h>
13#include <aws/monitoring/model/Statistic.h>
14#include <aws/monitoring/model/StandardUnit.h>
15#include <aws/monitoring/model/ComparisonOperator.h>
16#include <aws/monitoring/model/EvaluationState.h>
17#include <aws/monitoring/model/Dimension.h>
18#include <aws/monitoring/model/MetricDataQuery.h>
59 inline void SetAlarmName(
const char* value) { m_alarmNameHasBeenSet =
true; m_alarmName.assign(value); }
73 inline void SetAlarmArn(
const char* value) { m_alarmArnHasBeenSet =
true; m_alarmArn.assign(value); }
87 inline void SetAlarmDescription(
const char* value) { m_alarmDescriptionHasBeenSet =
true; m_alarmDescription.assign(value); }
112 inline void SetActionsEnabled(
bool value) { m_actionsEnabledHasBeenSet =
true; m_actionsEnabled = value; }
130 inline MetricAlarm&
AddOKActions(
const char* value) { m_oKActionsHasBeenSet =
true; m_oKActions.push_back(value);
return *
this; }
187 inline void SetStateReason(
const char* value) { m_stateReasonHasBeenSet =
true; m_stateReason.assign(value); }
201 inline void SetStateReasonData(
const char* value) { m_stateReasonDataHasBeenSet =
true; m_stateReasonData.assign(value); }
229 inline void SetMetricName(
const char* value) { m_metricNameHasBeenSet =
true; m_metricName.assign(value); }
243 inline void SetNamespace(
const char* value) { m_namespaceHasBeenSet =
true; m_namespace.assign(value); }
271 inline void SetExtendedStatistic(
const char* value) { m_extendedStatisticHasBeenSet =
true; m_extendedStatistic.assign(value); }
297 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
320 inline void SetEvaluationPeriods(
int value) { m_evaluationPeriodsHasBeenSet =
true; m_evaluationPeriods = value; }
330 inline void SetDatapointsToAlarm(
int value) { m_datapointsToAlarmHasBeenSet =
true; m_datapointsToAlarm = value; }
340 inline void SetThreshold(
double value) { m_thresholdHasBeenSet =
true; m_threshold = value; }
370 inline void SetTreatMissingData(
const char* value) { m_treatMissingDataHasBeenSet =
true; m_treatMissingData.assign(value); }
422 inline void SetThresholdMetricId(
const char* value) { m_thresholdMetricIdHasBeenSet =
true; m_thresholdMetricId.assign(value); }
459 bool m_alarmNameHasBeenSet =
false;
462 bool m_alarmArnHasBeenSet =
false;
465 bool m_alarmDescriptionHasBeenSet =
false;
468 bool m_alarmConfigurationUpdatedTimestampHasBeenSet =
false;
470 bool m_actionsEnabled;
471 bool m_actionsEnabledHasBeenSet =
false;
474 bool m_oKActionsHasBeenSet =
false;
477 bool m_alarmActionsHasBeenSet =
false;
480 bool m_insufficientDataActionsHasBeenSet =
false;
483 bool m_stateValueHasBeenSet =
false;
486 bool m_stateReasonHasBeenSet =
false;
489 bool m_stateReasonDataHasBeenSet =
false;
492 bool m_stateUpdatedTimestampHasBeenSet =
false;
495 bool m_metricNameHasBeenSet =
false;
498 bool m_namespaceHasBeenSet =
false;
501 bool m_statisticHasBeenSet =
false;
504 bool m_extendedStatisticHasBeenSet =
false;
507 bool m_dimensionsHasBeenSet =
false;
510 bool m_periodHasBeenSet =
false;
513 bool m_unitHasBeenSet =
false;
515 int m_evaluationPeriods;
516 bool m_evaluationPeriodsHasBeenSet =
false;
518 int m_datapointsToAlarm;
519 bool m_datapointsToAlarmHasBeenSet =
false;
522 bool m_thresholdHasBeenSet =
false;
525 bool m_comparisonOperatorHasBeenSet =
false;
528 bool m_treatMissingDataHasBeenSet =
false;
531 bool m_evaluateLowSampleCountPercentileHasBeenSet =
false;
534 bool m_metricsHasBeenSet =
false;
537 bool m_thresholdMetricIdHasBeenSet =
false;
540 bool m_evaluationStateHasBeenSet =
false;
543 bool m_stateTransitionedTimestampHasBeenSet =
false;
void SetStateValue(StateValue &&value)
bool MetricNameHasBeenSet() const
AWS_CLOUDWATCH_API MetricAlarm(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ThresholdMetricIdHasBeenSet() const
void SetStateReason(Aws::String &&value)
bool StateReasonHasBeenSet() const
void SetStateReason(const Aws::String &value)
MetricAlarm & WithMetricName(const Aws::String &value)
MetricAlarm & WithEvaluateLowSampleCountPercentile(const Aws::String &value)
MetricAlarm & WithEvaluateLowSampleCountPercentile(Aws::String &&value)
MetricAlarm & AddMetrics(MetricDataQuery &&value)
void SetMetrics(const Aws::Vector< MetricDataQuery > &value)
void SetAlarmConfigurationUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetStateReason(const char *value)
bool EvaluationPeriodsHasBeenSet() const
bool ActionsEnabledHasBeenSet() const
AWS_CLOUDWATCH_API MetricAlarm & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetStateReasonData() const
void SetUnit(const StandardUnit &value)
void SetNamespace(const Aws::String &value)
MetricAlarm & AddDimensions(const Dimension &value)
void SetActionsEnabled(bool value)
void SetDimensions(const Aws::Vector< Dimension > &value)
void SetDatapointsToAlarm(int value)
MetricAlarm & WithNamespace(const char *value)
const Aws::Vector< Aws::String > & GetOKActions() const
const Statistic & GetStatistic() const
void SetStateReasonData(Aws::String &&value)
void SetStateValue(const StateValue &value)
MetricAlarm & WithEvaluationState(EvaluationState &&value)
MetricAlarm & WithThreshold(double value)
MetricAlarm & WithThresholdMetricId(const Aws::String &value)
bool ComparisonOperatorHasBeenSet() const
MetricAlarm & WithComparisonOperator(ComparisonOperator &&value)
MetricAlarm & AddOKActions(const char *value)
bool StateValueHasBeenSet() const
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
const Aws::String & GetNamespace() const
void SetExtendedStatistic(const char *value)
double GetThreshold() const
const EvaluationState & GetEvaluationState() const
int GetDatapointsToAlarm() const
MetricAlarm & WithAlarmDescription(const char *value)
const ComparisonOperator & GetComparisonOperator() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetMetricName() const
void SetStatistic(const Statistic &value)
void SetAlarmArn(const char *value)
MetricAlarm & AddOKActions(const Aws::String &value)
void SetStateUpdatedTimestamp(Aws::Utils::DateTime &&value)
MetricAlarm & WithStateTransitionedTimestamp(Aws::Utils::DateTime &&value)
bool AlarmDescriptionHasBeenSet() const
void SetNamespace(Aws::String &&value)
void SetDimensions(Aws::Vector< Dimension > &&value)
const StateValue & GetStateValue() const
void SetUnit(StandardUnit &&value)
MetricAlarm & WithAlarmArn(Aws::String &&value)
bool NamespaceHasBeenSet() const
void SetPeriod(int value)
void SetAlarmDescription(Aws::String &&value)
MetricAlarm & WithAlarmArn(const char *value)
void SetComparisonOperator(ComparisonOperator &&value)
void SetThresholdMetricId(const Aws::String &value)
MetricAlarm & AddInsufficientDataActions(const Aws::String &value)
MetricAlarm & WithStateReasonData(const char *value)
void SetNamespace(const char *value)
MetricAlarm & WithThresholdMetricId(Aws::String &&value)
MetricAlarm & WithDimensions(Aws::Vector< Dimension > &&value)
MetricAlarm & AddInsufficientDataActions(Aws::String &&value)
MetricAlarm & WithEvaluateLowSampleCountPercentile(const char *value)
MetricAlarm & WithInsufficientDataActions(const Aws::Vector< Aws::String > &value)
void SetEvaluateLowSampleCountPercentile(const Aws::String &value)
void SetStateTransitionedTimestamp(const Aws::Utils::DateTime &value)
const Aws::String & GetThresholdMetricId() const
void SetMetrics(Aws::Vector< MetricDataQuery > &&value)
void SetAlarmActions(Aws::Vector< Aws::String > &&value)
MetricAlarm & AddMetrics(const MetricDataQuery &value)
void SetInsufficientDataActions(Aws::Vector< Aws::String > &&value)
bool StateReasonDataHasBeenSet() const
void SetEvaluationState(EvaluationState &&value)
bool OKActionsHasBeenSet() const
void SetTreatMissingData(const Aws::String &value)
const Aws::String & GetStateReason() const
MetricAlarm & WithAlarmName(Aws::String &&value)
bool AlarmNameHasBeenSet() const
bool DatapointsToAlarmHasBeenSet() const
void SetTreatMissingData(const char *value)
MetricAlarm & WithEvaluationPeriods(int value)
bool AlarmArnHasBeenSet() const
MetricAlarm & WithOKActions(const Aws::Vector< Aws::String > &value)
void SetStateUpdatedTimestamp(const Aws::Utils::DateTime &value)
MetricAlarm & WithUnit(const StandardUnit &value)
void SetAlarmName(Aws::String &&value)
void SetExtendedStatistic(const Aws::String &value)
MetricAlarm & WithThresholdMetricId(const char *value)
MetricAlarm & WithComparisonOperator(const ComparisonOperator &value)
void SetAlarmActions(const Aws::Vector< Aws::String > &value)
MetricAlarm & WithAlarmDescription(const Aws::String &value)
const Aws::Utils::DateTime & GetStateTransitionedTimestamp() const
MetricAlarm & WithDatapointsToAlarm(int value)
void SetEvaluateLowSampleCountPercentile(const char *value)
const Aws::Utils::DateTime & GetAlarmConfigurationUpdatedTimestamp() const
void SetStatistic(Statistic &&value)
bool EvaluationStateHasBeenSet() const
bool AlarmConfigurationUpdatedTimestampHasBeenSet() const
MetricAlarm & WithExtendedStatistic(Aws::String &&value)
bool EvaluateLowSampleCountPercentileHasBeenSet() const
const Aws::String & GetTreatMissingData() const
void SetAlarmDescription(const char *value)
MetricAlarm & AddOKActions(Aws::String &&value)
void SetMetricName(const char *value)
void SetAlarmName(const char *value)
MetricAlarm & WithStateUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetComparisonOperator(const ComparisonOperator &value)
MetricAlarm & WithAlarmActions(const Aws::Vector< Aws::String > &value)
MetricAlarm & WithExtendedStatistic(const char *value)
bool AlarmActionsHasBeenSet() const
bool UnitHasBeenSet() const
void SetStateReasonData(const char *value)
bool GetActionsEnabled() const
void SetAlarmName(const Aws::String &value)
MetricAlarm & WithPeriod(int value)
MetricAlarm & WithNamespace(Aws::String &&value)
MetricAlarm & AddAlarmActions(const char *value)
MetricAlarm & WithEvaluationState(const EvaluationState &value)
MetricAlarm & WithStatistic(Statistic &&value)
const StandardUnit & GetUnit() const
void SetThreshold(double value)
int GetEvaluationPeriods() const
void SetOKActions(const Aws::Vector< Aws::String > &value)
void SetAlarmArn(const Aws::String &value)
MetricAlarm & WithAlarmConfigurationUpdatedTimestamp(const Aws::Utils::DateTime &value)
MetricAlarm & WithMetricName(Aws::String &&value)
void SetEvaluateLowSampleCountPercentile(Aws::String &&value)
MetricAlarm & WithOKActions(Aws::Vector< Aws::String > &&value)
MetricAlarm & WithTreatMissingData(const Aws::String &value)
bool StatisticHasBeenSet() const
MetricAlarm & WithMetrics(const Aws::Vector< MetricDataQuery > &value)
const Aws::Vector< Dimension > & GetDimensions() const
const Aws::String & GetAlarmArn() const
const Aws::Vector< MetricDataQuery > & GetMetrics() const
MetricAlarm & WithStateReasonData(Aws::String &&value)
void SetThresholdMetricId(const char *value)
MetricAlarm & WithStateReason(const char *value)
void SetEvaluationState(const EvaluationState &value)
void SetExtendedStatistic(Aws::String &&value)
MetricAlarm & WithAlarmArn(const Aws::String &value)
void SetEvaluationPeriods(int value)
bool TreatMissingDataHasBeenSet() const
const Aws::String & GetExtendedStatistic() const
MetricAlarm & WithAlarmActions(Aws::Vector< Aws::String > &&value)
MetricAlarm & WithTreatMissingData(Aws::String &&value)
MetricAlarm & WithAlarmName(const Aws::String &value)
MetricAlarm & WithMetricName(const char *value)
MetricAlarm & WithStateValue(const StateValue &value)
AWS_CLOUDWATCH_API MetricAlarm()
MetricAlarm & WithStateTransitionedTimestamp(const Aws::Utils::DateTime &value)
const Aws::Vector< Aws::String > & GetAlarmActions() const
bool PeriodHasBeenSet() const
void SetTreatMissingData(Aws::String &&value)
MetricAlarm & WithTreatMissingData(const char *value)
void SetThresholdMetricId(Aws::String &&value)
MetricAlarm & AddAlarmActions(const Aws::String &value)
void SetStateReasonData(const Aws::String &value)
MetricAlarm & AddDimensions(Dimension &&value)
const Aws::String & GetAlarmDescription() const
MetricAlarm & WithDimensions(const Aws::Vector< Dimension > &value)
MetricAlarm & WithActionsEnabled(bool value)
bool ExtendedStatisticHasBeenSet() const
bool DimensionsHasBeenSet() const
void SetAlarmConfigurationUpdatedTimestamp(Aws::Utils::DateTime &&value)
MetricAlarm & AddAlarmActions(Aws::String &&value)
bool MetricsHasBeenSet() const
MetricAlarm & WithAlarmDescription(Aws::String &&value)
void SetInsufficientDataActions(const Aws::Vector< Aws::String > &value)
MetricAlarm & WithStatistic(const Statistic &value)
void SetStateTransitionedTimestamp(Aws::Utils::DateTime &&value)
MetricAlarm & WithAlarmConfigurationUpdatedTimestamp(Aws::Utils::DateTime &&value)
MetricAlarm & WithAlarmName(const char *value)
void SetAlarmArn(Aws::String &&value)
void SetMetricName(const Aws::String &value)
MetricAlarm & AddInsufficientDataActions(const char *value)
bool ThresholdHasBeenSet() const
bool InsufficientDataActionsHasBeenSet() const
MetricAlarm & WithInsufficientDataActions(Aws::Vector< Aws::String > &&value)
MetricAlarm & WithUnit(StandardUnit &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MetricAlarm & WithStateUpdatedTimestamp(const Aws::Utils::DateTime &value)
MetricAlarm & WithNamespace(const Aws::String &value)
void SetAlarmDescription(const Aws::String &value)
MetricAlarm & WithMetrics(Aws::Vector< MetricDataQuery > &&value)
const Aws::Utils::DateTime & GetStateUpdatedTimestamp() const
const Aws::String & GetEvaluateLowSampleCountPercentile() const
const Aws::String & GetAlarmName() const
void SetOKActions(Aws::Vector< Aws::String > &&value)
MetricAlarm & WithStateReasonData(const Aws::String &value)
bool StateUpdatedTimestampHasBeenSet() const
MetricAlarm & WithExtendedStatistic(const Aws::String &value)
MetricAlarm & WithStateValue(StateValue &&value)
void SetMetricName(Aws::String &&value)
MetricAlarm & WithStateReason(const Aws::String &value)
MetricAlarm & WithStateReason(Aws::String &&value)
bool StateTransitionedTimestampHasBeenSet() const
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