AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Alarm.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/lightsail/model/MonitoredResourceInfo.h>
13#include <aws/lightsail/model/ComparisonOperator.h>
14#include <aws/lightsail/model/TreatMissingData.h>
15#include <aws/lightsail/model/MetricStatistic.h>
16#include <aws/lightsail/model/MetricName.h>
17#include <aws/lightsail/model/AlarmState.h>
18#include <aws/lightsail/model/MetricUnit.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20#include <aws/lightsail/model/ContactProtocol.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace Lightsail
34{
35namespace Model
36{
37
46 class Alarm
47 {
48 public:
49 AWS_LIGHTSAIL_API Alarm();
50 AWS_LIGHTSAIL_API Alarm(Aws::Utils::Json::JsonView jsonValue);
51 AWS_LIGHTSAIL_API Alarm& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline Alarm& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline Alarm& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline Alarm& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const Aws::String& GetArn() const{ return m_arn; }
74 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
75 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
76 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
77 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
78 inline Alarm& WithArn(const Aws::String& value) { SetArn(value); return *this;}
79 inline Alarm& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
80 inline Alarm& WithArn(const char* value) { SetArn(value); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
88 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
89 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
90 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
91 inline Alarm& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
92 inline Alarm& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
94
96
99 inline const ResourceLocation& GetLocation() const{ return m_location; }
100 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
101 inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
102 inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
103 inline Alarm& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
104 inline Alarm& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
106
108
111 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
112 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
113 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
114 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
115 inline Alarm& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
116 inline Alarm& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
118
120
125 inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
126 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
127 inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
128 inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
129 inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
130 inline Alarm& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
131 inline Alarm& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
132 inline Alarm& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
134
136
140 inline const MonitoredResourceInfo& GetMonitoredResourceInfo() const{ return m_monitoredResourceInfo; }
141 inline bool MonitoredResourceInfoHasBeenSet() const { return m_monitoredResourceInfoHasBeenSet; }
142 inline void SetMonitoredResourceInfo(const MonitoredResourceInfo& value) { m_monitoredResourceInfoHasBeenSet = true; m_monitoredResourceInfo = value; }
143 inline void SetMonitoredResourceInfo(MonitoredResourceInfo&& value) { m_monitoredResourceInfoHasBeenSet = true; m_monitoredResourceInfo = std::move(value); }
145 inline Alarm& WithMonitoredResourceInfo(MonitoredResourceInfo&& value) { SetMonitoredResourceInfo(std::move(value)); return *this;}
147
149
153 inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
154 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
155 inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
156 inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
157 inline Alarm& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
158 inline Alarm& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;}
160
162
166 inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
167 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
168 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
169 inline Alarm& WithEvaluationPeriods(int value) { SetEvaluationPeriods(value); return *this;}
171
173
176 inline int GetPeriod() const{ return m_period; }
177 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
178 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
179 inline Alarm& WithPeriod(int value) { SetPeriod(value); return *this;}
181
183
186 inline double GetThreshold() const{ return m_threshold; }
187 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
188 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
189 inline Alarm& WithThreshold(double value) { SetThreshold(value); return *this;}
191
193
197 inline int GetDatapointsToAlarm() const{ return m_datapointsToAlarm; }
198 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
199 inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarmHasBeenSet = true; m_datapointsToAlarm = value; }
200 inline Alarm& WithDatapointsToAlarm(int value) { SetDatapointsToAlarm(value); return *this;}
202
204
216 inline const TreatMissingData& GetTreatMissingData() const{ return m_treatMissingData; }
217 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
218 inline void SetTreatMissingData(const TreatMissingData& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = value; }
219 inline void SetTreatMissingData(TreatMissingData&& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = std::move(value); }
220 inline Alarm& WithTreatMissingData(const TreatMissingData& value) { SetTreatMissingData(value); return *this;}
221 inline Alarm& WithTreatMissingData(TreatMissingData&& value) { SetTreatMissingData(std::move(value)); return *this;}
223
225
242 inline const MetricStatistic& GetStatistic() const{ return m_statistic; }
243 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
244 inline void SetStatistic(const MetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
245 inline void SetStatistic(MetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
246 inline Alarm& WithStatistic(const MetricStatistic& value) { SetStatistic(value); return *this;}
247 inline Alarm& WithStatistic(MetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
249
251
254 inline const MetricName& GetMetricName() const{ return m_metricName; }
255 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
256 inline void SetMetricName(const MetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
257 inline void SetMetricName(MetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
258 inline Alarm& WithMetricName(const MetricName& value) { SetMetricName(value); return *this;}
259 inline Alarm& WithMetricName(MetricName&& value) { SetMetricName(std::move(value)); return *this;}
261
263
271 inline const AlarmState& GetState() const{ return m_state; }
272 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
273 inline void SetState(const AlarmState& value) { m_stateHasBeenSet = true; m_state = value; }
274 inline void SetState(AlarmState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
275 inline Alarm& WithState(const AlarmState& value) { SetState(value); return *this;}
276 inline Alarm& WithState(AlarmState&& value) { SetState(std::move(value)); return *this;}
278
280
283 inline const MetricUnit& GetUnit() const{ return m_unit; }
284 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
285 inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
286 inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
287 inline Alarm& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
288 inline Alarm& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
290
292
296 inline const Aws::Vector<ContactProtocol>& GetContactProtocols() const{ return m_contactProtocols; }
297 inline bool ContactProtocolsHasBeenSet() const { return m_contactProtocolsHasBeenSet; }
298 inline void SetContactProtocols(const Aws::Vector<ContactProtocol>& value) { m_contactProtocolsHasBeenSet = true; m_contactProtocols = value; }
299 inline void SetContactProtocols(Aws::Vector<ContactProtocol>&& value) { m_contactProtocolsHasBeenSet = true; m_contactProtocols = std::move(value); }
300 inline Alarm& WithContactProtocols(const Aws::Vector<ContactProtocol>& value) { SetContactProtocols(value); return *this;}
301 inline Alarm& WithContactProtocols(Aws::Vector<ContactProtocol>&& value) { SetContactProtocols(std::move(value)); return *this;}
302 inline Alarm& AddContactProtocols(const ContactProtocol& value) { m_contactProtocolsHasBeenSet = true; m_contactProtocols.push_back(value); return *this; }
303 inline Alarm& AddContactProtocols(ContactProtocol&& value) { m_contactProtocolsHasBeenSet = true; m_contactProtocols.push_back(std::move(value)); return *this; }
305
307
310 inline const Aws::Vector<AlarmState>& GetNotificationTriggers() const{ return m_notificationTriggers; }
311 inline bool NotificationTriggersHasBeenSet() const { return m_notificationTriggersHasBeenSet; }
312 inline void SetNotificationTriggers(const Aws::Vector<AlarmState>& value) { m_notificationTriggersHasBeenSet = true; m_notificationTriggers = value; }
313 inline void SetNotificationTriggers(Aws::Vector<AlarmState>&& value) { m_notificationTriggersHasBeenSet = true; m_notificationTriggers = std::move(value); }
315 inline Alarm& WithNotificationTriggers(Aws::Vector<AlarmState>&& value) { SetNotificationTriggers(std::move(value)); return *this;}
316 inline Alarm& AddNotificationTriggers(const AlarmState& value) { m_notificationTriggersHasBeenSet = true; m_notificationTriggers.push_back(value); return *this; }
317 inline Alarm& AddNotificationTriggers(AlarmState&& value) { m_notificationTriggersHasBeenSet = true; m_notificationTriggers.push_back(std::move(value)); return *this; }
319
321
324 inline bool GetNotificationEnabled() const{ return m_notificationEnabled; }
325 inline bool NotificationEnabledHasBeenSet() const { return m_notificationEnabledHasBeenSet; }
326 inline void SetNotificationEnabled(bool value) { m_notificationEnabledHasBeenSet = true; m_notificationEnabled = value; }
327 inline Alarm& WithNotificationEnabled(bool value) { SetNotificationEnabled(value); return *this;}
329 private:
330
331 Aws::String m_name;
332 bool m_nameHasBeenSet = false;
333
334 Aws::String m_arn;
335 bool m_arnHasBeenSet = false;
336
337 Aws::Utils::DateTime m_createdAt;
338 bool m_createdAtHasBeenSet = false;
339
340 ResourceLocation m_location;
341 bool m_locationHasBeenSet = false;
342
343 ResourceType m_resourceType;
344 bool m_resourceTypeHasBeenSet = false;
345
346 Aws::String m_supportCode;
347 bool m_supportCodeHasBeenSet = false;
348
349 MonitoredResourceInfo m_monitoredResourceInfo;
350 bool m_monitoredResourceInfoHasBeenSet = false;
351
352 ComparisonOperator m_comparisonOperator;
353 bool m_comparisonOperatorHasBeenSet = false;
354
355 int m_evaluationPeriods;
356 bool m_evaluationPeriodsHasBeenSet = false;
357
358 int m_period;
359 bool m_periodHasBeenSet = false;
360
361 double m_threshold;
362 bool m_thresholdHasBeenSet = false;
363
364 int m_datapointsToAlarm;
365 bool m_datapointsToAlarmHasBeenSet = false;
366
367 TreatMissingData m_treatMissingData;
368 bool m_treatMissingDataHasBeenSet = false;
369
370 MetricStatistic m_statistic;
371 bool m_statisticHasBeenSet = false;
372
373 MetricName m_metricName;
374 bool m_metricNameHasBeenSet = false;
375
376 AlarmState m_state;
377 bool m_stateHasBeenSet = false;
378
379 MetricUnit m_unit;
380 bool m_unitHasBeenSet = false;
381
382 Aws::Vector<ContactProtocol> m_contactProtocols;
383 bool m_contactProtocolsHasBeenSet = false;
384
385 Aws::Vector<AlarmState> m_notificationTriggers;
386 bool m_notificationTriggersHasBeenSet = false;
387
388 bool m_notificationEnabled;
389 bool m_notificationEnabledHasBeenSet = false;
390 };
391
392} // namespace Model
393} // namespace Lightsail
394} // namespace Aws
const MetricStatistic & GetStatistic() const
Definition Alarm.h:242
bool CreatedAtHasBeenSet() const
Definition Alarm.h:88
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Alarm.h:90
void SetThreshold(double value)
Definition Alarm.h:188
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Alarm & WithNotificationTriggers(const Aws::Vector< AlarmState > &value)
Definition Alarm.h:314
Alarm & WithArn(const char *value)
Definition Alarm.h:80
Alarm & WithSupportCode(const Aws::String &value)
Definition Alarm.h:130
void SetName(const Aws::String &value)
Definition Alarm.h:61
AWS_LIGHTSAIL_API Alarm()
double GetThreshold() const
Definition Alarm.h:186
bool GetNotificationEnabled() const
Definition Alarm.h:324
void SetNotificationTriggers(const Aws::Vector< AlarmState > &value)
Definition Alarm.h:312
bool ThresholdHasBeenSet() const
Definition Alarm.h:187
void SetUnit(const MetricUnit &value)
Definition Alarm.h:285
void SetResourceType(ResourceType &&value)
Definition Alarm.h:114
Alarm & WithUnit(const MetricUnit &value)
Definition Alarm.h:287
void SetName(Aws::String &&value)
Definition Alarm.h:62
Alarm & WithLocation(const ResourceLocation &value)
Definition Alarm.h:103
bool LocationHasBeenSet() const
Definition Alarm.h:100
const TreatMissingData & GetTreatMissingData() const
Definition Alarm.h:216
void SetMetricName(const MetricName &value)
Definition Alarm.h:256
void SetNotificationEnabled(bool value)
Definition Alarm.h:326
void SetName(const char *value)
Definition Alarm.h:63
Alarm & WithContactProtocols(const Aws::Vector< ContactProtocol > &value)
Definition Alarm.h:300
Alarm & WithMonitoredResourceInfo(const MonitoredResourceInfo &value)
Definition Alarm.h:144
Alarm & WithState(AlarmState &&value)
Definition Alarm.h:276
const Aws::String & GetName() const
Definition Alarm.h:59
const AlarmState & GetState() const
Definition Alarm.h:271
void SetState(const AlarmState &value)
Definition Alarm.h:273
Alarm & WithComparisonOperator(ComparisonOperator &&value)
Definition Alarm.h:158
bool TreatMissingDataHasBeenSet() const
Definition Alarm.h:217
void SetStatistic(MetricStatistic &&value)
Definition Alarm.h:245
const Aws::Vector< AlarmState > & GetNotificationTriggers() const
Definition Alarm.h:310
Alarm & AddContactProtocols(const ContactProtocol &value)
Definition Alarm.h:302
Alarm & WithName(const Aws::String &value)
Definition Alarm.h:64
Alarm & WithSupportCode(const char *value)
Definition Alarm.h:132
Alarm & WithPeriod(int value)
Definition Alarm.h:179
void SetMonitoredResourceInfo(MonitoredResourceInfo &&value)
Definition Alarm.h:143
void SetArn(const char *value)
Definition Alarm.h:77
void SetStatistic(const MetricStatistic &value)
Definition Alarm.h:244
void SetSupportCode(const char *value)
Definition Alarm.h:129
void SetPeriod(int value)
Definition Alarm.h:178
Alarm & WithNotificationTriggers(Aws::Vector< AlarmState > &&value)
Definition Alarm.h:315
bool MetricNameHasBeenSet() const
Definition Alarm.h:255
int GetDatapointsToAlarm() const
Definition Alarm.h:197
void SetComparisonOperator(const ComparisonOperator &value)
Definition Alarm.h:155
bool NameHasBeenSet() const
Definition Alarm.h:60
void SetDatapointsToAlarm(int value)
Definition Alarm.h:199
Alarm & WithNotificationEnabled(bool value)
Definition Alarm.h:327
void SetMetricName(MetricName &&value)
Definition Alarm.h:257
AWS_LIGHTSAIL_API Alarm(Aws::Utils::Json::JsonView jsonValue)
bool DatapointsToAlarmHasBeenSet() const
Definition Alarm.h:198
const MonitoredResourceInfo & GetMonitoredResourceInfo() const
Definition Alarm.h:140
bool UnitHasBeenSet() const
Definition Alarm.h:284
bool EvaluationPeriodsHasBeenSet() const
Definition Alarm.h:167
Alarm & WithArn(Aws::String &&value)
Definition Alarm.h:79
bool ResourceTypeHasBeenSet() const
Definition Alarm.h:112
Alarm & WithResourceType(const ResourceType &value)
Definition Alarm.h:115
Alarm & WithMetricName(MetricName &&value)
Definition Alarm.h:259
Alarm & WithComparisonOperator(const ComparisonOperator &value)
Definition Alarm.h:157
Alarm & WithContactProtocols(Aws::Vector< ContactProtocol > &&value)
Definition Alarm.h:301
void SetEvaluationPeriods(int value)
Definition Alarm.h:168
void SetLocation(ResourceLocation &&value)
Definition Alarm.h:102
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Alarm.h:87
Alarm & AddContactProtocols(ContactProtocol &&value)
Definition Alarm.h:303
const Aws::String & GetSupportCode() const
Definition Alarm.h:125
Alarm & WithTreatMissingData(TreatMissingData &&value)
Definition Alarm.h:221
void SetState(AlarmState &&value)
Definition Alarm.h:274
void SetComparisonOperator(ComparisonOperator &&value)
Definition Alarm.h:156
Alarm & AddNotificationTriggers(AlarmState &&value)
Definition Alarm.h:317
Alarm & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Alarm.h:92
Alarm & WithStatistic(MetricStatistic &&value)
Definition Alarm.h:247
void SetResourceType(const ResourceType &value)
Definition Alarm.h:113
void SetLocation(const ResourceLocation &value)
Definition Alarm.h:101
const ResourceType & GetResourceType() const
Definition Alarm.h:111
int GetEvaluationPeriods() const
Definition Alarm.h:166
void SetContactProtocols(Aws::Vector< ContactProtocol > &&value)
Definition Alarm.h:299
const MetricName & GetMetricName() const
Definition Alarm.h:254
Alarm & WithSupportCode(Aws::String &&value)
Definition Alarm.h:131
Alarm & WithTreatMissingData(const TreatMissingData &value)
Definition Alarm.h:220
Alarm & WithResourceType(ResourceType &&value)
Definition Alarm.h:116
void SetUnit(MetricUnit &&value)
Definition Alarm.h:286
Alarm & WithEvaluationPeriods(int value)
Definition Alarm.h:169
Alarm & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Alarm.h:91
Alarm & WithStatistic(const MetricStatistic &value)
Definition Alarm.h:246
void SetSupportCode(const Aws::String &value)
Definition Alarm.h:127
Alarm & WithName(Aws::String &&value)
Definition Alarm.h:65
Alarm & WithThreshold(double value)
Definition Alarm.h:189
bool ArnHasBeenSet() const
Definition Alarm.h:74
const Aws::Vector< ContactProtocol > & GetContactProtocols() const
Definition Alarm.h:296
bool StatisticHasBeenSet() const
Definition Alarm.h:243
void SetNotificationTriggers(Aws::Vector< AlarmState > &&value)
Definition Alarm.h:313
bool ComparisonOperatorHasBeenSet() const
Definition Alarm.h:154
bool MonitoredResourceInfoHasBeenSet() const
Definition Alarm.h:141
Alarm & WithMetricName(const MetricName &value)
Definition Alarm.h:258
void SetTreatMissingData(const TreatMissingData &value)
Definition Alarm.h:218
Alarm & WithMonitoredResourceInfo(MonitoredResourceInfo &&value)
Definition Alarm.h:145
bool NotificationEnabledHasBeenSet() const
Definition Alarm.h:325
void SetMonitoredResourceInfo(const MonitoredResourceInfo &value)
Definition Alarm.h:142
const ComparisonOperator & GetComparisonOperator() const
Definition Alarm.h:153
const Aws::String & GetArn() const
Definition Alarm.h:73
AWS_LIGHTSAIL_API Alarm & operator=(Aws::Utils::Json::JsonView jsonValue)
Alarm & WithDatapointsToAlarm(int value)
Definition Alarm.h:200
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Alarm.h:89
bool NotificationTriggersHasBeenSet() const
Definition Alarm.h:311
bool SupportCodeHasBeenSet() const
Definition Alarm.h:126
Alarm & WithLocation(ResourceLocation &&value)
Definition Alarm.h:104
void SetSupportCode(Aws::String &&value)
Definition Alarm.h:128
Alarm & AddNotificationTriggers(const AlarmState &value)
Definition Alarm.h:316
Alarm & WithArn(const Aws::String &value)
Definition Alarm.h:78
bool PeriodHasBeenSet() const
Definition Alarm.h:177
const ResourceLocation & GetLocation() const
Definition Alarm.h:99
Alarm & WithUnit(MetricUnit &&value)
Definition Alarm.h:288
bool StateHasBeenSet() const
Definition Alarm.h:272
void SetArn(const Aws::String &value)
Definition Alarm.h:75
void SetContactProtocols(const Aws::Vector< ContactProtocol > &value)
Definition Alarm.h:298
Alarm & WithName(const char *value)
Definition Alarm.h:66
Alarm & WithState(const AlarmState &value)
Definition Alarm.h:275
const MetricUnit & GetUnit() const
Definition Alarm.h:283
bool ContactProtocolsHasBeenSet() const
Definition Alarm.h:297
void SetTreatMissingData(TreatMissingData &&value)
Definition Alarm.h:219
void SetArn(Aws::String &&value)
Definition Alarm.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue