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>
44 template <
typename AlarmNameT = Aws::String>
46 m_alarmNameHasBeenSet =
true;
47 m_alarmName = std::forward<AlarmNameT>(value);
49 template <
typename AlarmNameT = Aws::String>
62 template <
typename AlarmDescriptionT = Aws::String>
64 m_alarmDescriptionHasBeenSet =
true;
65 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
67 template <
typename AlarmDescriptionT = Aws::String>
82 template <
typename ScheduledQueryConfigurationT = ScheduledQueryConfiguration>
84 m_scheduledQueryConfigurationHasBeenSet =
true;
85 m_scheduledQueryConfiguration = std::forward<ScheduledQueryConfigurationT>(value);
87 template <
typename ScheduledQueryConfigurationT = ScheduledQueryConfiguration>
103 m_actionLogLineCountHasBeenSet =
true;
104 m_actionLogLineCount = value;
120 template <
typename ActionLogLineRoleArnT = Aws::String>
122 m_actionLogLineRoleArnHasBeenSet =
true;
123 m_actionLogLineRoleArn = std::forward<ActionLogLineRoleArnT>(value);
125 template <
typename ActionLogLineRoleArnT = Aws::String>
140 m_actionsEnabledHasBeenSet =
true;
141 m_actionsEnabled = value;
166 template <
typename OKActionsT = Aws::Vector<Aws::String>>
168 m_oKActionsHasBeenSet =
true;
169 m_oKActions = std::forward<OKActionsT>(value);
171 template <
typename OKActionsT = Aws::Vector<Aws::String>>
176 template <
typename OKActionsT = Aws::String>
178 m_oKActionsHasBeenSet =
true;
179 m_oKActions.emplace_back(std::forward<OKActionsT>(value));
203 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
205 m_alarmActionsHasBeenSet =
true;
206 m_alarmActions = std::forward<AlarmActionsT>(value);
208 template <
typename AlarmActionsT = Aws::Vector<Aws::String>>
213 template <
typename AlarmActionsT = Aws::String>
215 m_alarmActionsHasBeenSet =
true;
216 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
239 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
241 m_insufficientDataActionsHasBeenSet =
true;
242 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
244 template <
typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
249 template <
typename InsufficientDataActionsT = Aws::String>
251 m_insufficientDataActionsHasBeenSet =
true;
252 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
265 m_queryResultsToEvaluateHasBeenSet =
true;
266 m_queryResultsToEvaluate = value;
285 m_queryResultsToAlarmHasBeenSet =
true;
286 m_queryResultsToAlarm = value;
301 m_thresholdHasBeenSet =
true;
321 m_comparisonOperatorHasBeenSet =
true;
322 m_comparisonOperator = value;
339 template <
typename TreatMissingDataT = Aws::String>
341 m_treatMissingDataHasBeenSet =
true;
342 m_treatMissingData = std::forward<TreatMissingDataT>(value);
344 template <
typename TreatMissingDataT = Aws::String>
358 template <
typename TagsT = Aws::Vector<Tag>>
360 m_tagsHasBeenSet =
true;
361 m_tags = std::forward<TagsT>(value);
363 template <
typename TagsT = Aws::Vector<Tag>>
365 SetTags(std::forward<TagsT>(value));
368 template <
typename TagsT = Tag>
370 m_tagsHasBeenSet =
true;
371 m_tags.emplace_back(std::forward<TagsT>(value));
382 int m_actionLogLineCount{0};
386 bool m_actionsEnabled{
false};
394 int m_queryResultsToEvaluate{0};
396 int m_queryResultsToAlarm{0};
398 double m_threshold{0.0};
405 bool m_alarmNameHasBeenSet =
false;
406 bool m_alarmDescriptionHasBeenSet =
false;
407 bool m_scheduledQueryConfigurationHasBeenSet =
false;
408 bool m_actionLogLineCountHasBeenSet =
false;
409 bool m_actionLogLineRoleArnHasBeenSet =
false;
410 bool m_actionsEnabledHasBeenSet =
false;
411 bool m_oKActionsHasBeenSet =
false;
412 bool m_alarmActionsHasBeenSet =
false;
413 bool m_insufficientDataActionsHasBeenSet =
false;
414 bool m_queryResultsToEvaluateHasBeenSet =
false;
415 bool m_queryResultsToAlarmHasBeenSet =
false;
416 bool m_thresholdHasBeenSet =
false;
417 bool m_comparisonOperatorHasBeenSet =
false;
418 bool m_treatMissingDataHasBeenSet =
false;
419 bool m_tagsHasBeenSet =
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 & 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 ScheduledQueryConfiguration & GetScheduledQueryConfiguration() const
virtual const char * GetServiceRequestName() const override
bool InsufficientDataActionsHasBeenSet() const
void SetAlarmName(AlarmNameT &&value)
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
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