AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Alert.h
1
6#pragma once
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>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace LookoutMetrics
27{
28namespace Model
29{
30
37 class Alert
38 {
39 public:
40 AWS_LOOKOUTMETRICS_API Alert() = default;
41 AWS_LOOKOUTMETRICS_API Alert(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LOOKOUTMETRICS_API Alert& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Action& GetAction() const { return m_action; }
51 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
52 template<typename ActionT = Action>
53 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
54 template<typename ActionT = Action>
55 Alert& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
57
59
62 inline const Aws::String& GetAlertDescription() const { return m_alertDescription; }
63 inline bool AlertDescriptionHasBeenSet() const { return m_alertDescriptionHasBeenSet; }
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>
67 Alert& WithAlertDescription(AlertDescriptionT&& value) { SetAlertDescription(std::forward<AlertDescriptionT>(value)); return *this;}
69
71
74 inline const Aws::String& GetAlertArn() const { return m_alertArn; }
75 inline bool AlertArnHasBeenSet() const { return m_alertArnHasBeenSet; }
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>
79 Alert& WithAlertArn(AlertArnT&& value) { SetAlertArn(std::forward<AlertArnT>(value)); return *this;}
81
83
86 inline const Aws::String& GetAnomalyDetectorArn() const { return m_anomalyDetectorArn; }
87 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
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>
91 Alert& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) { SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value)); return *this;}
93
95
98 inline const Aws::String& GetAlertName() const { return m_alertName; }
99 inline bool AlertNameHasBeenSet() const { return m_alertNameHasBeenSet; }
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>
103 Alert& WithAlertName(AlertNameT&& value) { SetAlertName(std::forward<AlertNameT>(value)); return *this;}
105
107
110 inline int GetAlertSensitivityThreshold() const { return m_alertSensitivityThreshold; }
111 inline bool AlertSensitivityThresholdHasBeenSet() const { return m_alertSensitivityThresholdHasBeenSet; }
112 inline void SetAlertSensitivityThreshold(int value) { m_alertSensitivityThresholdHasBeenSet = true; m_alertSensitivityThreshold = value; }
113 inline Alert& WithAlertSensitivityThreshold(int value) { SetAlertSensitivityThreshold(value); return *this;}
115
117
120 inline AlertType GetAlertType() const { return m_alertType; }
121 inline bool AlertTypeHasBeenSet() const { return m_alertTypeHasBeenSet; }
122 inline void SetAlertType(AlertType value) { m_alertTypeHasBeenSet = true; m_alertType = value; }
123 inline Alert& WithAlertType(AlertType value) { SetAlertType(value); return *this;}
125
127
130 inline AlertStatus GetAlertStatus() const { return m_alertStatus; }
131 inline bool AlertStatusHasBeenSet() const { return m_alertStatusHasBeenSet; }
132 inline void SetAlertStatus(AlertStatus value) { m_alertStatusHasBeenSet = true; m_alertStatus = value; }
133 inline Alert& WithAlertStatus(AlertStatus value) { SetAlertStatus(value); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetLastModificationTime() const { return m_lastModificationTime; }
141 inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
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>
145 Alert& WithLastModificationTime(LastModificationTimeT&& value) { SetLastModificationTime(std::forward<LastModificationTimeT>(value)); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
153 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
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>
157 Alert& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
159
161
165 inline const AlertFilters& GetAlertFilters() const { return m_alertFilters; }
166 inline bool AlertFiltersHasBeenSet() const { return m_alertFiltersHasBeenSet; }
167 template<typename AlertFiltersT = AlertFilters>
168 void SetAlertFilters(AlertFiltersT&& value) { m_alertFiltersHasBeenSet = true; m_alertFilters = std::forward<AlertFiltersT>(value); }
169 template<typename AlertFiltersT = AlertFilters>
170 Alert& WithAlertFilters(AlertFiltersT&& value) { SetAlertFilters(std::forward<AlertFiltersT>(value)); return *this;}
172 private:
173
174 Action m_action;
175 bool m_actionHasBeenSet = false;
176
177 Aws::String m_alertDescription;
178 bool m_alertDescriptionHasBeenSet = false;
179
180 Aws::String m_alertArn;
181 bool m_alertArnHasBeenSet = false;
182
183 Aws::String m_anomalyDetectorArn;
184 bool m_anomalyDetectorArnHasBeenSet = false;
185
186 Aws::String m_alertName;
187 bool m_alertNameHasBeenSet = false;
188
189 int m_alertSensitivityThreshold{0};
190 bool m_alertSensitivityThresholdHasBeenSet = false;
191
192 AlertType m_alertType{AlertType::NOT_SET};
193 bool m_alertTypeHasBeenSet = false;
194
195 AlertStatus m_alertStatus{AlertStatus::NOT_SET};
196 bool m_alertStatusHasBeenSet = false;
197
198 Aws::Utils::DateTime m_lastModificationTime{};
199 bool m_lastModificationTimeHasBeenSet = false;
200
201 Aws::Utils::DateTime m_creationTime{};
202 bool m_creationTimeHasBeenSet = false;
203
204 AlertFilters m_alertFilters;
205 bool m_alertFiltersHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace LookoutMetrics
210} // namespace Aws
Alert & WithAlertName(AlertNameT &&value)
Definition Alert.h:103
bool LastModificationTimeHasBeenSet() const
Definition Alert.h:141
Alert & WithAction(ActionT &&value)
Definition Alert.h:55
AWS_LOOKOUTMETRICS_API Alert(Aws::Utils::Json::JsonView jsonValue)
Alert & WithAlertStatus(AlertStatus value)
Definition Alert.h:133
const Aws::String & GetAlertArn() const
Definition Alert.h:74
void SetAlertType(AlertType value)
Definition Alert.h:122
Alert & WithAlertType(AlertType value)
Definition Alert.h:123
const Aws::String & GetAnomalyDetectorArn() const
Definition Alert.h:86
Alert & WithAlertFilters(AlertFiltersT &&value)
Definition Alert.h:170
const AlertFilters & GetAlertFilters() const
Definition Alert.h:165
const Aws::String & GetAlertName() const
Definition Alert.h:98
bool AlertStatusHasBeenSet() const
Definition Alert.h:131
void SetCreationTime(CreationTimeT &&value)
Definition Alert.h:155
bool AlertSensitivityThresholdHasBeenSet() const
Definition Alert.h:111
void SetAnomalyDetectorArn(AnomalyDetectorArnT &&value)
Definition Alert.h:89
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
bool AlertFiltersHasBeenSet() const
Definition Alert.h:166
Alert & WithLastModificationTime(LastModificationTimeT &&value)
Definition Alert.h:145
const Aws::Utils::DateTime & GetCreationTime() const
Definition Alert.h:152
void SetAlertArn(AlertArnT &&value)
Definition Alert.h:77
AlertType GetAlertType() const
Definition Alert.h:120
bool AlertArnHasBeenSet() const
Definition Alert.h:75
void SetAction(ActionT &&value)
Definition Alert.h:53
AlertStatus GetAlertStatus() const
Definition Alert.h:130
Alert & WithAlertSensitivityThreshold(int value)
Definition Alert.h:113
Alert & WithAlertArn(AlertArnT &&value)
Definition Alert.h:79
AWS_LOOKOUTMETRICS_API Alert()=default
bool AlertDescriptionHasBeenSet() const
Definition Alert.h:63
void SetLastModificationTime(LastModificationTimeT &&value)
Definition Alert.h:143
const Action & GetAction() const
Definition Alert.h:50
const Aws::Utils::DateTime & GetLastModificationTime() const
Definition Alert.h:140
Alert & WithAlertDescription(AlertDescriptionT &&value)
Definition Alert.h:67
Alert & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
Definition Alert.h:91
void SetAlertName(AlertNameT &&value)
Definition Alert.h:101
bool AlertNameHasBeenSet() const
Definition Alert.h:99
bool CreationTimeHasBeenSet() const
Definition Alert.h:153
Alert & WithCreationTime(CreationTimeT &&value)
Definition Alert.h:157
bool AnomalyDetectorArnHasBeenSet() const
Definition Alert.h:87
void SetAlertDescription(AlertDescriptionT &&value)
Definition Alert.h:65
void SetAlertFilters(AlertFiltersT &&value)
Definition Alert.h:168
AWS_LOOKOUTMETRICS_API Alert & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAlertStatus(AlertStatus value)
Definition Alert.h:132
const Aws::String & GetAlertDescription() const
Definition Alert.h:62
int GetAlertSensitivityThreshold() const
Definition Alert.h:110
void SetAlertSensitivityThreshold(int value)
Definition Alert.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue