AWS SDK for C++  1.9.104
AWS SDK for C++
Alarm.h
Go to the documentation of this file.
1 
6 #pragma once
21 #include <utility>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30  class JsonView;
31 } // namespace Json
32 } // namespace Utils
33 namespace Lightsail
34 {
35 namespace Model
36 {
37 
47  {
48  public:
49  Alarm();
53 
54 
58  inline const Aws::String& GetName() const{ return m_name; }
59 
63  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 
68  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
69 
73  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
74 
78  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
79 
83  inline Alarm& WithName(const Aws::String& value) { SetName(value); return *this;}
84 
88  inline Alarm& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
89 
93  inline Alarm& WithName(const char* value) { SetName(value); return *this;}
94 
95 
99  inline const Aws::String& GetArn() const{ return m_arn; }
100 
104  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
105 
109  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
110 
114  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
115 
119  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
120 
124  inline Alarm& WithArn(const Aws::String& value) { SetArn(value); return *this;}
125 
129  inline Alarm& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
130 
134  inline Alarm& WithArn(const char* value) { SetArn(value); return *this;}
135 
136 
140  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
141 
145  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
146 
150  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
151 
155  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
156 
160  inline Alarm& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
161 
165  inline Alarm& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
166 
167 
171  inline const ResourceLocation& GetLocation() const{ return m_location; }
172 
176  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
177 
181  inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
182 
186  inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
187 
191  inline Alarm& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
192 
196  inline Alarm& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
197 
198 
202  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
203 
207  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
208 
212  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
213 
217  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
218 
222  inline Alarm& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
223 
227  inline Alarm& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
228 
229 
235  inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
236 
242  inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
243 
249  inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
250 
256  inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
257 
263  inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
264 
270  inline Alarm& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
271 
277  inline Alarm& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
278 
284  inline Alarm& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
285 
286 
291  inline const MonitoredResourceInfo& GetMonitoredResourceInfo() const{ return m_monitoredResourceInfo; }
292 
297  inline bool MonitoredResourceInfoHasBeenSet() const { return m_monitoredResourceInfoHasBeenSet; }
298 
303  inline void SetMonitoredResourceInfo(const MonitoredResourceInfo& value) { m_monitoredResourceInfoHasBeenSet = true; m_monitoredResourceInfo = value; }
304 
309  inline void SetMonitoredResourceInfo(MonitoredResourceInfo&& value) { m_monitoredResourceInfoHasBeenSet = true; m_monitoredResourceInfo = std::move(value); }
310 
315  inline Alarm& WithMonitoredResourceInfo(const MonitoredResourceInfo& value) { SetMonitoredResourceInfo(value); return *this;}
316 
321  inline Alarm& WithMonitoredResourceInfo(MonitoredResourceInfo&& value) { SetMonitoredResourceInfo(std::move(value)); return *this;}
322 
323 
328  inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
329 
334  inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
335 
340  inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
341 
346  inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
347 
352  inline Alarm& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
353 
358  inline Alarm& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;}
359 
360 
365  inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
366 
371  inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
372 
377  inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
378 
383  inline Alarm& WithEvaluationPeriods(int value) { SetEvaluationPeriods(value); return *this;}
384 
385 
389  inline int GetPeriod() const{ return m_period; }
390 
394  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
395 
399  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
400 
404  inline Alarm& WithPeriod(int value) { SetPeriod(value); return *this;}
405 
406 
410  inline double GetThreshold() const{ return m_threshold; }
411 
415  inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
416 
420  inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
421 
425  inline Alarm& WithThreshold(double value) { SetThreshold(value); return *this;}
426 
427 
432  inline int GetDatapointsToAlarm() const{ return m_datapointsToAlarm; }
433 
438  inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
439 
444  inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarmHasBeenSet = true; m_datapointsToAlarm = value; }
445 
450  inline Alarm& WithDatapointsToAlarm(int value) { SetDatapointsToAlarm(value); return *this;}
451 
452 
465  inline const TreatMissingData& GetTreatMissingData() const{ return m_treatMissingData; }
466 
479  inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
480 
493  inline void SetTreatMissingData(const TreatMissingData& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = value; }
494 
507  inline void SetTreatMissingData(TreatMissingData&& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = std::move(value); }
508 
521  inline Alarm& WithTreatMissingData(const TreatMissingData& value) { SetTreatMissingData(value); return *this;}
522 
535  inline Alarm& WithTreatMissingData(TreatMissingData&& value) { SetTreatMissingData(std::move(value)); return *this;}
536 
537 
555  inline const MetricStatistic& GetStatistic() const{ return m_statistic; }
556 
574  inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
575 
593  inline void SetStatistic(const MetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
594 
612  inline void SetStatistic(MetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
613 
631  inline Alarm& WithStatistic(const MetricStatistic& value) { SetStatistic(value); return *this;}
632 
650  inline Alarm& WithStatistic(MetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
651 
652 
656  inline const MetricName& GetMetricName() const{ return m_metricName; }
657 
661  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
662 
666  inline void SetMetricName(const MetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
667 
671  inline void SetMetricName(MetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
672 
676  inline Alarm& WithMetricName(const MetricName& value) { SetMetricName(value); return *this;}
677 
681  inline Alarm& WithMetricName(MetricName&& value) { SetMetricName(std::move(value)); return *this;}
682 
683 
692  inline const AlarmState& GetState() const{ return m_state; }
693 
702  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
703 
712  inline void SetState(const AlarmState& value) { m_stateHasBeenSet = true; m_state = value; }
713 
722  inline void SetState(AlarmState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
723 
732  inline Alarm& WithState(const AlarmState& value) { SetState(value); return *this;}
733 
742  inline Alarm& WithState(AlarmState&& value) { SetState(std::move(value)); return *this;}
743 
744 
748  inline const MetricUnit& GetUnit() const{ return m_unit; }
749 
753  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
754 
758  inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
759 
763  inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
764 
768  inline Alarm& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
769 
773  inline Alarm& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
774 
775 
780  inline const Aws::Vector<ContactProtocol>& GetContactProtocols() const{ return m_contactProtocols; }
781 
786  inline bool ContactProtocolsHasBeenSet() const { return m_contactProtocolsHasBeenSet; }
787 
792  inline void SetContactProtocols(const Aws::Vector<ContactProtocol>& value) { m_contactProtocolsHasBeenSet = true; m_contactProtocols = value; }
793 
798  inline void SetContactProtocols(Aws::Vector<ContactProtocol>&& value) { m_contactProtocolsHasBeenSet = true; m_contactProtocols = std::move(value); }
799 
804  inline Alarm& WithContactProtocols(const Aws::Vector<ContactProtocol>& value) { SetContactProtocols(value); return *this;}
805 
810  inline Alarm& WithContactProtocols(Aws::Vector<ContactProtocol>&& value) { SetContactProtocols(std::move(value)); return *this;}
811 
816  inline Alarm& AddContactProtocols(const ContactProtocol& value) { m_contactProtocolsHasBeenSet = true; m_contactProtocols.push_back(value); return *this; }
817 
822  inline Alarm& AddContactProtocols(ContactProtocol&& value) { m_contactProtocolsHasBeenSet = true; m_contactProtocols.push_back(std::move(value)); return *this; }
823 
824 
828  inline const Aws::Vector<AlarmState>& GetNotificationTriggers() const{ return m_notificationTriggers; }
829 
833  inline bool NotificationTriggersHasBeenSet() const { return m_notificationTriggersHasBeenSet; }
834 
838  inline void SetNotificationTriggers(const Aws::Vector<AlarmState>& value) { m_notificationTriggersHasBeenSet = true; m_notificationTriggers = value; }
839 
843  inline void SetNotificationTriggers(Aws::Vector<AlarmState>&& value) { m_notificationTriggersHasBeenSet = true; m_notificationTriggers = std::move(value); }
844 
848  inline Alarm& WithNotificationTriggers(const Aws::Vector<AlarmState>& value) { SetNotificationTriggers(value); return *this;}
849 
853  inline Alarm& WithNotificationTriggers(Aws::Vector<AlarmState>&& value) { SetNotificationTriggers(std::move(value)); return *this;}
854 
858  inline Alarm& AddNotificationTriggers(const AlarmState& value) { m_notificationTriggersHasBeenSet = true; m_notificationTriggers.push_back(value); return *this; }
859 
863  inline Alarm& AddNotificationTriggers(AlarmState&& value) { m_notificationTriggersHasBeenSet = true; m_notificationTriggers.push_back(std::move(value)); return *this; }
864 
865 
869  inline bool GetNotificationEnabled() const{ return m_notificationEnabled; }
870 
874  inline bool NotificationEnabledHasBeenSet() const { return m_notificationEnabledHasBeenSet; }
875 
879  inline void SetNotificationEnabled(bool value) { m_notificationEnabledHasBeenSet = true; m_notificationEnabled = value; }
880 
884  inline Alarm& WithNotificationEnabled(bool value) { SetNotificationEnabled(value); return *this;}
885 
886  private:
887 
888  Aws::String m_name;
889  bool m_nameHasBeenSet;
890 
891  Aws::String m_arn;
892  bool m_arnHasBeenSet;
893 
894  Aws::Utils::DateTime m_createdAt;
895  bool m_createdAtHasBeenSet;
896 
897  ResourceLocation m_location;
898  bool m_locationHasBeenSet;
899 
900  ResourceType m_resourceType;
901  bool m_resourceTypeHasBeenSet;
902 
903  Aws::String m_supportCode;
904  bool m_supportCodeHasBeenSet;
905 
906  MonitoredResourceInfo m_monitoredResourceInfo;
907  bool m_monitoredResourceInfoHasBeenSet;
908 
909  ComparisonOperator m_comparisonOperator;
910  bool m_comparisonOperatorHasBeenSet;
911 
912  int m_evaluationPeriods;
913  bool m_evaluationPeriodsHasBeenSet;
914 
915  int m_period;
916  bool m_periodHasBeenSet;
917 
918  double m_threshold;
919  bool m_thresholdHasBeenSet;
920 
921  int m_datapointsToAlarm;
922  bool m_datapointsToAlarmHasBeenSet;
923 
924  TreatMissingData m_treatMissingData;
925  bool m_treatMissingDataHasBeenSet;
926 
927  MetricStatistic m_statistic;
928  bool m_statisticHasBeenSet;
929 
930  MetricName m_metricName;
931  bool m_metricNameHasBeenSet;
932 
933  AlarmState m_state;
934  bool m_stateHasBeenSet;
935 
936  MetricUnit m_unit;
937  bool m_unitHasBeenSet;
938 
939  Aws::Vector<ContactProtocol> m_contactProtocols;
940  bool m_contactProtocolsHasBeenSet;
941 
942  Aws::Vector<AlarmState> m_notificationTriggers;
943  bool m_notificationTriggersHasBeenSet;
944 
945  bool m_notificationEnabled;
946  bool m_notificationEnabledHasBeenSet;
947  };
948 
949 } // namespace Model
950 } // namespace Lightsail
951 } // namespace Aws
Aws::Lightsail::Model::Alarm::SetStatistic
void SetStatistic(const MetricStatistic &value)
Definition: Alarm.h:593
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::Alarm::WithMonitoredResourceInfo
Alarm & WithMonitoredResourceInfo(MonitoredResourceInfo &&value)
Definition: Alarm.h:321
Aws::Lightsail::Model::Alarm::StateHasBeenSet
bool StateHasBeenSet() const
Definition: Alarm.h:702
Aws::Lightsail::Model::MetricName
MetricName
Definition: MetricName.h:17
Aws::Lightsail::Model::Alarm::SetUnit
void SetUnit(MetricUnit &&value)
Definition: Alarm.h:763
Aws::Lightsail::Model::Alarm::WithArn
Alarm & WithArn(const Aws::String &value)
Definition: Alarm.h:124
Aws::Lightsail::Model::Alarm::WithComparisonOperator
Alarm & WithComparisonOperator(ComparisonOperator &&value)
Definition: Alarm.h:358
Aws::Lightsail::Model::MonitoredResourceInfo
Definition: MonitoredResourceInfo.h:36
Aws::Lightsail::Model::Alarm::WithStatistic
Alarm & WithStatistic(MetricStatistic &&value)
Definition: Alarm.h:650
Aws::Lightsail::Model::Alarm::WithTreatMissingData
Alarm & WithTreatMissingData(TreatMissingData &&value)
Definition: Alarm.h:535
ResourceType.h
Aws::Lightsail::Model::TreatMissingData
TreatMissingData
Definition: TreatMissingData.h:17
Aws::Lightsail::Model::Alarm::WithMetricName
Alarm & WithMetricName(const MetricName &value)
Definition: Alarm.h:676
Aws::Lightsail::Model::Alarm::GetMetricName
const MetricName & GetMetricName() const
Definition: Alarm.h:656
ContactProtocol.h
Aws::Lightsail::Model::Alarm::SetDatapointsToAlarm
void SetDatapointsToAlarm(int value)
Definition: Alarm.h:444
Aws::Lightsail::Model::Alarm::SetNotificationTriggers
void SetNotificationTriggers(Aws::Vector< AlarmState > &&value)
Definition: Alarm.h:843
Aws::Lightsail::Model::Alarm::SetComparisonOperator
void SetComparisonOperator(const ComparisonOperator &value)
Definition: Alarm.h:340
Aws::Lightsail::Model::Alarm::ThresholdHasBeenSet
bool ThresholdHasBeenSet() const
Definition: Alarm.h:415
Aws::Lightsail::Model::Alarm::GetResourceType
const ResourceType & GetResourceType() const
Definition: Alarm.h:202
Aws::Lightsail::Model::Alarm::SetContactProtocols
void SetContactProtocols(Aws::Vector< ContactProtocol > &&value)
Definition: Alarm.h:798
Aws::Lightsail::Model::Alarm::SetName
void SetName(const Aws::String &value)
Definition: Alarm.h:68
Aws::Lightsail::Model::Alarm::WithState
Alarm & WithState(AlarmState &&value)
Definition: Alarm.h:742
Aws::Lightsail::Model::Alarm::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: Alarm.h:155
Aws::Lightsail::Model::Alarm::WithArn
Alarm & WithArn(Aws::String &&value)
Definition: Alarm.h:129
Aws::Lightsail::Model::Alarm::GetMonitoredResourceInfo
const MonitoredResourceInfo & GetMonitoredResourceInfo() const
Definition: Alarm.h:291
Aws::Lightsail::Model::Alarm::GetThreshold
double GetThreshold() const
Definition: Alarm.h:410
DateTime.h
Aws::Lightsail::Model::Alarm::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: Alarm.h:212
Aws::Lightsail::Model::Alarm::WithMetricName
Alarm & WithMetricName(MetricName &&value)
Definition: Alarm.h:681
Aws::Lightsail::Model::Alarm::SupportCodeHasBeenSet
bool SupportCodeHasBeenSet() const
Definition: Alarm.h:242
Aws::Lightsail::Model::Alarm::GetPeriod
int GetPeriod() const
Definition: Alarm.h:389
Aws::Lightsail::Model::Alarm::SetLocation
void SetLocation(const ResourceLocation &value)
Definition: Alarm.h:181
Aws::Lightsail::Model::Alarm::GetSupportCode
const Aws::String & GetSupportCode() const
Definition: Alarm.h:235
Aws::Lightsail::Model::Alarm::WithEvaluationPeriods
Alarm & WithEvaluationPeriods(int value)
Definition: Alarm.h:383
Aws::Lightsail::Model::Alarm::WithThreshold
Alarm & WithThreshold(double value)
Definition: Alarm.h:425
Aws::Lightsail::Model::Alarm::WithName
Alarm & WithName(const char *value)
Definition: Alarm.h:93
Aws::Lightsail::Model::Alarm::AddNotificationTriggers
Alarm & AddNotificationTriggers(AlarmState &&value)
Definition: Alarm.h:863
Aws::Lightsail::Model::Alarm::StatisticHasBeenSet
bool StatisticHasBeenSet() const
Definition: Alarm.h:574
Aws::Lightsail::Model::Alarm::WithUnit
Alarm & WithUnit(MetricUnit &&value)
Definition: Alarm.h:773
Aws::Lightsail::Model::Alarm::GetContactProtocols
const Aws::Vector< ContactProtocol > & GetContactProtocols() const
Definition: Alarm.h:780
Aws::Lightsail::Model::Alarm::SetMetricName
void SetMetricName(MetricName &&value)
Definition: Alarm.h:671
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::Alarm::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: Alarm.h:140
Aws::Lightsail::Model::Alarm::WithContactProtocols
Alarm & WithContactProtocols(const Aws::Vector< ContactProtocol > &value)
Definition: Alarm.h:804
Aws::Lightsail::Model::Alarm::GetComparisonOperator
const ComparisonOperator & GetComparisonOperator() const
Definition: Alarm.h:328
Aws::Lightsail::Model::Alarm::GetNotificationEnabled
bool GetNotificationEnabled() const
Definition: Alarm.h:869
Aws::Lightsail::Model::Alarm::WithTreatMissingData
Alarm & WithTreatMissingData(const TreatMissingData &value)
Definition: Alarm.h:521
Aws::Lightsail::Model::Alarm::operator=
Alarm & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSVector.h
Aws::Lightsail::Model::Alarm::SetSupportCode
void SetSupportCode(const Aws::String &value)
Definition: Alarm.h:249
Aws::Lightsail::Model::Alarm::WithNotificationTriggers
Alarm & WithNotificationTriggers(const Aws::Vector< AlarmState > &value)
Definition: Alarm.h:848
Aws::Lightsail::Model::Alarm::WithName
Alarm & WithName(const Aws::String &value)
Definition: Alarm.h:83
Aws::Lightsail::Model::Alarm::SetUnit
void SetUnit(const MetricUnit &value)
Definition: Alarm.h:758
Aws::Lightsail::Model::Alarm::ContactProtocolsHasBeenSet
bool ContactProtocolsHasBeenSet() const
Definition: Alarm.h:786
MetricUnit.h
Aws::Lightsail::Model::Alarm::GetTreatMissingData
const TreatMissingData & GetTreatMissingData() const
Definition: Alarm.h:465
AlarmState.h
Aws::Lightsail::Model::Alarm::NotificationEnabledHasBeenSet
bool NotificationEnabledHasBeenSet() const
Definition: Alarm.h:874
Aws::Lightsail::Model::Alarm::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: Alarm.h:150
Aws::Lightsail::Model::Alarm::EvaluationPeriodsHasBeenSet
bool EvaluationPeriodsHasBeenSet() const
Definition: Alarm.h:371
Aws::Lightsail::Model::Alarm::GetLocation
const ResourceLocation & GetLocation() const
Definition: Alarm.h:171
Aws::Lightsail::Model::Alarm::SetNotificationEnabled
void SetNotificationEnabled(bool value)
Definition: Alarm.h:879
Aws::Lightsail::Model::Alarm::TreatMissingDataHasBeenSet
bool TreatMissingDataHasBeenSet() const
Definition: Alarm.h:479
Aws::Lightsail::Model::Alarm::SetPeriod
void SetPeriod(int value)
Definition: Alarm.h:399
Aws::Lightsail::Model::Alarm::AddContactProtocols
Alarm & AddContactProtocols(ContactProtocol &&value)
Definition: Alarm.h:822
Aws::Lightsail::Model::Alarm::SetMetricName
void SetMetricName(const MetricName &value)
Definition: Alarm.h:666
Aws::Lightsail::Model::Alarm::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: Alarm.h:753
Aws::Lightsail::Model::Alarm::WithPeriod
Alarm & WithPeriod(int value)
Definition: Alarm.h:404
Aws::Lightsail::Model::Alarm::DatapointsToAlarmHasBeenSet
bool DatapointsToAlarmHasBeenSet() const
Definition: Alarm.h:438
Aws::Lightsail::Model::Alarm::SetMonitoredResourceInfo
void SetMonitoredResourceInfo(const MonitoredResourceInfo &value)
Definition: Alarm.h:303
Aws::Lightsail::Model::Alarm::WithMonitoredResourceInfo
Alarm & WithMonitoredResourceInfo(const MonitoredResourceInfo &value)
Definition: Alarm.h:315
Aws::Lightsail::Model::Alarm::WithResourceType
Alarm & WithResourceType(const ResourceType &value)
Definition: Alarm.h:222
Aws::Lightsail::Model::Alarm::WithLocation
Alarm & WithLocation(const ResourceLocation &value)
Definition: Alarm.h:191
Aws::Lightsail::Model::Alarm::SetName
void SetName(Aws::String &&value)
Definition: Alarm.h:73
MonitoredResourceInfo.h
Aws::Lightsail::Model::Alarm::SetLocation
void SetLocation(ResourceLocation &&value)
Definition: Alarm.h:186
Aws::Lightsail::Model::Alarm::WithCreatedAt
Alarm & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: Alarm.h:165
Aws::Lightsail::Model::Alarm::WithUnit
Alarm & WithUnit(const MetricUnit &value)
Definition: Alarm.h:768
Aws::Lightsail::Model::ResourceLocation
Definition: ResourceLocation.h:33
Aws::Lightsail::Model::Alarm::WithSupportCode
Alarm & WithSupportCode(const Aws::String &value)
Definition: Alarm.h:270
Aws::Lightsail::Model::Alarm::SetTreatMissingData
void SetTreatMissingData(TreatMissingData &&value)
Definition: Alarm.h:507
Aws::Lightsail::Model::Alarm::WithState
Alarm & WithState(const AlarmState &value)
Definition: Alarm.h:732
Aws::Lightsail::Model::Alarm::GetStatistic
const MetricStatistic & GetStatistic() const
Definition: Alarm.h:555
Aws::Lightsail::Model::Alarm::WithResourceType
Alarm & WithResourceType(ResourceType &&value)
Definition: Alarm.h:227
Aws::Lightsail::Model::Alarm::GetEvaluationPeriods
int GetEvaluationPeriods() const
Definition: Alarm.h:365
Aws::Lightsail::Model::Alarm::SetEvaluationPeriods
void SetEvaluationPeriods(int value)
Definition: Alarm.h:377
Aws::Lightsail::Model::Alarm::WithComparisonOperator
Alarm & WithComparisonOperator(const ComparisonOperator &value)
Definition: Alarm.h:352
Aws::Lightsail::Model::Alarm::GetUnit
const MetricUnit & GetUnit() const
Definition: Alarm.h:748
Aws::Lightsail::Model::MetricUnit
MetricUnit
Definition: MetricUnit.h:17
Aws::Lightsail::Model::Alarm::WithArn
Alarm & WithArn(const char *value)
Definition: Alarm.h:134
Aws::Lightsail::Model::Alarm::ComparisonOperatorHasBeenSet
bool ComparisonOperatorHasBeenSet() const
Definition: Alarm.h:334
Aws::Lightsail::Model::Alarm::WithLocation
Alarm & WithLocation(ResourceLocation &&value)
Definition: Alarm.h:196
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Lightsail::Model::Alarm::SetNotificationTriggers
void SetNotificationTriggers(const Aws::Vector< AlarmState > &value)
Definition: Alarm.h:838
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::Alarm::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: Alarm.h:145
Aws::Lightsail::Model::Alarm::NotificationTriggersHasBeenSet
bool NotificationTriggersHasBeenSet() const
Definition: Alarm.h:833
TreatMissingData.h
MetricName.h
Aws::Lightsail::Model::Alarm::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: Alarm.h:176
Aws::Lightsail::Model::Alarm::SetArn
void SetArn(Aws::String &&value)
Definition: Alarm.h:114
Aws::Lightsail::Model::AlarmState
AlarmState
Definition: AlarmState.h:17
Lightsail_EXPORTS.h
Aws::Lightsail::Model::Alarm::GetNotificationTriggers
const Aws::Vector< AlarmState > & GetNotificationTriggers() const
Definition: Alarm.h:828
Aws::Lightsail::Model::Alarm::GetName
const Aws::String & GetName() const
Definition: Alarm.h:58
Aws::Lightsail::Model::Alarm::SetSupportCode
void SetSupportCode(const char *value)
Definition: Alarm.h:263
Aws::Lightsail::Model::Alarm::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: Alarm.h:394
Aws::Lightsail::Model::Alarm::WithCreatedAt
Alarm & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: Alarm.h:160
Aws::Lightsail::Model::Alarm::SetArn
void SetArn(const char *value)
Definition: Alarm.h:119
Aws::Lightsail::Model::Alarm::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: Alarm.h:661
Aws::Lightsail::Model::Alarm::WithContactProtocols
Alarm & WithContactProtocols(Aws::Vector< ContactProtocol > &&value)
Definition: Alarm.h:810
Aws::Lightsail::Model::Alarm::SetStatistic
void SetStatistic(MetricStatistic &&value)
Definition: Alarm.h:612
Aws::Lightsail::Model::Alarm::AddContactProtocols
Alarm & AddContactProtocols(const ContactProtocol &value)
Definition: Alarm.h:816
Aws::Lightsail::Model::Alarm::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Alarm.h:104
Aws::Lightsail::Model::Alarm::SetThreshold
void SetThreshold(double value)
Definition: Alarm.h:420
Aws::Lightsail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
ResourceLocation.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::Alarm::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
MetricStatistic.h
Aws::Lightsail::Model::Alarm::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: Alarm.h:217
Aws::Lightsail::Model::Alarm::WithDatapointsToAlarm
Alarm & WithDatapointsToAlarm(int value)
Definition: Alarm.h:450
Aws::Lightsail::Model::Alarm::SetMonitoredResourceInfo
void SetMonitoredResourceInfo(MonitoredResourceInfo &&value)
Definition: Alarm.h:309
Aws::Lightsail::Model::Alarm::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: Alarm.h:207
Aws::Lightsail::Model::Alarm::WithNotificationTriggers
Alarm & WithNotificationTriggers(Aws::Vector< AlarmState > &&value)
Definition: Alarm.h:853
Aws::Lightsail::Model::Alarm::Alarm
Alarm(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Alarm::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Alarm.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::Alarm::WithSupportCode
Alarm & WithSupportCode(const char *value)
Definition: Alarm.h:284
Aws::Lightsail::Model::Alarm::SetState
void SetState(const AlarmState &value)
Definition: Alarm.h:712
ComparisonOperator.h
Aws::Lightsail::Model::Alarm::SetContactProtocols
void SetContactProtocols(const Aws::Vector< ContactProtocol > &value)
Definition: Alarm.h:792
Aws::Lightsail::Model::Alarm::GetDatapointsToAlarm
int GetDatapointsToAlarm() const
Definition: Alarm.h:432
Aws::Lightsail::Model::Alarm::SetSupportCode
void SetSupportCode(Aws::String &&value)
Definition: Alarm.h:256
Aws::Lightsail::Model::Alarm::MonitoredResourceInfoHasBeenSet
bool MonitoredResourceInfoHasBeenSet() const
Definition: Alarm.h:297
Aws::Lightsail::Model::Alarm::GetState
const AlarmState & GetState() const
Definition: Alarm.h:692
Aws::Lightsail::Model::Alarm::SetName
void SetName(const char *value)
Definition: Alarm.h:78
Aws::Lightsail::Model::ComparisonOperator
ComparisonOperator
Definition: ComparisonOperator.h:17
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::Alarm::SetArn
void SetArn(const Aws::String &value)
Definition: Alarm.h:109
Aws::Lightsail::Model::Alarm::SetTreatMissingData
void SetTreatMissingData(const TreatMissingData &value)
Definition: Alarm.h:493
Aws::Lightsail::Model::MetricStatistic
MetricStatistic
Definition: MetricStatistic.h:17
Aws::Lightsail::Model::Alarm::WithStatistic
Alarm & WithStatistic(const MetricStatistic &value)
Definition: Alarm.h:631
Aws::Lightsail::Model::Alarm
Definition: Alarm.h:47
Aws::Lightsail::Model::Alarm::WithName
Alarm & WithName(Aws::String &&value)
Definition: Alarm.h:88
Aws::Lightsail::Model::Alarm::WithNotificationEnabled
Alarm & WithNotificationEnabled(bool value)
Definition: Alarm.h:884
Aws::Lightsail::Model::Alarm::AddNotificationTriggers
Alarm & AddNotificationTriggers(const AlarmState &value)
Definition: Alarm.h:858
Aws::Lightsail::Model::Alarm::SetState
void SetState(AlarmState &&value)
Definition: Alarm.h:722
Aws::Lightsail::Model::Alarm::SetComparisonOperator
void SetComparisonOperator(ComparisonOperator &&value)
Definition: Alarm.h:346
Aws::Lightsail::Model::Alarm::WithSupportCode
Alarm & WithSupportCode(Aws::String &&value)
Definition: Alarm.h:277
Aws::Lightsail::Model::Alarm::GetArn
const Aws::String & GetArn() const
Definition: Alarm.h:99
Aws::Lightsail::Model::ContactProtocol
ContactProtocol
Definition: ContactProtocol.h:17
Aws::Lightsail::Model::Alarm::Alarm
Alarm()