7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/MetricName.h>
11#include <aws/lightsail/model/ComparisonOperator.h>
12#include <aws/lightsail/model/TreatMissingData.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/lightsail/model/ContactProtocol.h>
15#include <aws/lightsail/model/AlarmState.h>
52 inline void SetAlarmName(
const char* value) { m_alarmNameHasBeenSet =
true; m_alarmName.assign(value); }
100 inline void SetMonitoredResourceName(
const char* value) { m_monitoredResourceNameHasBeenSet =
true; m_monitoredResourceName.assign(value); }
125 inline void SetThreshold(
double value) { m_thresholdHasBeenSet =
true; m_threshold = value; }
143 inline void SetEvaluationPeriods(
int value) { m_evaluationPeriodsHasBeenSet =
true; m_evaluationPeriods = value; }
155 inline void SetDatapointsToAlarm(
int value) { m_datapointsToAlarmHasBeenSet =
true; m_datapointsToAlarm = value; }
241 inline void SetNotificationEnabled(
bool value) { m_notificationEnabledHasBeenSet =
true; m_notificationEnabled = value; }
247 bool m_alarmNameHasBeenSet =
false;
250 bool m_metricNameHasBeenSet =
false;
253 bool m_monitoredResourceNameHasBeenSet =
false;
256 bool m_comparisonOperatorHasBeenSet =
false;
259 bool m_thresholdHasBeenSet =
false;
261 int m_evaluationPeriods;
262 bool m_evaluationPeriodsHasBeenSet =
false;
264 int m_datapointsToAlarm;
265 bool m_datapointsToAlarmHasBeenSet =
false;
268 bool m_treatMissingDataHasBeenSet =
false;
271 bool m_contactProtocolsHasBeenSet =
false;
274 bool m_notificationTriggersHasBeenSet =
false;
276 bool m_notificationEnabled;
277 bool m_notificationEnabledHasBeenSet =
false;
PutAlarmRequest & WithComparisonOperator(ComparisonOperator &&value)
void SetThreshold(double value)
PutAlarmRequest & AddNotificationTriggers(const AlarmState &value)
void SetContactProtocols(const Aws::Vector< ContactProtocol > &value)
void SetTreatMissingData(TreatMissingData &&value)
void SetMetricName(MetricName &&value)
PutAlarmRequest & AddNotificationTriggers(AlarmState &&value)
AWS_LIGHTSAIL_API PutAlarmRequest()
void SetAlarmName(const Aws::String &value)
PutAlarmRequest & AddContactProtocols(const ContactProtocol &value)
PutAlarmRequest & WithMonitoredResourceName(const Aws::String &value)
void SetMonitoredResourceName(Aws::String &&value)
const MetricName & GetMetricName() const
void SetContactProtocols(Aws::Vector< ContactProtocol > &&value)
bool NotificationTriggersHasBeenSet() const
int GetDatapointsToAlarm() const
const Aws::Vector< AlarmState > & GetNotificationTriggers() const
bool NotificationEnabledHasBeenSet() const
PutAlarmRequest & WithTreatMissingData(const TreatMissingData &value)
bool AlarmNameHasBeenSet() const
void SetDatapointsToAlarm(int value)
PutAlarmRequest & WithMetricName(const MetricName &value)
void SetTreatMissingData(const TreatMissingData &value)
PutAlarmRequest & WithMonitoredResourceName(const char *value)
PutAlarmRequest & WithContactProtocols(Aws::Vector< ContactProtocol > &&value)
void SetComparisonOperator(ComparisonOperator &&value)
PutAlarmRequest & WithAlarmName(const Aws::String &value)
void SetMonitoredResourceName(const Aws::String &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
int GetEvaluationPeriods() const
const Aws::String & GetAlarmName() const
bool ComparisonOperatorHasBeenSet() const
void SetMonitoredResourceName(const char *value)
void SetNotificationEnabled(bool value)
PutAlarmRequest & WithAlarmName(const char *value)
bool MetricNameHasBeenSet() const
void SetComparisonOperator(const ComparisonOperator &value)
const Aws::Vector< ContactProtocol > & GetContactProtocols() const
double GetThreshold() const
void SetAlarmName(const char *value)
PutAlarmRequest & WithTreatMissingData(TreatMissingData &&value)
bool EvaluationPeriodsHasBeenSet() const
PutAlarmRequest & WithNotificationTriggers(const Aws::Vector< AlarmState > &value)
PutAlarmRequest & WithNotificationEnabled(bool value)
void SetAlarmName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
PutAlarmRequest & WithEvaluationPeriods(int value)
PutAlarmRequest & WithContactProtocols(const Aws::Vector< ContactProtocol > &value)
void SetNotificationTriggers(const Aws::Vector< AlarmState > &value)
PutAlarmRequest & WithThreshold(double value)
PutAlarmRequest & WithAlarmName(Aws::String &&value)
bool GetNotificationEnabled() const
PutAlarmRequest & WithMetricName(MetricName &&value)
bool MonitoredResourceNameHasBeenSet() const
PutAlarmRequest & WithNotificationTriggers(Aws::Vector< AlarmState > &&value)
PutAlarmRequest & WithComparisonOperator(const ComparisonOperator &value)
PutAlarmRequest & AddContactProtocols(ContactProtocol &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
PutAlarmRequest & WithMonitoredResourceName(Aws::String &&value)
const Aws::String & GetMonitoredResourceName() const
PutAlarmRequest & WithDatapointsToAlarm(int value)
void SetEvaluationPeriods(int value)
bool ThresholdHasBeenSet() const
const ComparisonOperator & GetComparisonOperator() const
const TreatMissingData & GetTreatMissingData() const
bool TreatMissingDataHasBeenSet() const
void SetNotificationTriggers(Aws::Vector< AlarmState > &&value)
bool ContactProtocolsHasBeenSet() const
bool DatapointsToAlarmHasBeenSet() const
void SetMetricName(const MetricName &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector