7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/lookoutmetrics/LookoutMetricsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lookoutmetrics/model/Action.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/lookoutmetrics/model/AlertFilters.h>
17namespace LookoutMetrics
44 template<
typename AlertNameT = Aws::String>
45 void SetAlertName(AlertNameT&& value) { m_alertNameHasBeenSet =
true; m_alertName = std::forward<AlertNameT>(value); }
46 template<
typename AlertNameT = Aws::String>
66 template<
typename AlertDescriptionT = Aws::String>
67 void SetAlertDescription(AlertDescriptionT&& value) { m_alertDescriptionHasBeenSet =
true; m_alertDescription = std::forward<AlertDescriptionT>(value); }
68 template<
typename AlertDescriptionT = Aws::String>
78 template<
typename AnomalyDetectorArnT = Aws::String>
79 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) { m_anomalyDetectorArnHasBeenSet =
true; m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value); }
80 template<
typename AnomalyDetectorArnT = Aws::String>
90 template<
typename ActionT = Action>
91 void SetAction(ActionT&& value) { m_actionHasBeenSet =
true; m_action = std::forward<ActionT>(value); }
92 template<
typename ActionT = Action>
104 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
105 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
106 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
110 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
121 template<
typename AlertFiltersT = AlertFilters>
122 void SetAlertFilters(AlertFiltersT&& value) { m_alertFiltersHasBeenSet =
true; m_alertFilters = std::forward<AlertFiltersT>(value); }
123 template<
typename AlertFiltersT = AlertFilters>
129 bool m_alertNameHasBeenSet =
false;
131 int m_alertSensitivityThreshold{0};
132 bool m_alertSensitivityThresholdHasBeenSet =
false;
135 bool m_alertDescriptionHasBeenSet =
false;
138 bool m_anomalyDetectorArnHasBeenSet =
false;
141 bool m_actionHasBeenSet =
false;
144 bool m_tagsHasBeenSet =
false;
146 AlertFilters m_alertFilters;
147 bool m_alertFiltersHasBeenSet =
false;
CreateAlertRequest & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
bool AlertDescriptionHasBeenSet() const
void SetAlertSensitivityThreshold(int value)
virtual const char * GetServiceRequestName() const override
CreateAlertRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetAlertFilters(AlertFiltersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAlertRequest & WithTags(TagsT &&value)
const AlertFilters & GetAlertFilters() const
AWS_LOOKOUTMETRICS_API CreateAlertRequest()=default
bool AlertFiltersHasBeenSet() const
int GetAlertSensitivityThreshold() const
void SetAction(ActionT &&value)
CreateAlertRequest & WithAlertSensitivityThreshold(int value)
void SetAlertName(AlertNameT &&value)
bool TagsHasBeenSet() const
CreateAlertRequest & WithAlertDescription(AlertDescriptionT &&value)
bool AnomalyDetectorArnHasBeenSet() const
CreateAlertRequest & WithAction(ActionT &&value)
CreateAlertRequest & WithAlertFilters(AlertFiltersT &&value)
bool AlertSensitivityThresholdHasBeenSet() const
const Aws::String & GetAlertDescription() const
void SetAnomalyDetectorArn(AnomalyDetectorArnT &&value)
void SetAlertDescription(AlertDescriptionT &&value)
const Aws::String & GetAnomalyDetectorArn() const
const Action & GetAction() const
bool AlertNameHasBeenSet() const
bool ActionHasBeenSet() const
void SetTags(TagsT &&value)
AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override
const Aws::String & GetAlertName() const
CreateAlertRequest & WithAlertName(AlertNameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String