7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/monitoring/CloudWatchRequest.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11#include <aws/monitoring/model/ComparisonOperator.h>
12#include <aws/monitoring/model/ScheduledQueryConfiguration.h>
13#include <aws/monitoring/model/Tag.h>
14#include <aws/monitoring/model/WarmUpConfiguration.h>
45 template <
typename AlarmNameT = Aws::String>
47 m_alarmNameHasBeenSet =
true;
48 m_alarmName = std::forward<AlarmNameT>(value);
50 template <
typename AlarmNameT = Aws::String>
63 template <
typename AlarmDescriptionT = Aws::String>
65 m_alarmDescriptionHasBeenSet =
true;
66 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
68 template <
typename AlarmDescriptionT = Aws::String>
83 template <
typename ScheduledQueryConfigurationT = ScheduledQueryConfiguration>
85 m_scheduledQueryConfigurationHasBeenSet =
true;
86 m_scheduledQueryConfiguration = std::forward<ScheduledQueryConfigurationT>(value);
88 template <
typename ScheduledQueryConfigurationT = ScheduledQueryConfiguration>
104 m_actionLogLineCountHasBeenSet =
true;
105 m_actionLogLineCount = value;
121 template <
typename ActionLogLineRoleArnT = Aws::String>
123 m_actionLogLineRoleArnHasBeenSet =
true;
124 m_actionLogLineRoleArn = std::forward<ActionLogLineRoleArnT>(value);
126 template <
typename ActionLogLineRoleArnT = Aws::String>
141 m_actionsEnabledHasBeenSet =
true;
142 m_actionsEnabled = value;
167 template <
typename OKActionsT = Aws::Vector<Aws::String>>
169 m_oKActionsHasBeenSet =
true;
170 m_oKActions = std::forward<OKActionsT>(value);
172 template <
typename OKActionsT = Aws::Vector<Aws::String>>
177 template <
typename OKActionsT = Aws::String>
179 m_oKActionsHasBeenSet =
true;
180 m_oKActions.emplace_back(std::forward<OKActionsT>(value));
204 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
206 m_alarmActionsHasBeenSet =
true;
207 m_alarmActions = std::forward<AlarmActionsT>(value);
209 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
214 template <
typename AlarmActionsT = Aws::String>
216 m_alarmActionsHasBeenSet =
true;
217 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
240 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
242 m_insufficientDataActionsHasBeenSet =
true;
243 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
245 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
250 template <
typename InsufficientDataActionsT = Aws::String>
252 m_insufficientDataActionsHasBeenSet =
true;
253 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
266 m_queryResultsToEvaluateHasBeenSet =
true;
267 m_queryResultsToEvaluate = value;
286 m_queryResultsToAlarmHasBeenSet =
true;
287 m_queryResultsToAlarm = value;
302 m_thresholdHasBeenSet =
true;
322 m_comparisonOperatorHasBeenSet =
true;
323 m_comparisonOperator = value;
340 template <
typename TreatMissingDataT = Aws::String>
342 m_treatMissingDataHasBeenSet =
true;
343 m_treatMissingData = std::forward<TreatMissingDataT>(value);
345 template <
typename TreatMissingDataT = Aws::String>
359 template <
typename TagsT = Aws::Vector<Tag>>
361 m_tagsHasBeenSet =
true;
362 m_tags = std::forward<TagsT>(value);
364 template <
typename TagsT = Aws::Vector<Tag>>
366 SetTags(std::forward<TagsT>(value));
369 template <
typename TagsT = Tag>
371 m_tagsHasBeenSet =
true;
372 m_tags.emplace_back(std::forward<TagsT>(value));
388 template <
typename WarmUpConfigurationT = WarmUpConfiguration>
390 m_warmUpConfigurationHasBeenSet =
true;
391 m_warmUpConfiguration = std::forward<WarmUpConfigurationT>(value);
393 template <
typename WarmUpConfigurationT = WarmUpConfiguration>
406 int m_actionLogLineCount{0};
410 bool m_actionsEnabled{
false};
418 int m_queryResultsToEvaluate{0};
420 int m_queryResultsToAlarm{0};
422 double m_threshold{0.0};
430 WarmUpConfiguration m_warmUpConfiguration;
431 bool m_alarmNameHasBeenSet =
false;
432 bool m_alarmDescriptionHasBeenSet =
false;
433 bool m_scheduledQueryConfigurationHasBeenSet =
false;
434 bool m_actionLogLineCountHasBeenSet =
false;
435 bool m_actionLogLineRoleArnHasBeenSet =
false;
436 bool m_actionsEnabledHasBeenSet =
false;
437 bool m_oKActionsHasBeenSet =
false;
438 bool m_alarmActionsHasBeenSet =
false;
439 bool m_insufficientDataActionsHasBeenSet =
false;
440 bool m_queryResultsToEvaluateHasBeenSet =
false;
441 bool m_queryResultsToAlarmHasBeenSet =
false;
442 bool m_thresholdHasBeenSet =
false;
443 bool m_comparisonOperatorHasBeenSet =
false;
444 bool m_treatMissingDataHasBeenSet =
false;
445 bool m_tagsHasBeenSet =
false;
446 bool m_warmUpConfigurationHasBeenSet =
false;
PutLogAlarmRequest & WithThreshold(double value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
void SetTreatMissingData(TreatMissingDataT &&value)
bool ActionLogLineCountHasBeenSet() const
const Aws::String & GetTreatMissingData() const
PutLogAlarmRequest & WithWarmUpConfiguration(WarmUpConfigurationT &&value)
PutLogAlarmRequest & WithActionLogLineCount(int value)
PutLogAlarmRequest & WithTreatMissingData(TreatMissingDataT &&value)
void SetQueryResultsToAlarm(int value)
PutLogAlarmRequest & WithOKActions(OKActionsT &&value)
bool OKActionsHasBeenSet() const
void SetThreshold(double value)
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
PutLogAlarmRequest & WithAlarmDescription(AlarmDescriptionT &&value)
PutLogAlarmRequest & AddTags(TagsT &&value)
PutLogAlarmRequest & AddOKActions(OKActionsT &&value)
int GetQueryResultsToEvaluate() const
PutLogAlarmRequest & WithActionsEnabled(bool value)
const WarmUpConfiguration & GetWarmUpConfiguration() const
const ScheduledQueryConfiguration & GetScheduledQueryConfiguration() const
virtual const char * GetServiceRequestName() const override
bool InsufficientDataActionsHasBeenSet() const
void SetAlarmName(AlarmNameT &&value)
bool WarmUpConfigurationHasBeenSet() const
bool QueryResultsToEvaluateHasBeenSet() const
bool TreatMissingDataHasBeenSet() const
void SetInsufficientDataActions(InsufficientDataActionsT &&value)
const Aws::Vector< Aws::String > & GetAlarmActions() const
bool ScheduledQueryConfigurationHasBeenSet() const
PutLogAlarmRequest & WithAlarmName(AlarmNameT &&value)
bool ComparisonOperatorHasBeenSet() const
const Aws::Vector< Aws::String > & GetOKActions() const
ComparisonOperator GetComparisonOperator() const
void SetActionLogLineCount(int value)
PutLogAlarmRequest & WithQueryResultsToEvaluate(int value)
int GetQueryResultsToAlarm() const
bool QueryResultsToAlarmHasBeenSet() const
void SetWarmUpConfiguration(WarmUpConfigurationT &&value)
PutLogAlarmRequest & AddInsufficientDataActions(InsufficientDataActionsT &&value)
void SetQueryResultsToEvaluate(int value)
const Aws::String & GetAlarmName() const
double GetThreshold() const
const Aws::String & GetActionLogLineRoleArn() const
PutLogAlarmRequest & WithAlarmActions(AlarmActionsT &&value)
void SetOKActions(OKActionsT &&value)
PutLogAlarmRequest & WithComparisonOperator(ComparisonOperator value)
AWS_CLOUDWATCH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Tag > & GetTags() const
AWS_CLOUDWATCH_API PutLogAlarmRequest()=default
bool ActionsEnabledHasBeenSet() const
bool AlarmNameHasBeenSet() const
bool AlarmActionsHasBeenSet() const
int GetActionLogLineCount() const
PutLogAlarmRequest & WithActionLogLineRoleArn(ActionLogLineRoleArnT &&value)
void SetActionsEnabled(bool value)
bool TagsHasBeenSet() const
PutLogAlarmRequest & WithScheduledQueryConfiguration(ScheduledQueryConfigurationT &&value)
bool ThresholdHasBeenSet() const
void SetAlarmActions(AlarmActionsT &&value)
void SetActionLogLineRoleArn(ActionLogLineRoleArnT &&value)
PutLogAlarmRequest & WithInsufficientDataActions(InsufficientDataActionsT &&value)
void SetTags(TagsT &&value)
PutLogAlarmRequest & AddAlarmActions(AlarmActionsT &&value)
void SetComparisonOperator(ComparisonOperator value)
PutLogAlarmRequest & WithTags(TagsT &&value)
bool ActionLogLineRoleArnHasBeenSet() const
void SetAlarmDescription(AlarmDescriptionT &&value)
const Aws::String & GetAlarmDescription() const
bool AlarmDescriptionHasBeenSet() const
bool GetActionsEnabled() const
PutLogAlarmRequest & WithQueryResultsToAlarm(int value)
void SetScheduledQueryConfiguration(ScheduledQueryConfigurationT &&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