7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/monitoring/model/Statistic.h>
12#include <aws/monitoring/model/StandardUnit.h>
13#include <aws/monitoring/model/ComparisonOperator.h>
14#include <aws/monitoring/model/Dimension.h>
15#include <aws/monitoring/model/MetricDataQuery.h>
16#include <aws/monitoring/model/Tag.h>
56 inline void SetAlarmName(
const char* value) { m_alarmNameHasBeenSet =
true; m_alarmName.assign(value); }
70 inline void SetAlarmDescription(
const char* value) { m_alarmDescriptionHasBeenSet =
true; m_alarmDescription.assign(value); }
83 inline void SetActionsEnabled(
bool value) { m_actionsEnabledHasBeenSet =
true; m_actionsEnabled = value; }
235 inline void SetMetricName(
const char* value) { m_metricNameHasBeenSet =
true; m_metricName.assign(value); }
250 inline void SetNamespace(
const char* value) { m_namespaceHasBeenSet =
true; m_namespace.assign(value); }
296 inline void SetExtendedStatistic(
const char* value) { m_extendedStatisticHasBeenSet =
true; m_extendedStatistic.assign(value); }
339 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
381 inline void SetEvaluationPeriods(
int value) { m_evaluationPeriodsHasBeenSet =
true; m_evaluationPeriods = value; }
395 inline void SetDatapointsToAlarm(
int value) { m_datapointsToAlarmHasBeenSet =
true; m_datapointsToAlarm = value; }
407 inline void SetThreshold(
double value) { m_thresholdHasBeenSet =
true; m_threshold = value; }
445 inline void SetTreatMissingData(
const char* value) { m_treatMissingDataHasBeenSet =
true; m_treatMissingData.assign(value); }
538 inline void SetThresholdMetricId(
const char* value) { m_thresholdMetricIdHasBeenSet =
true; m_thresholdMetricId.assign(value); }
546 bool m_alarmNameHasBeenSet =
false;
549 bool m_alarmDescriptionHasBeenSet =
false;
551 bool m_actionsEnabled;
552 bool m_actionsEnabledHasBeenSet =
false;
555 bool m_oKActionsHasBeenSet =
false;
558 bool m_alarmActionsHasBeenSet =
false;
561 bool m_insufficientDataActionsHasBeenSet =
false;
564 bool m_metricNameHasBeenSet =
false;
567 bool m_namespaceHasBeenSet =
false;
570 bool m_statisticHasBeenSet =
false;
573 bool m_extendedStatisticHasBeenSet =
false;
576 bool m_dimensionsHasBeenSet =
false;
579 bool m_periodHasBeenSet =
false;
582 bool m_unitHasBeenSet =
false;
584 int m_evaluationPeriods;
585 bool m_evaluationPeriodsHasBeenSet =
false;
587 int m_datapointsToAlarm;
588 bool m_datapointsToAlarmHasBeenSet =
false;
591 bool m_thresholdHasBeenSet =
false;
594 bool m_comparisonOperatorHasBeenSet =
false;
597 bool m_treatMissingDataHasBeenSet =
false;
600 bool m_evaluateLowSampleCountPercentileHasBeenSet =
false;
603 bool m_metricsHasBeenSet =
false;
606 bool m_tagsHasBeenSet =
false;
609 bool m_thresholdMetricIdHasBeenSet =
false;
PutMetricAlarmRequest & WithUnit(StandardUnit &&value)
PutMetricAlarmRequest & WithEvaluateLowSampleCountPercentile(Aws::String &&value)
bool ThresholdHasBeenSet() const
PutMetricAlarmRequest & WithDimensions(const Aws::Vector< Dimension > &value)
int GetDatapointsToAlarm() const
double GetThreshold() const
PutMetricAlarmRequest & WithMetrics(Aws::Vector< MetricDataQuery > &&value)
bool GetActionsEnabled() const
const Aws::String & GetExtendedStatistic() const
void SetMetrics(const Aws::Vector< MetricDataQuery > &value)
PutMetricAlarmRequest & WithStatistic(Statistic &&value)
PutMetricAlarmRequest & AddDimensions(Dimension &&value)
void SetUnit(StandardUnit &&value)
const StandardUnit & GetUnit() const
void SetPeriod(int value)
bool AlarmActionsHasBeenSet() const
bool PeriodHasBeenSet() const
const Aws::String & GetMetricName() const
bool EvaluateLowSampleCountPercentileHasBeenSet() const
void SetTags(const Aws::Vector< Tag > &value)
const Aws::String & GetAlarmDescription() const
PutMetricAlarmRequest & WithExtendedStatistic(const Aws::String &value)
void SetThreshold(double value)
PutMetricAlarmRequest & WithAlarmDescription(const Aws::String &value)
PutMetricAlarmRequest & WithTreatMissingData(const Aws::String &value)
PutMetricAlarmRequest & AddInsufficientDataActions(const Aws::String &value)
PutMetricAlarmRequest & AddMetrics(MetricDataQuery &&value)
PutMetricAlarmRequest & WithInsufficientDataActions(const Aws::Vector< Aws::String > &value)
void SetAlarmDescription(Aws::String &&value)
void SetAlarmName(const char *value)
PutMetricAlarmRequest & WithOKActions(Aws::Vector< Aws::String > &&value)
PutMetricAlarmRequest & AddAlarmActions(Aws::String &&value)
PutMetricAlarmRequest & AddInsufficientDataActions(const char *value)
PutMetricAlarmRequest & WithInsufficientDataActions(Aws::Vector< Aws::String > &&value)
PutMetricAlarmRequest & WithThreshold(double value)
bool ComparisonOperatorHasBeenSet() const
bool InsufficientDataActionsHasBeenSet() const
const Aws::String & GetThresholdMetricId() const
PutMetricAlarmRequest & WithEvaluationPeriods(int value)
bool DimensionsHasBeenSet() const
void SetDatapointsToAlarm(int value)
PutMetricAlarmRequest & WithDatapointsToAlarm(int value)
PutMetricAlarmRequest & AddTags(const Tag &value)
bool EvaluationPeriodsHasBeenSet() const
bool NamespaceHasBeenSet() const
void SetAlarmDescription(const Aws::String &value)
PutMetricAlarmRequest & WithNamespace(const Aws::String &value)
bool TreatMissingDataHasBeenSet() const
bool StatisticHasBeenSet() const
void SetNamespace(Aws::String &&value)
PutMetricAlarmRequest & WithThresholdMetricId(const char *value)
const Aws::String & GetAlarmName() const
bool TagsHasBeenSet() const
void SetEvaluateLowSampleCountPercentile(const char *value)
void SetInsufficientDataActions(Aws::Vector< Aws::String > &&value)
void SetOKActions(Aws::Vector< Aws::String > &&value)
void SetMetricName(const Aws::String &value)
PutMetricAlarmRequest & WithTags(const Aws::Vector< Tag > &value)
bool UnitHasBeenSet() const
const Statistic & GetStatistic() const
void SetThresholdMetricId(Aws::String &&value)
PutMetricAlarmRequest & WithMetrics(const Aws::Vector< MetricDataQuery > &value)
void SetMetricName(const char *value)
void SetThresholdMetricId(const Aws::String &value)
void SetEvaluateLowSampleCountPercentile(const Aws::String &value)
void SetEvaluationPeriods(int value)
PutMetricAlarmRequest & WithTreatMissingData(Aws::String &&value)
PutMetricAlarmRequest & AddTags(Tag &&value)
PutMetricAlarmRequest & AddAlarmActions(const Aws::String &value)
void SetStatistic(Statistic &&value)
void SetDimensions(Aws::Vector< Dimension > &&value)
const Aws::Vector< Dimension > & GetDimensions() const
PutMetricAlarmRequest & WithUnit(const StandardUnit &value)
void SetTreatMissingData(const Aws::String &value)
PutMetricAlarmRequest & WithThresholdMetricId(Aws::String &&value)
void SetAlarmActions(Aws::Vector< Aws::String > &&value)
bool ExtendedStatisticHasBeenSet() const
bool MetricNameHasBeenSet() const
const Aws::Vector< MetricDataQuery > & GetMetrics() const
const Aws::Vector< Aws::String > & GetAlarmActions() const
bool AlarmDescriptionHasBeenSet() const
PutMetricAlarmRequest & WithTags(Aws::Vector< Tag > &&value)
PutMetricAlarmRequest & WithActionsEnabled(bool value)
const Aws::String & GetNamespace() const
PutMetricAlarmRequest & AddInsufficientDataActions(Aws::String &&value)
void SetUnit(const StandardUnit &value)
const Aws::String & GetEvaluateLowSampleCountPercentile() const
void SetAlarmDescription(const char *value)
PutMetricAlarmRequest & WithExtendedStatistic(const char *value)
PutMetricAlarmRequest & WithPeriod(int value)
void SetComparisonOperator(ComparisonOperator &&value)
PutMetricAlarmRequest & AddOKActions(const char *value)
const Aws::Vector< Aws::String > & GetOKActions() const
bool ActionsEnabledHasBeenSet() const
void SetNamespace(const Aws::String &value)
void SetExtendedStatistic(const Aws::String &value)
void SetEvaluateLowSampleCountPercentile(Aws::String &&value)
AWS_CLOUDWATCH_API PutMetricAlarmRequest()
void SetInsufficientDataActions(const Aws::Vector< Aws::String > &value)
PutMetricAlarmRequest & WithTreatMissingData(const char *value)
void SetActionsEnabled(bool value)
PutMetricAlarmRequest & WithExtendedStatistic(Aws::String &&value)
bool MetricsHasBeenSet() const
PutMetricAlarmRequest & WithDimensions(Aws::Vector< Dimension > &&value)
bool DatapointsToAlarmHasBeenSet() const
PutMetricAlarmRequest & WithNamespace(const char *value)
PutMetricAlarmRequest & AddDimensions(const Dimension &value)
PutMetricAlarmRequest & WithMetricName(const Aws::String &value)
void SetExtendedStatistic(const char *value)
PutMetricAlarmRequest & WithOKActions(const Aws::Vector< Aws::String > &value)
PutMetricAlarmRequest & WithStatistic(const Statistic &value)
bool AlarmNameHasBeenSet() const
PutMetricAlarmRequest & WithEvaluateLowSampleCountPercentile(const char *value)
PutMetricAlarmRequest & WithAlarmDescription(const char *value)
PutMetricAlarmRequest & WithAlarmName(const char *value)
PutMetricAlarmRequest & WithComparisonOperator(ComparisonOperator &&value)
const Aws::String & GetTreatMissingData() const
PutMetricAlarmRequest & WithAlarmName(Aws::String &&value)
PutMetricAlarmRequest & WithEvaluateLowSampleCountPercentile(const Aws::String &value)
void SetAlarmName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
void SetMetrics(Aws::Vector< MetricDataQuery > &&value)
bool OKActionsHasBeenSet() const
PutMetricAlarmRequest & WithNamespace(Aws::String &&value)
PutMetricAlarmRequest & WithAlarmActions(const Aws::Vector< Aws::String > &value)
PutMetricAlarmRequest & WithAlarmName(const Aws::String &value)
void SetThresholdMetricId(const char *value)
void SetTreatMissingData(const char *value)
PutMetricAlarmRequest & WithComparisonOperator(const ComparisonOperator &value)
void SetStatistic(const Statistic &value)
const Aws::Vector< Tag > & GetTags() const
void SetOKActions(const Aws::Vector< Aws::String > &value)
bool ThresholdMetricIdHasBeenSet() const
void SetAlarmActions(const Aws::Vector< Aws::String > &value)
const ComparisonOperator & GetComparisonOperator() const
PutMetricAlarmRequest & WithAlarmActions(Aws::Vector< Aws::String > &&value)
void SetDimensions(const Aws::Vector< Dimension > &value)
PutMetricAlarmRequest & WithThresholdMetricId(const Aws::String &value)
PutMetricAlarmRequest & AddOKActions(const Aws::String &value)
void SetExtendedStatistic(Aws::String &&value)
PutMetricAlarmRequest & WithMetricName(const char *value)
virtual const char * GetServiceRequestName() const override
void SetComparisonOperator(const ComparisonOperator &value)
void SetTags(Aws::Vector< Tag > &&value)
PutMetricAlarmRequest & AddMetrics(const MetricDataQuery &value)
void SetMetricName(Aws::String &&value)
PutMetricAlarmRequest & WithAlarmDescription(Aws::String &&value)
void SetTreatMissingData(Aws::String &&value)
void SetAlarmName(const Aws::String &value)
PutMetricAlarmRequest & AddAlarmActions(const char *value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutMetricAlarmRequest & AddOKActions(Aws::String &&value)
PutMetricAlarmRequest & WithMetricName(Aws::String &&value)
void SetNamespace(const char *value)
int GetEvaluationPeriods() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector