AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsCloudWatchAlarmDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/AwsCloudWatchAlarmDimensionsDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API AwsCloudWatchAlarmDetails() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline bool GetActionsEnabled() const { return m_actionsEnabled; }
49 inline bool ActionsEnabledHasBeenSet() const { return m_actionsEnabledHasBeenSet; }
50 inline void SetActionsEnabled(bool value) { m_actionsEnabledHasBeenSet = true; m_actionsEnabled = value; }
51 inline AwsCloudWatchAlarmDetails& WithActionsEnabled(bool value) { SetActionsEnabled(value); return *this;}
53
55
60 inline const Aws::Vector<Aws::String>& GetAlarmActions() const { return m_alarmActions; }
61 inline bool AlarmActionsHasBeenSet() const { return m_alarmActionsHasBeenSet; }
62 template<typename AlarmActionsT = Aws::Vector<Aws::String>>
63 void SetAlarmActions(AlarmActionsT&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = std::forward<AlarmActionsT>(value); }
64 template<typename AlarmActionsT = Aws::Vector<Aws::String>>
65 AwsCloudWatchAlarmDetails& WithAlarmActions(AlarmActionsT&& value) { SetAlarmActions(std::forward<AlarmActionsT>(value)); return *this;}
66 template<typename AlarmActionsT = Aws::String>
67 AwsCloudWatchAlarmDetails& AddAlarmActions(AlarmActionsT&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value)); return *this; }
69
71
74 inline const Aws::String& GetAlarmArn() const { return m_alarmArn; }
75 inline bool AlarmArnHasBeenSet() const { return m_alarmArnHasBeenSet; }
76 template<typename AlarmArnT = Aws::String>
77 void SetAlarmArn(AlarmArnT&& value) { m_alarmArnHasBeenSet = true; m_alarmArn = std::forward<AlarmArnT>(value); }
78 template<typename AlarmArnT = Aws::String>
79 AwsCloudWatchAlarmDetails& WithAlarmArn(AlarmArnT&& value) { SetAlarmArn(std::forward<AlarmArnT>(value)); return *this;}
81
83
86 inline const Aws::String& GetAlarmConfigurationUpdatedTimestamp() const { return m_alarmConfigurationUpdatedTimestamp; }
87 inline bool AlarmConfigurationUpdatedTimestampHasBeenSet() const { return m_alarmConfigurationUpdatedTimestampHasBeenSet; }
88 template<typename AlarmConfigurationUpdatedTimestampT = Aws::String>
89 void SetAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT&& value) { m_alarmConfigurationUpdatedTimestampHasBeenSet = true; m_alarmConfigurationUpdatedTimestamp = std::forward<AlarmConfigurationUpdatedTimestampT>(value); }
90 template<typename AlarmConfigurationUpdatedTimestampT = Aws::String>
91 AwsCloudWatchAlarmDetails& WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT&& value) { SetAlarmConfigurationUpdatedTimestamp(std::forward<AlarmConfigurationUpdatedTimestampT>(value)); return *this;}
93
95
98 inline const Aws::String& GetAlarmDescription() const { return m_alarmDescription; }
99 inline bool AlarmDescriptionHasBeenSet() const { return m_alarmDescriptionHasBeenSet; }
100 template<typename AlarmDescriptionT = Aws::String>
101 void SetAlarmDescription(AlarmDescriptionT&& value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription = std::forward<AlarmDescriptionT>(value); }
102 template<typename AlarmDescriptionT = Aws::String>
103 AwsCloudWatchAlarmDetails& WithAlarmDescription(AlarmDescriptionT&& value) { SetAlarmDescription(std::forward<AlarmDescriptionT>(value)); return *this;}
105
107
111 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
112 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
113 template<typename AlarmNameT = Aws::String>
114 void SetAlarmName(AlarmNameT&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::forward<AlarmNameT>(value); }
115 template<typename AlarmNameT = Aws::String>
116 AwsCloudWatchAlarmDetails& WithAlarmName(AlarmNameT&& value) { SetAlarmName(std::forward<AlarmNameT>(value)); return *this;}
118
120
124 inline const Aws::String& GetComparisonOperator() const { return m_comparisonOperator; }
125 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
126 template<typename ComparisonOperatorT = Aws::String>
127 void SetComparisonOperator(ComparisonOperatorT&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::forward<ComparisonOperatorT>(value); }
128 template<typename ComparisonOperatorT = Aws::String>
129 AwsCloudWatchAlarmDetails& WithComparisonOperator(ComparisonOperatorT&& value) { SetComparisonOperator(std::forward<ComparisonOperatorT>(value)); return *this;}
131
133
136 inline int GetDatapointsToAlarm() const { return m_datapointsToAlarm; }
137 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
138 inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarmHasBeenSet = true; m_datapointsToAlarm = value; }
139 inline AwsCloudWatchAlarmDetails& WithDatapointsToAlarm(int value) { SetDatapointsToAlarm(value); return *this;}
141
143
146 inline const Aws::Vector<AwsCloudWatchAlarmDimensionsDetails>& GetDimensions() const { return m_dimensions; }
147 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
148 template<typename DimensionsT = Aws::Vector<AwsCloudWatchAlarmDimensionsDetails>>
149 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
150 template<typename DimensionsT = Aws::Vector<AwsCloudWatchAlarmDimensionsDetails>>
151 AwsCloudWatchAlarmDetails& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
152 template<typename DimensionsT = AwsCloudWatchAlarmDimensionsDetails>
153 AwsCloudWatchAlarmDetails& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
155
157
164 inline const Aws::String& GetEvaluateLowSampleCountPercentile() const { return m_evaluateLowSampleCountPercentile; }
165 inline bool EvaluateLowSampleCountPercentileHasBeenSet() const { return m_evaluateLowSampleCountPercentileHasBeenSet; }
166 template<typename EvaluateLowSampleCountPercentileT = Aws::String>
167 void SetEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT&& value) { m_evaluateLowSampleCountPercentileHasBeenSet = true; m_evaluateLowSampleCountPercentile = std::forward<EvaluateLowSampleCountPercentileT>(value); }
168 template<typename EvaluateLowSampleCountPercentileT = Aws::String>
169 AwsCloudWatchAlarmDetails& WithEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT&& value) { SetEvaluateLowSampleCountPercentile(std::forward<EvaluateLowSampleCountPercentileT>(value)); return *this;}
171
173
177 inline int GetEvaluationPeriods() const { return m_evaluationPeriods; }
178 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
179 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
180 inline AwsCloudWatchAlarmDetails& WithEvaluationPeriods(int value) { SetEvaluationPeriods(value); return *this;}
182
184
187 inline const Aws::String& GetExtendedStatistic() const { return m_extendedStatistic; }
188 inline bool ExtendedStatisticHasBeenSet() const { return m_extendedStatisticHasBeenSet; }
189 template<typename ExtendedStatisticT = Aws::String>
190 void SetExtendedStatistic(ExtendedStatisticT&& value) { m_extendedStatisticHasBeenSet = true; m_extendedStatistic = std::forward<ExtendedStatisticT>(value); }
191 template<typename ExtendedStatisticT = Aws::String>
192 AwsCloudWatchAlarmDetails& WithExtendedStatistic(ExtendedStatisticT&& value) { SetExtendedStatistic(std::forward<ExtendedStatisticT>(value)); return *this;}
194
196
201 inline const Aws::Vector<Aws::String>& GetInsufficientDataActions() const { return m_insufficientDataActions; }
202 inline bool InsufficientDataActionsHasBeenSet() const { return m_insufficientDataActionsHasBeenSet; }
203 template<typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
204 void SetInsufficientDataActions(InsufficientDataActionsT&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value); }
205 template<typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
206 AwsCloudWatchAlarmDetails& WithInsufficientDataActions(InsufficientDataActionsT&& value) { SetInsufficientDataActions(std::forward<InsufficientDataActionsT>(value)); return *this;}
207 template<typename InsufficientDataActionsT = Aws::String>
208 AwsCloudWatchAlarmDetails& AddInsufficientDataActions(InsufficientDataActionsT&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value)); return *this; }
210
212
217 inline const Aws::String& GetMetricName() const { return m_metricName; }
218 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
219 template<typename MetricNameT = Aws::String>
220 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
221 template<typename MetricNameT = Aws::String>
222 AwsCloudWatchAlarmDetails& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
224
226
231 inline const Aws::String& GetNamespace() const { return m_namespace; }
232 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
233 template<typename NamespaceT = Aws::String>
234 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
235 template<typename NamespaceT = Aws::String>
236 AwsCloudWatchAlarmDetails& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
238
240
244 inline const Aws::Vector<Aws::String>& GetOkActions() const { return m_okActions; }
245 inline bool OkActionsHasBeenSet() const { return m_okActionsHasBeenSet; }
246 template<typename OkActionsT = Aws::Vector<Aws::String>>
247 void SetOkActions(OkActionsT&& value) { m_okActionsHasBeenSet = true; m_okActions = std::forward<OkActionsT>(value); }
248 template<typename OkActionsT = Aws::Vector<Aws::String>>
249 AwsCloudWatchAlarmDetails& WithOkActions(OkActionsT&& value) { SetOkActions(std::forward<OkActionsT>(value)); return *this;}
250 template<typename OkActionsT = Aws::String>
251 AwsCloudWatchAlarmDetails& AddOkActions(OkActionsT&& value) { m_okActionsHasBeenSet = true; m_okActions.emplace_back(std::forward<OkActionsT>(value)); return *this; }
253
255
259 inline int GetPeriod() const { return m_period; }
260 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
261 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
262 inline AwsCloudWatchAlarmDetails& WithPeriod(int value) { SetPeriod(value); return *this;}
264
266
274 inline const Aws::String& GetStatistic() const { return m_statistic; }
275 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
276 template<typename StatisticT = Aws::String>
277 void SetStatistic(StatisticT&& value) { m_statisticHasBeenSet = true; m_statistic = std::forward<StatisticT>(value); }
278 template<typename StatisticT = Aws::String>
279 AwsCloudWatchAlarmDetails& WithStatistic(StatisticT&& value) { SetStatistic(std::forward<StatisticT>(value)); return *this;}
281
283
286 inline double GetThreshold() const { return m_threshold; }
287 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
288 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
289 inline AwsCloudWatchAlarmDetails& WithThreshold(double value) { SetThreshold(value); return *this;}
291
293
298 inline const Aws::String& GetThresholdMetricId() const { return m_thresholdMetricId; }
299 inline bool ThresholdMetricIdHasBeenSet() const { return m_thresholdMetricIdHasBeenSet; }
300 template<typename ThresholdMetricIdT = Aws::String>
301 void SetThresholdMetricId(ThresholdMetricIdT&& value) { m_thresholdMetricIdHasBeenSet = true; m_thresholdMetricId = std::forward<ThresholdMetricIdT>(value); }
302 template<typename ThresholdMetricIdT = Aws::String>
303 AwsCloudWatchAlarmDetails& WithThresholdMetricId(ThresholdMetricIdT&& value) { SetThresholdMetricId(std::forward<ThresholdMetricIdT>(value)); return *this;}
305
307
310 inline const Aws::String& GetTreatMissingData() const { return m_treatMissingData; }
311 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
312 template<typename TreatMissingDataT = Aws::String>
313 void SetTreatMissingData(TreatMissingDataT&& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = std::forward<TreatMissingDataT>(value); }
314 template<typename TreatMissingDataT = Aws::String>
315 AwsCloudWatchAlarmDetails& WithTreatMissingData(TreatMissingDataT&& value) { SetTreatMissingData(std::forward<TreatMissingDataT>(value)); return *this;}
317
319
322 inline const Aws::String& GetUnit() const { return m_unit; }
323 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
324 template<typename UnitT = Aws::String>
325 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
326 template<typename UnitT = Aws::String>
327 AwsCloudWatchAlarmDetails& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
329 private:
330
331 bool m_actionsEnabled{false};
332 bool m_actionsEnabledHasBeenSet = false;
333
334 Aws::Vector<Aws::String> m_alarmActions;
335 bool m_alarmActionsHasBeenSet = false;
336
337 Aws::String m_alarmArn;
338 bool m_alarmArnHasBeenSet = false;
339
340 Aws::String m_alarmConfigurationUpdatedTimestamp;
341 bool m_alarmConfigurationUpdatedTimestampHasBeenSet = false;
342
343 Aws::String m_alarmDescription;
344 bool m_alarmDescriptionHasBeenSet = false;
345
346 Aws::String m_alarmName;
347 bool m_alarmNameHasBeenSet = false;
348
349 Aws::String m_comparisonOperator;
350 bool m_comparisonOperatorHasBeenSet = false;
351
352 int m_datapointsToAlarm{0};
353 bool m_datapointsToAlarmHasBeenSet = false;
354
356 bool m_dimensionsHasBeenSet = false;
357
358 Aws::String m_evaluateLowSampleCountPercentile;
359 bool m_evaluateLowSampleCountPercentileHasBeenSet = false;
360
361 int m_evaluationPeriods{0};
362 bool m_evaluationPeriodsHasBeenSet = false;
363
364 Aws::String m_extendedStatistic;
365 bool m_extendedStatisticHasBeenSet = false;
366
367 Aws::Vector<Aws::String> m_insufficientDataActions;
368 bool m_insufficientDataActionsHasBeenSet = false;
369
370 Aws::String m_metricName;
371 bool m_metricNameHasBeenSet = false;
372
373 Aws::String m_namespace;
374 bool m_namespaceHasBeenSet = false;
375
376 Aws::Vector<Aws::String> m_okActions;
377 bool m_okActionsHasBeenSet = false;
378
379 int m_period{0};
380 bool m_periodHasBeenSet = false;
381
382 Aws::String m_statistic;
383 bool m_statisticHasBeenSet = false;
384
385 double m_threshold{0.0};
386 bool m_thresholdHasBeenSet = false;
387
388 Aws::String m_thresholdMetricId;
389 bool m_thresholdMetricIdHasBeenSet = false;
390
391 Aws::String m_treatMissingData;
392 bool m_treatMissingDataHasBeenSet = false;
393
394 Aws::String m_unit;
395 bool m_unitHasBeenSet = false;
396 };
397
398} // namespace Model
399} // namespace SecurityHub
400} // namespace Aws
AWS_SECURITYHUB_API AwsCloudWatchAlarmDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsCloudWatchAlarmDetails & WithEvaluationPeriods(int value)
AwsCloudWatchAlarmDetails & AddOkActions(OkActionsT &&value)
const Aws::Vector< Aws::String > & GetOkActions() const
AwsCloudWatchAlarmDetails & WithExtendedStatistic(ExtendedStatisticT &&value)
AwsCloudWatchAlarmDetails & WithTreatMissingData(TreatMissingDataT &&value)
AwsCloudWatchAlarmDetails & AddInsufficientDataActions(InsufficientDataActionsT &&value)
AwsCloudWatchAlarmDetails & WithAlarmActions(AlarmActionsT &&value)
void SetAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
AwsCloudWatchAlarmDetails & WithEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT &&value)
AwsCloudWatchAlarmDetails & WithComparisonOperator(ComparisonOperatorT &&value)
AwsCloudWatchAlarmDetails & WithAlarmName(AlarmNameT &&value)
const Aws::Vector< Aws::String > & GetAlarmActions() const
AwsCloudWatchAlarmDetails & WithMetricName(MetricNameT &&value)
void SetInsufficientDataActions(InsufficientDataActionsT &&value)
AWS_SECURITYHUB_API AwsCloudWatchAlarmDetails(Aws::Utils::Json::JsonView jsonValue)
AwsCloudWatchAlarmDetails & WithAlarmArn(AlarmArnT &&value)
AwsCloudWatchAlarmDetails & WithAlarmDescription(AlarmDescriptionT &&value)
AwsCloudWatchAlarmDetails & WithStatistic(StatisticT &&value)
AwsCloudWatchAlarmDetails & WithInsufficientDataActions(InsufficientDataActionsT &&value)
AwsCloudWatchAlarmDetails & WithDimensions(DimensionsT &&value)
void SetEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT &&value)
AwsCloudWatchAlarmDetails & WithActionsEnabled(bool value)
AwsCloudWatchAlarmDetails & WithOkActions(OkActionsT &&value)
AWS_SECURITYHUB_API AwsCloudWatchAlarmDetails()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
AwsCloudWatchAlarmDetails & WithThreshold(double value)
AwsCloudWatchAlarmDetails & WithNamespace(NamespaceT &&value)
AwsCloudWatchAlarmDetails & AddDimensions(DimensionsT &&value)
AwsCloudWatchAlarmDetails & AddAlarmActions(AlarmActionsT &&value)
AwsCloudWatchAlarmDetails & WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
AwsCloudWatchAlarmDetails & WithUnit(UnitT &&value)
AwsCloudWatchAlarmDetails & WithDatapointsToAlarm(int value)
AwsCloudWatchAlarmDetails & WithThresholdMetricId(ThresholdMetricIdT &&value)
const Aws::Vector< AwsCloudWatchAlarmDimensionsDetails > & GetDimensions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue