7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lookoutmetrics/model/AlertType.h>
10#include <aws/lookoutmetrics/model/AlertStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
25namespace LookoutMetrics
52 inline void SetAlertArn(
const char* value) { m_alertArnHasBeenSet =
true; m_alertArn.assign(value); }
66 inline void SetAnomalyDetectorArn(
const char* value) { m_anomalyDetectorArnHasBeenSet =
true; m_anomalyDetectorArn.assign(value); }
80 inline void SetAlertName(
const char* value) { m_alertNameHasBeenSet =
true; m_alertName.assign(value); }
161 inline AlertSummary&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
166 bool m_alertArnHasBeenSet =
false;
169 bool m_anomalyDetectorArnHasBeenSet =
false;
172 bool m_alertNameHasBeenSet =
false;
174 int m_alertSensitivityThreshold;
175 bool m_alertSensitivityThresholdHasBeenSet =
false;
178 bool m_alertTypeHasBeenSet =
false;
181 bool m_alertStatusHasBeenSet =
false;
184 bool m_lastModificationTimeHasBeenSet =
false;
187 bool m_creationTimeHasBeenSet =
false;
190 bool m_tagsHasBeenSet =
false;
AlertSummary & WithAlertType(const AlertType &value)
bool AlertSensitivityThresholdHasBeenSet() const
const Aws::String & GetAnomalyDetectorArn() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetAlertType(AlertType &&value)
AlertSummary & AddTags(Aws::String &&key, const Aws::String &value)
AlertSummary & WithAlertArn(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AlertSummary & WithAlertStatus(AlertStatus &&value)
void SetLastModificationTime(const Aws::Utils::DateTime &value)
void SetAlertSensitivityThreshold(int value)
const Aws::Utils::DateTime & GetLastModificationTime() const
AWS_LOOKOUTMETRICS_API AlertSummary(Aws::Utils::Json::JsonView jsonValue)
bool AlertArnHasBeenSet() const
AlertSummary & WithAnomalyDetectorArn(Aws::String &&value)
void SetAlertArn(Aws::String &&value)
AlertSummary & WithLastModificationTime(const Aws::Utils::DateTime &value)
void SetAnomalyDetectorArn(const char *value)
AlertSummary & WithAnomalyDetectorArn(const Aws::String &value)
AlertSummary & AddTags(const char *key, Aws::String &&value)
bool CreationTimeHasBeenSet() const
AlertSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AlertSummary & WithAlertArn(const Aws::String &value)
void SetAlertArn(const char *value)
AlertSummary & WithAlertName(Aws::String &&value)
const Aws::String & GetAlertName() const
AlertSummary & WithAnomalyDetectorArn(const char *value)
bool AlertTypeHasBeenSet() const
bool AnomalyDetectorArnHasBeenSet() const
void SetAnomalyDetectorArn(Aws::String &&value)
void SetLastModificationTime(Aws::Utils::DateTime &&value)
void SetAlertArn(const Aws::String &value)
AlertSummary & WithAlertStatus(const AlertStatus &value)
int GetAlertSensitivityThreshold() const
AlertSummary & AddTags(Aws::String &&key, Aws::String &&value)
void SetAlertName(const Aws::String &value)
AlertSummary & WithAlertType(AlertType &&value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAnomalyDetectorArn(const Aws::String &value)
const AlertStatus & GetAlertStatus() const
AlertSummary & WithCreationTime(const Aws::Utils::DateTime &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
bool AlertStatusHasBeenSet() const
void SetAlertName(const char *value)
bool AlertNameHasBeenSet() const
AlertSummary & WithAlertSensitivityThreshold(int value)
AlertSummary & WithAlertName(const Aws::String &value)
AlertSummary & WithCreationTime(Aws::Utils::DateTime &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
AlertSummary & WithLastModificationTime(Aws::Utils::DateTime &&value)
AlertSummary & WithAlertArn(const char *value)
void SetAlertType(const AlertType &value)
AlertSummary & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::String & GetAlertArn() const
void SetAlertStatus(AlertStatus &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AlertSummary & AddTags(const Aws::String &key, const Aws::String &value)
AWS_LOOKOUTMETRICS_API AlertSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTMETRICS_API AlertSummary()
const Aws::Utils::DateTime & GetCreationTime() const
void SetAlertStatus(const AlertStatus &value)
bool TagsHasBeenSet() const
AlertSummary & AddTags(const char *key, const char *value)
bool LastModificationTimeHasBeenSet() const
const AlertType & GetAlertType() const
AlertSummary & AddTags(Aws::String &&key, const char *value)
void SetAlertName(Aws::String &&value)
AlertSummary & WithAlertName(const char *value)
AlertSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&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
Aws::Utils::Json::JsonValue JsonValue