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>
63 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(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); }
129 inline void SetSupportCode(
const char* value) { m_supportCodeHasBeenSet =
true; m_supportCode.assign(value); }
168 inline void SetEvaluationPeriods(
int value) { m_evaluationPeriodsHasBeenSet =
true; m_evaluationPeriods = value; }
178 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
188 inline void SetThreshold(
double value) { m_thresholdHasBeenSet =
true; m_threshold = value; }
199 inline void SetDatapointsToAlarm(
int value) { m_datapointsToAlarmHasBeenSet =
true; m_datapointsToAlarm = value; }
326 inline void SetNotificationEnabled(
bool value) { m_notificationEnabledHasBeenSet =
true; m_notificationEnabled = value; }
332 bool m_nameHasBeenSet =
false;
335 bool m_arnHasBeenSet =
false;
338 bool m_createdAtHasBeenSet =
false;
341 bool m_locationHasBeenSet =
false;
344 bool m_resourceTypeHasBeenSet =
false;
347 bool m_supportCodeHasBeenSet =
false;
350 bool m_monitoredResourceInfoHasBeenSet =
false;
353 bool m_comparisonOperatorHasBeenSet =
false;
355 int m_evaluationPeriods;
356 bool m_evaluationPeriodsHasBeenSet =
false;
359 bool m_periodHasBeenSet =
false;
362 bool m_thresholdHasBeenSet =
false;
364 int m_datapointsToAlarm;
365 bool m_datapointsToAlarmHasBeenSet =
false;
368 bool m_treatMissingDataHasBeenSet =
false;
371 bool m_statisticHasBeenSet =
false;
374 bool m_metricNameHasBeenSet =
false;
377 bool m_stateHasBeenSet =
false;
380 bool m_unitHasBeenSet =
false;
383 bool m_contactProtocolsHasBeenSet =
false;
386 bool m_notificationTriggersHasBeenSet =
false;
388 bool m_notificationEnabled;
389 bool m_notificationEnabledHasBeenSet =
false;
const MetricStatistic & GetStatistic() const
bool CreatedAtHasBeenSet() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetThreshold(double value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Alarm & WithNotificationTriggers(const Aws::Vector< AlarmState > &value)
Alarm & WithArn(const char *value)
Alarm & WithSupportCode(const Aws::String &value)
void SetName(const Aws::String &value)
AWS_LIGHTSAIL_API Alarm()
double GetThreshold() const
bool GetNotificationEnabled() const
void SetNotificationTriggers(const Aws::Vector< AlarmState > &value)
bool ThresholdHasBeenSet() const
void SetUnit(const MetricUnit &value)
void SetResourceType(ResourceType &&value)
Alarm & WithUnit(const MetricUnit &value)
void SetName(Aws::String &&value)
Alarm & WithLocation(const ResourceLocation &value)
bool LocationHasBeenSet() const
const TreatMissingData & GetTreatMissingData() const
void SetMetricName(const MetricName &value)
void SetNotificationEnabled(bool value)
void SetName(const char *value)
Alarm & WithContactProtocols(const Aws::Vector< ContactProtocol > &value)
Alarm & WithMonitoredResourceInfo(const MonitoredResourceInfo &value)
Alarm & WithState(AlarmState &&value)
const Aws::String & GetName() const
const AlarmState & GetState() const
void SetState(const AlarmState &value)
Alarm & WithComparisonOperator(ComparisonOperator &&value)
bool TreatMissingDataHasBeenSet() const
void SetStatistic(MetricStatistic &&value)
const Aws::Vector< AlarmState > & GetNotificationTriggers() const
Alarm & AddContactProtocols(const ContactProtocol &value)
Alarm & WithName(const Aws::String &value)
Alarm & WithSupportCode(const char *value)
Alarm & WithPeriod(int value)
void SetMonitoredResourceInfo(MonitoredResourceInfo &&value)
void SetArn(const char *value)
void SetStatistic(const MetricStatistic &value)
void SetSupportCode(const char *value)
void SetPeriod(int value)
Alarm & WithNotificationTriggers(Aws::Vector< AlarmState > &&value)
bool MetricNameHasBeenSet() const
int GetDatapointsToAlarm() const
void SetComparisonOperator(const ComparisonOperator &value)
bool NameHasBeenSet() const
void SetDatapointsToAlarm(int value)
Alarm & WithNotificationEnabled(bool value)
void SetMetricName(MetricName &&value)
AWS_LIGHTSAIL_API Alarm(Aws::Utils::Json::JsonView jsonValue)
bool DatapointsToAlarmHasBeenSet() const
const MonitoredResourceInfo & GetMonitoredResourceInfo() const
bool UnitHasBeenSet() const
bool EvaluationPeriodsHasBeenSet() const
Alarm & WithArn(Aws::String &&value)
bool ResourceTypeHasBeenSet() const
Alarm & WithResourceType(const ResourceType &value)
Alarm & WithMetricName(MetricName &&value)
Alarm & WithComparisonOperator(const ComparisonOperator &value)
Alarm & WithContactProtocols(Aws::Vector< ContactProtocol > &&value)
void SetEvaluationPeriods(int value)
void SetLocation(ResourceLocation &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
Alarm & AddContactProtocols(ContactProtocol &&value)
const Aws::String & GetSupportCode() const
Alarm & WithTreatMissingData(TreatMissingData &&value)
void SetState(AlarmState &&value)
void SetComparisonOperator(ComparisonOperator &&value)
Alarm & AddNotificationTriggers(AlarmState &&value)
Alarm & WithCreatedAt(Aws::Utils::DateTime &&value)
Alarm & WithStatistic(MetricStatistic &&value)
void SetResourceType(const ResourceType &value)
void SetLocation(const ResourceLocation &value)
const ResourceType & GetResourceType() const
int GetEvaluationPeriods() const
void SetContactProtocols(Aws::Vector< ContactProtocol > &&value)
const MetricName & GetMetricName() const
Alarm & WithSupportCode(Aws::String &&value)
Alarm & WithTreatMissingData(const TreatMissingData &value)
Alarm & WithResourceType(ResourceType &&value)
void SetUnit(MetricUnit &&value)
Alarm & WithEvaluationPeriods(int value)
Alarm & WithCreatedAt(const Aws::Utils::DateTime &value)
Alarm & WithStatistic(const MetricStatistic &value)
void SetSupportCode(const Aws::String &value)
Alarm & WithName(Aws::String &&value)
Alarm & WithThreshold(double value)
bool ArnHasBeenSet() const
const Aws::Vector< ContactProtocol > & GetContactProtocols() const
bool StatisticHasBeenSet() const
void SetNotificationTriggers(Aws::Vector< AlarmState > &&value)
bool ComparisonOperatorHasBeenSet() const
bool MonitoredResourceInfoHasBeenSet() const
Alarm & WithMetricName(const MetricName &value)
void SetTreatMissingData(const TreatMissingData &value)
Alarm & WithMonitoredResourceInfo(MonitoredResourceInfo &&value)
bool NotificationEnabledHasBeenSet() const
void SetMonitoredResourceInfo(const MonitoredResourceInfo &value)
const ComparisonOperator & GetComparisonOperator() const
const Aws::String & GetArn() const
AWS_LIGHTSAIL_API Alarm & operator=(Aws::Utils::Json::JsonView jsonValue)
Alarm & WithDatapointsToAlarm(int value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
bool NotificationTriggersHasBeenSet() const
bool SupportCodeHasBeenSet() const
Alarm & WithLocation(ResourceLocation &&value)
void SetSupportCode(Aws::String &&value)
Alarm & AddNotificationTriggers(const AlarmState &value)
Alarm & WithArn(const Aws::String &value)
bool PeriodHasBeenSet() const
const ResourceLocation & GetLocation() const
Alarm & WithUnit(MetricUnit &&value)
bool StateHasBeenSet() const
void SetArn(const Aws::String &value)
void SetContactProtocols(const Aws::Vector< ContactProtocol > &value)
Alarm & WithName(const char *value)
Alarm & WithState(const AlarmState &value)
const MetricUnit & GetUnit() const
bool ContactProtocolsHasBeenSet() const
void SetTreatMissingData(TreatMissingData &&value)
void SetArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue