AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsCloudWatchAlarmDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsCloudWatchAlarmDimensionsDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API AwsCloudWatchAlarmDetails() = default;
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline bool GetActionsEnabled() const { return m_actionsEnabled; }
43 inline bool ActionsEnabledHasBeenSet() const { return m_actionsEnabledHasBeenSet; }
44 inline void SetActionsEnabled(bool value) {
45 m_actionsEnabledHasBeenSet = true;
46 m_actionsEnabled = value;
47 }
49 SetActionsEnabled(value);
50 return *this;
51 }
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) {
64 m_alarmActionsHasBeenSet = true;
65 m_alarmActions = std::forward<AlarmActionsT>(value);
66 }
67 template <typename AlarmActionsT = Aws::Vector<Aws::String>>
69 SetAlarmActions(std::forward<AlarmActionsT>(value));
70 return *this;
71 }
72 template <typename AlarmActionsT = Aws::String>
74 m_alarmActionsHasBeenSet = true;
75 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetAlarmArn() const { return m_alarmArn; }
85 inline bool AlarmArnHasBeenSet() const { return m_alarmArnHasBeenSet; }
86 template <typename AlarmArnT = Aws::String>
87 void SetAlarmArn(AlarmArnT&& value) {
88 m_alarmArnHasBeenSet = true;
89 m_alarmArn = std::forward<AlarmArnT>(value);
90 }
91 template <typename AlarmArnT = Aws::String>
93 SetAlarmArn(std::forward<AlarmArnT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetAlarmConfigurationUpdatedTimestamp() const { return m_alarmConfigurationUpdatedTimestamp; }
103 inline bool AlarmConfigurationUpdatedTimestampHasBeenSet() const { return m_alarmConfigurationUpdatedTimestampHasBeenSet; }
104 template <typename AlarmConfigurationUpdatedTimestampT = Aws::String>
105 void SetAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT&& value) {
106 m_alarmConfigurationUpdatedTimestampHasBeenSet = true;
107 m_alarmConfigurationUpdatedTimestamp = std::forward<AlarmConfigurationUpdatedTimestampT>(value);
108 }
109 template <typename AlarmConfigurationUpdatedTimestampT = Aws::String>
110 AwsCloudWatchAlarmDetails& WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT&& value) {
111 SetAlarmConfigurationUpdatedTimestamp(std::forward<AlarmConfigurationUpdatedTimestampT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetAlarmDescription() const { return m_alarmDescription; }
121 inline bool AlarmDescriptionHasBeenSet() const { return m_alarmDescriptionHasBeenSet; }
122 template <typename AlarmDescriptionT = Aws::String>
123 void SetAlarmDescription(AlarmDescriptionT&& value) {
124 m_alarmDescriptionHasBeenSet = true;
125 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
126 }
127 template <typename AlarmDescriptionT = Aws::String>
129 SetAlarmDescription(std::forward<AlarmDescriptionT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
140 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
141 template <typename AlarmNameT = Aws::String>
142 void SetAlarmName(AlarmNameT&& value) {
143 m_alarmNameHasBeenSet = true;
144 m_alarmName = std::forward<AlarmNameT>(value);
145 }
146 template <typename AlarmNameT = Aws::String>
148 SetAlarmName(std::forward<AlarmNameT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::String& GetComparisonOperator() const { return m_comparisonOperator; }
159 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
160 template <typename ComparisonOperatorT = Aws::String>
161 void SetComparisonOperator(ComparisonOperatorT&& value) {
162 m_comparisonOperatorHasBeenSet = true;
163 m_comparisonOperator = std::forward<ComparisonOperatorT>(value);
164 }
165 template <typename ComparisonOperatorT = Aws::String>
166 AwsCloudWatchAlarmDetails& WithComparisonOperator(ComparisonOperatorT&& value) {
167 SetComparisonOperator(std::forward<ComparisonOperatorT>(value));
168 return *this;
169 }
171
173
176 inline int GetDatapointsToAlarm() const { return m_datapointsToAlarm; }
177 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
178 inline void SetDatapointsToAlarm(int value) {
179 m_datapointsToAlarmHasBeenSet = true;
180 m_datapointsToAlarm = value;
181 }
184 return *this;
185 }
187
189
192 inline const Aws::Vector<AwsCloudWatchAlarmDimensionsDetails>& GetDimensions() const { return m_dimensions; }
193 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
194 template <typename DimensionsT = Aws::Vector<AwsCloudWatchAlarmDimensionsDetails>>
195 void SetDimensions(DimensionsT&& value) {
196 m_dimensionsHasBeenSet = true;
197 m_dimensions = std::forward<DimensionsT>(value);
198 }
199 template <typename DimensionsT = Aws::Vector<AwsCloudWatchAlarmDimensionsDetails>>
201 SetDimensions(std::forward<DimensionsT>(value));
202 return *this;
203 }
204 template <typename DimensionsT = AwsCloudWatchAlarmDimensionsDetails>
206 m_dimensionsHasBeenSet = true;
207 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
208 return *this;
209 }
211
213
220 inline const Aws::String& GetEvaluateLowSampleCountPercentile() const { return m_evaluateLowSampleCountPercentile; }
221 inline bool EvaluateLowSampleCountPercentileHasBeenSet() const { return m_evaluateLowSampleCountPercentileHasBeenSet; }
222 template <typename EvaluateLowSampleCountPercentileT = Aws::String>
223 void SetEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT&& value) {
224 m_evaluateLowSampleCountPercentileHasBeenSet = true;
225 m_evaluateLowSampleCountPercentile = std::forward<EvaluateLowSampleCountPercentileT>(value);
226 }
227 template <typename EvaluateLowSampleCountPercentileT = Aws::String>
228 AwsCloudWatchAlarmDetails& WithEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT&& value) {
229 SetEvaluateLowSampleCountPercentile(std::forward<EvaluateLowSampleCountPercentileT>(value));
230 return *this;
231 }
233
235
239 inline int GetEvaluationPeriods() const { return m_evaluationPeriods; }
240 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
241 inline void SetEvaluationPeriods(int value) {
242 m_evaluationPeriodsHasBeenSet = true;
243 m_evaluationPeriods = value;
244 }
247 return *this;
248 }
250
252
255 inline const Aws::String& GetExtendedStatistic() const { return m_extendedStatistic; }
256 inline bool ExtendedStatisticHasBeenSet() const { return m_extendedStatisticHasBeenSet; }
257 template <typename ExtendedStatisticT = Aws::String>
258 void SetExtendedStatistic(ExtendedStatisticT&& value) {
259 m_extendedStatisticHasBeenSet = true;
260 m_extendedStatistic = std::forward<ExtendedStatisticT>(value);
261 }
262 template <typename ExtendedStatisticT = Aws::String>
264 SetExtendedStatistic(std::forward<ExtendedStatisticT>(value));
265 return *this;
266 }
268
270
275 inline const Aws::Vector<Aws::String>& GetInsufficientDataActions() const { return m_insufficientDataActions; }
276 inline bool InsufficientDataActionsHasBeenSet() const { return m_insufficientDataActionsHasBeenSet; }
277 template <typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
278 void SetInsufficientDataActions(InsufficientDataActionsT&& value) {
279 m_insufficientDataActionsHasBeenSet = true;
280 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
281 }
282 template <typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
283 AwsCloudWatchAlarmDetails& WithInsufficientDataActions(InsufficientDataActionsT&& value) {
284 SetInsufficientDataActions(std::forward<InsufficientDataActionsT>(value));
285 return *this;
286 }
287 template <typename InsufficientDataActionsT = Aws::String>
288 AwsCloudWatchAlarmDetails& AddInsufficientDataActions(InsufficientDataActionsT&& value) {
289 m_insufficientDataActionsHasBeenSet = true;
290 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
291 return *this;
292 }
294
296
301 inline const Aws::String& GetMetricName() const { return m_metricName; }
302 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
303 template <typename MetricNameT = Aws::String>
304 void SetMetricName(MetricNameT&& value) {
305 m_metricNameHasBeenSet = true;
306 m_metricName = std::forward<MetricNameT>(value);
307 }
308 template <typename MetricNameT = Aws::String>
310 SetMetricName(std::forward<MetricNameT>(value));
311 return *this;
312 }
314
316
321 inline const Aws::String& GetNamespace() const { return m_namespace; }
322 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
323 template <typename NamespaceT = Aws::String>
324 void SetNamespace(NamespaceT&& value) {
325 m_namespaceHasBeenSet = true;
326 m_namespace = std::forward<NamespaceT>(value);
327 }
328 template <typename NamespaceT = Aws::String>
330 SetNamespace(std::forward<NamespaceT>(value));
331 return *this;
332 }
334
336
340 inline const Aws::Vector<Aws::String>& GetOkActions() const { return m_okActions; }
341 inline bool OkActionsHasBeenSet() const { return m_okActionsHasBeenSet; }
342 template <typename OkActionsT = Aws::Vector<Aws::String>>
343 void SetOkActions(OkActionsT&& value) {
344 m_okActionsHasBeenSet = true;
345 m_okActions = std::forward<OkActionsT>(value);
346 }
347 template <typename OkActionsT = Aws::Vector<Aws::String>>
349 SetOkActions(std::forward<OkActionsT>(value));
350 return *this;
351 }
352 template <typename OkActionsT = Aws::String>
354 m_okActionsHasBeenSet = true;
355 m_okActions.emplace_back(std::forward<OkActionsT>(value));
356 return *this;
357 }
359
361
365 inline int GetPeriod() const { return m_period; }
366 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
367 inline void SetPeriod(int value) {
368 m_periodHasBeenSet = true;
369 m_period = value;
370 }
372 SetPeriod(value);
373 return *this;
374 }
376
378
386 inline const Aws::String& GetStatistic() const { return m_statistic; }
387 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
388 template <typename StatisticT = Aws::String>
389 void SetStatistic(StatisticT&& value) {
390 m_statisticHasBeenSet = true;
391 m_statistic = std::forward<StatisticT>(value);
392 }
393 template <typename StatisticT = Aws::String>
395 SetStatistic(std::forward<StatisticT>(value));
396 return *this;
397 }
399
401
404 inline double GetThreshold() const { return m_threshold; }
405 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
406 inline void SetThreshold(double value) {
407 m_thresholdHasBeenSet = true;
408 m_threshold = value;
409 }
411 SetThreshold(value);
412 return *this;
413 }
415
417
422 inline const Aws::String& GetThresholdMetricId() const { return m_thresholdMetricId; }
423 inline bool ThresholdMetricIdHasBeenSet() const { return m_thresholdMetricIdHasBeenSet; }
424 template <typename ThresholdMetricIdT = Aws::String>
425 void SetThresholdMetricId(ThresholdMetricIdT&& value) {
426 m_thresholdMetricIdHasBeenSet = true;
427 m_thresholdMetricId = std::forward<ThresholdMetricIdT>(value);
428 }
429 template <typename ThresholdMetricIdT = Aws::String>
431 SetThresholdMetricId(std::forward<ThresholdMetricIdT>(value));
432 return *this;
433 }
435
437
440 inline const Aws::String& GetTreatMissingData() const { return m_treatMissingData; }
441 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
442 template <typename TreatMissingDataT = Aws::String>
443 void SetTreatMissingData(TreatMissingDataT&& value) {
444 m_treatMissingDataHasBeenSet = true;
445 m_treatMissingData = std::forward<TreatMissingDataT>(value);
446 }
447 template <typename TreatMissingDataT = Aws::String>
449 SetTreatMissingData(std::forward<TreatMissingDataT>(value));
450 return *this;
451 }
453
455
458 inline const Aws::String& GetUnit() const { return m_unit; }
459 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
460 template <typename UnitT = Aws::String>
461 void SetUnit(UnitT&& value) {
462 m_unitHasBeenSet = true;
463 m_unit = std::forward<UnitT>(value);
464 }
465 template <typename UnitT = Aws::String>
467 SetUnit(std::forward<UnitT>(value));
468 return *this;
469 }
471 private:
472 bool m_actionsEnabled{false};
473
474 Aws::Vector<Aws::String> m_alarmActions;
475
476 Aws::String m_alarmArn;
477
478 Aws::String m_alarmConfigurationUpdatedTimestamp;
479
480 Aws::String m_alarmDescription;
481
482 Aws::String m_alarmName;
483
484 Aws::String m_comparisonOperator;
485
486 int m_datapointsToAlarm{0};
487
489
490 Aws::String m_evaluateLowSampleCountPercentile;
491
492 int m_evaluationPeriods{0};
493
494 Aws::String m_extendedStatistic;
495
496 Aws::Vector<Aws::String> m_insufficientDataActions;
497
498 Aws::String m_metricName;
499
500 Aws::String m_namespace;
501
502 Aws::Vector<Aws::String> m_okActions;
503
504 int m_period{0};
505
506 Aws::String m_statistic;
507
508 double m_threshold{0.0};
509
510 Aws::String m_thresholdMetricId;
511
512 Aws::String m_treatMissingData;
513
514 Aws::String m_unit;
515 bool m_actionsEnabledHasBeenSet = false;
516 bool m_alarmActionsHasBeenSet = false;
517 bool m_alarmArnHasBeenSet = false;
518 bool m_alarmConfigurationUpdatedTimestampHasBeenSet = false;
519 bool m_alarmDescriptionHasBeenSet = false;
520 bool m_alarmNameHasBeenSet = false;
521 bool m_comparisonOperatorHasBeenSet = false;
522 bool m_datapointsToAlarmHasBeenSet = false;
523 bool m_dimensionsHasBeenSet = false;
524 bool m_evaluateLowSampleCountPercentileHasBeenSet = false;
525 bool m_evaluationPeriodsHasBeenSet = false;
526 bool m_extendedStatisticHasBeenSet = false;
527 bool m_insufficientDataActionsHasBeenSet = false;
528 bool m_metricNameHasBeenSet = false;
529 bool m_namespaceHasBeenSet = false;
530 bool m_okActionsHasBeenSet = false;
531 bool m_periodHasBeenSet = false;
532 bool m_statisticHasBeenSet = false;
533 bool m_thresholdHasBeenSet = false;
534 bool m_thresholdMetricIdHasBeenSet = false;
535 bool m_treatMissingDataHasBeenSet = false;
536 bool m_unitHasBeenSet = false;
537};
538
539} // namespace Model
540} // namespace SecurityHub
541} // 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