7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/lookoutmetrics/model/Action.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lookoutmetrics/model/AlertType.h>
11#include <aws/lookoutmetrics/model/AlertStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/lookoutmetrics/model/AlertFilters.h>
26namespace LookoutMetrics
40 AWS_LOOKOUTMETRICS_API
Alert() =
default;
52 template<
typename ActionT = Action>
53 void SetAction(ActionT&& value) { m_actionHasBeenSet =
true; m_action = std::forward<ActionT>(value); }
54 template<
typename ActionT = Action>
64 template<
typename AlertDescriptionT = Aws::String>
65 void SetAlertDescription(AlertDescriptionT&& value) { m_alertDescriptionHasBeenSet =
true; m_alertDescription = std::forward<AlertDescriptionT>(value); }
66 template<
typename AlertDescriptionT = Aws::String>
76 template<
typename AlertArnT = Aws::String>
77 void SetAlertArn(AlertArnT&& value) { m_alertArnHasBeenSet =
true; m_alertArn = std::forward<AlertArnT>(value); }
78 template<
typename AlertArnT = Aws::String>
88 template<
typename AnomalyDetectorArnT = Aws::String>
89 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) { m_anomalyDetectorArnHasBeenSet =
true; m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value); }
90 template<
typename AnomalyDetectorArnT = Aws::String>
100 template<
typename AlertNameT = Aws::String>
101 void SetAlertName(AlertNameT&& value) { m_alertNameHasBeenSet =
true; m_alertName = std::forward<AlertNameT>(value); }
102 template<
typename AlertNameT = Aws::String>
142 template<
typename LastModificationTimeT = Aws::Utils::DateTime>
143 void SetLastModificationTime(LastModificationTimeT&& value) { m_lastModificationTimeHasBeenSet =
true; m_lastModificationTime = std::forward<LastModificationTimeT>(value); }
144 template<
typename LastModificationTimeT = Aws::Utils::DateTime>
154 template<
typename CreationTimeT = Aws::Utils::DateTime>
155 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet =
true; m_creationTime = std::forward<CreationTimeT>(value); }
156 template<
typename CreationTimeT = Aws::Utils::DateTime>
167 template<
typename AlertFiltersT = AlertFilters>
168 void SetAlertFilters(AlertFiltersT&& value) { m_alertFiltersHasBeenSet =
true; m_alertFilters = std::forward<AlertFiltersT>(value); }
169 template<
typename AlertFiltersT = AlertFilters>
175 bool m_actionHasBeenSet =
false;
178 bool m_alertDescriptionHasBeenSet =
false;
181 bool m_alertArnHasBeenSet =
false;
184 bool m_anomalyDetectorArnHasBeenSet =
false;
187 bool m_alertNameHasBeenSet =
false;
189 int m_alertSensitivityThreshold{0};
190 bool m_alertSensitivityThresholdHasBeenSet =
false;
193 bool m_alertTypeHasBeenSet =
false;
196 bool m_alertStatusHasBeenSet =
false;
199 bool m_lastModificationTimeHasBeenSet =
false;
202 bool m_creationTimeHasBeenSet =
false;
204 AlertFilters m_alertFilters;
205 bool m_alertFiltersHasBeenSet =
false;
Alert & WithAlertName(AlertNameT &&value)
bool LastModificationTimeHasBeenSet() const
Alert & WithAction(ActionT &&value)
bool AlertTypeHasBeenSet() const
AWS_LOOKOUTMETRICS_API Alert(Aws::Utils::Json::JsonView jsonValue)
Alert & WithAlertStatus(AlertStatus value)
const Aws::String & GetAlertArn() const
void SetAlertType(AlertType value)
Alert & WithAlertType(AlertType value)
const Aws::String & GetAnomalyDetectorArn() const
Alert & WithAlertFilters(AlertFiltersT &&value)
const AlertFilters & GetAlertFilters() const
const Aws::String & GetAlertName() const
bool AlertStatusHasBeenSet() const
void SetCreationTime(CreationTimeT &&value)
bool AlertSensitivityThresholdHasBeenSet() const
void SetAnomalyDetectorArn(AnomalyDetectorArnT &&value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
bool AlertFiltersHasBeenSet() const
Alert & WithLastModificationTime(LastModificationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetAlertArn(AlertArnT &&value)
bool ActionHasBeenSet() const
AlertType GetAlertType() const
bool AlertArnHasBeenSet() const
void SetAction(ActionT &&value)
AlertStatus GetAlertStatus() const
Alert & WithAlertSensitivityThreshold(int value)
Alert & WithAlertArn(AlertArnT &&value)
AWS_LOOKOUTMETRICS_API Alert()=default
bool AlertDescriptionHasBeenSet() const
void SetLastModificationTime(LastModificationTimeT &&value)
const Action & GetAction() const
const Aws::Utils::DateTime & GetLastModificationTime() const
Alert & WithAlertDescription(AlertDescriptionT &&value)
Alert & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
void SetAlertName(AlertNameT &&value)
bool AlertNameHasBeenSet() const
bool CreationTimeHasBeenSet() const
Alert & WithCreationTime(CreationTimeT &&value)
bool AnomalyDetectorArnHasBeenSet() const
void SetAlertDescription(AlertDescriptionT &&value)
void SetAlertFilters(AlertFiltersT &&value)
AWS_LOOKOUTMETRICS_API Alert & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAlertStatus(AlertStatus value)
const Aws::String & GetAlertDescription() const
int GetAlertSensitivityThreshold() const
void SetAlertSensitivityThreshold(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue