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
46 inline void SetAlertName(
const char* value) { m_alertNameHasBeenSet =
true; m_alertName.assign(value); }
70 inline void SetAlertDescription(
const char* value) { m_alertDescriptionHasBeenSet =
true; m_alertDescription.assign(value); }
84 inline void SetAnomalyDetectorArn(
const char* value) { m_anomalyDetectorArnHasBeenSet =
true; m_anomalyDetectorArn.assign(value); }
96 inline void SetAction(
const Action& value) { m_actionHasBeenSet =
true; m_action = value; }
97 inline void SetAction(
Action&& value) { m_actionHasBeenSet =
true; m_action = std::move(value); }
120 inline CreateAlertRequest&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
138 bool m_alertNameHasBeenSet =
false;
140 int m_alertSensitivityThreshold;
141 bool m_alertSensitivityThresholdHasBeenSet =
false;
144 bool m_alertDescriptionHasBeenSet =
false;
147 bool m_anomalyDetectorArnHasBeenSet =
false;
150 bool m_actionHasBeenSet =
false;
153 bool m_tagsHasBeenSet =
false;
156 bool m_alertFiltersHasBeenSet =
false;
CreateAlertRequest & WithAlertDescription(Aws::String &&value)
bool AlertDescriptionHasBeenSet() const
void SetAlertSensitivityThreshold(int value)
virtual const char * GetServiceRequestName() const override
void SetAnomalyDetectorArn(const Aws::String &value)
CreateAlertRequest & WithAlertFilters(AlertFilters &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAlertRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAlertRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAlertRequest & WithAlertDescription(const char *value)
CreateAlertRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetAlertName(const Aws::String &value)
const AlertFilters & GetAlertFilters() const
bool AlertFiltersHasBeenSet() const
int GetAlertSensitivityThreshold() const
CreateAlertRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetAnomalyDetectorArn(const char *value)
CreateAlertRequest & WithAlertSensitivityThreshold(int value)
CreateAlertRequest & WithAction(Action &&value)
CreateAlertRequest & WithAlertDescription(const Aws::String &value)
void SetAction(const Action &value)
void SetAlertFilters(AlertFilters &&value)
CreateAlertRequest & WithAnomalyDetectorArn(const char *value)
void SetAlertName(Aws::String &&value)
CreateAlertRequest & AddTags(const char *key, Aws::String &&value)
void SetAlertFilters(const AlertFilters &value)
CreateAlertRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAlertRequest & AddTags(const char *key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
bool TagsHasBeenSet() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
bool AnomalyDetectorArnHasBeenSet() const
CreateAlertRequest & WithAction(const Action &value)
bool AlertSensitivityThresholdHasBeenSet() const
const Aws::String & GetAlertDescription() const
CreateAlertRequest & AddTags(Aws::String &&key, const char *value)
CreateAlertRequest & WithAlertName(const Aws::String &value)
const Aws::String & GetAnomalyDetectorArn() const
void SetAlertName(const char *value)
CreateAlertRequest & WithAlertName(const char *value)
const Action & GetAction() const
CreateAlertRequest & WithAnomalyDetectorArn(Aws::String &&value)
CreateAlertRequest & WithAlertName(Aws::String &&value)
void SetAlertDescription(const char *value)
CreateAlertRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAlertRequest & WithAnomalyDetectorArn(const Aws::String &value)
bool AlertNameHasBeenSet() const
void SetAlertDescription(Aws::String &&value)
bool ActionHasBeenSet() const
void SetAlertDescription(const Aws::String &value)
void SetAnomalyDetectorArn(Aws::String &&value)
AWS_LOOKOUTMETRICS_API CreateAlertRequest()
AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override
CreateAlertRequest & WithAlertFilters(const AlertFilters &value)
void SetAction(Action &&value)
const Aws::String & GetAlertName() const
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