AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; }
53 inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
54 inline Alert& WithAction(const Action& value) { SetAction(value); return *this;}
55 inline Alert& WithAction(Action&& value) { SetAction(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetAlertDescription() const{ return m_alertDescription; }
63 inline bool AlertDescriptionHasBeenSet() const { return m_alertDescriptionHasBeenSet; }
64 inline void SetAlertDescription(const Aws::String& value) { m_alertDescriptionHasBeenSet = true; m_alertDescription = value; }
65 inline void SetAlertDescription(Aws::String&& value) { m_alertDescriptionHasBeenSet = true; m_alertDescription = std::move(value); }
66 inline void SetAlertDescription(const char* value) { m_alertDescriptionHasBeenSet = true; m_alertDescription.assign(value); }
67 inline Alert& WithAlertDescription(const Aws::String& value) { SetAlertDescription(value); return *this;}
68 inline Alert& WithAlertDescription(Aws::String&& value) { SetAlertDescription(std::move(value)); return *this;}
69 inline Alert& WithAlertDescription(const char* value) { SetAlertDescription(value); return *this;}
71
73
76 inline const Aws::String& GetAlertArn() const{ return m_alertArn; }
77 inline bool AlertArnHasBeenSet() const { return m_alertArnHasBeenSet; }
78 inline void SetAlertArn(const Aws::String& value) { m_alertArnHasBeenSet = true; m_alertArn = value; }
79 inline void SetAlertArn(Aws::String&& value) { m_alertArnHasBeenSet = true; m_alertArn = std::move(value); }
80 inline void SetAlertArn(const char* value) { m_alertArnHasBeenSet = true; m_alertArn.assign(value); }
81 inline Alert& WithAlertArn(const Aws::String& value) { SetAlertArn(value); return *this;}
82 inline Alert& WithAlertArn(Aws::String&& value) { SetAlertArn(std::move(value)); return *this;}
83 inline Alert& WithAlertArn(const char* value) { SetAlertArn(value); return *this;}
85
87
90 inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; }
91 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
92 inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; }
93 inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); }
94 inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); }
95 inline Alert& WithAnomalyDetectorArn(const Aws::String& value) { SetAnomalyDetectorArn(value); return *this;}
96 inline Alert& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;}
97 inline Alert& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;}
99
101
104 inline const Aws::String& GetAlertName() const{ return m_alertName; }
105 inline bool AlertNameHasBeenSet() const { return m_alertNameHasBeenSet; }
106 inline void SetAlertName(const Aws::String& value) { m_alertNameHasBeenSet = true; m_alertName = value; }
107 inline void SetAlertName(Aws::String&& value) { m_alertNameHasBeenSet = true; m_alertName = std::move(value); }
108 inline void SetAlertName(const char* value) { m_alertNameHasBeenSet = true; m_alertName.assign(value); }
109 inline Alert& WithAlertName(const Aws::String& value) { SetAlertName(value); return *this;}
110 inline Alert& WithAlertName(Aws::String&& value) { SetAlertName(std::move(value)); return *this;}
111 inline Alert& WithAlertName(const char* value) { SetAlertName(value); return *this;}
113
115
118 inline int GetAlertSensitivityThreshold() const{ return m_alertSensitivityThreshold; }
119 inline bool AlertSensitivityThresholdHasBeenSet() const { return m_alertSensitivityThresholdHasBeenSet; }
120 inline void SetAlertSensitivityThreshold(int value) { m_alertSensitivityThresholdHasBeenSet = true; m_alertSensitivityThreshold = value; }
121 inline Alert& WithAlertSensitivityThreshold(int value) { SetAlertSensitivityThreshold(value); return *this;}
123
125
128 inline const AlertType& GetAlertType() const{ return m_alertType; }
129 inline bool AlertTypeHasBeenSet() const { return m_alertTypeHasBeenSet; }
130 inline void SetAlertType(const AlertType& value) { m_alertTypeHasBeenSet = true; m_alertType = value; }
131 inline void SetAlertType(AlertType&& value) { m_alertTypeHasBeenSet = true; m_alertType = std::move(value); }
132 inline Alert& WithAlertType(const AlertType& value) { SetAlertType(value); return *this;}
133 inline Alert& WithAlertType(AlertType&& value) { SetAlertType(std::move(value)); return *this;}
135
137
140 inline const AlertStatus& GetAlertStatus() const{ return m_alertStatus; }
141 inline bool AlertStatusHasBeenSet() const { return m_alertStatusHasBeenSet; }
142 inline void SetAlertStatus(const AlertStatus& value) { m_alertStatusHasBeenSet = true; m_alertStatus = value; }
143 inline void SetAlertStatus(AlertStatus&& value) { m_alertStatusHasBeenSet = true; m_alertStatus = std::move(value); }
144 inline Alert& WithAlertStatus(const AlertStatus& value) { SetAlertStatus(value); return *this;}
145 inline Alert& WithAlertStatus(AlertStatus&& value) { SetAlertStatus(std::move(value)); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }
153 inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
154 inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; }
155 inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); }
156 inline Alert& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}
157 inline Alert& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}
159
161
164 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
165 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
166 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
167 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
168 inline Alert& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
169 inline Alert& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
171
173
177 inline const AlertFilters& GetAlertFilters() const{ return m_alertFilters; }
178 inline bool AlertFiltersHasBeenSet() const { return m_alertFiltersHasBeenSet; }
179 inline void SetAlertFilters(const AlertFilters& value) { m_alertFiltersHasBeenSet = true; m_alertFilters = value; }
180 inline void SetAlertFilters(AlertFilters&& value) { m_alertFiltersHasBeenSet = true; m_alertFilters = std::move(value); }
181 inline Alert& WithAlertFilters(const AlertFilters& value) { SetAlertFilters(value); return *this;}
182 inline Alert& WithAlertFilters(AlertFilters&& value) { SetAlertFilters(std::move(value)); return *this;}
184 private:
185
186 Action m_action;
187 bool m_actionHasBeenSet = false;
188
189 Aws::String m_alertDescription;
190 bool m_alertDescriptionHasBeenSet = false;
191
192 Aws::String m_alertArn;
193 bool m_alertArnHasBeenSet = false;
194
195 Aws::String m_anomalyDetectorArn;
196 bool m_anomalyDetectorArnHasBeenSet = false;
197
198 Aws::String m_alertName;
199 bool m_alertNameHasBeenSet = false;
200
201 int m_alertSensitivityThreshold;
202 bool m_alertSensitivityThresholdHasBeenSet = false;
203
204 AlertType m_alertType;
205 bool m_alertTypeHasBeenSet = false;
206
207 AlertStatus m_alertStatus;
208 bool m_alertStatusHasBeenSet = false;
209
210 Aws::Utils::DateTime m_lastModificationTime;
211 bool m_lastModificationTimeHasBeenSet = false;
212
213 Aws::Utils::DateTime m_creationTime;
214 bool m_creationTimeHasBeenSet = false;
215
216 AlertFilters m_alertFilters;
217 bool m_alertFiltersHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace LookoutMetrics
222} // namespace Aws
void SetAction(const Action &value)
Definition Alert.h:52
void SetAlertArn(Aws::String &&value)
Definition Alert.h:79
bool LastModificationTimeHasBeenSet() const
Definition Alert.h:153
Alert & WithAlertName(Aws::String &&value)
Definition Alert.h:110
void SetLastModificationTime(const Aws::Utils::DateTime &value)
Definition Alert.h:154
void SetAnomalyDetectorArn(Aws::String &&value)
Definition Alert.h:93
void SetAlertType(AlertType &&value)
Definition Alert.h:131
Alert & WithAction(const Action &value)
Definition Alert.h:54
Alert & WithAlertName(const char *value)
Definition Alert.h:111
AWS_LOOKOUTMETRICS_API Alert(Aws::Utils::Json::JsonView jsonValue)
void SetAnomalyDetectorArn(const Aws::String &value)
Definition Alert.h:92
void SetAlertType(const AlertType &value)
Definition Alert.h:130
const Aws::String & GetAlertArn() const
Definition Alert.h:76
Alert & WithAlertDescription(const char *value)
Definition Alert.h:69
const Aws::String & GetAnomalyDetectorArn() const
Definition Alert.h:90
Alert & WithAlertArn(Aws::String &&value)
Definition Alert.h:82
Alert & WithAnomalyDetectorArn(const Aws::String &value)
Definition Alert.h:95
const AlertStatus & GetAlertStatus() const
Definition Alert.h:140
const AlertFilters & GetAlertFilters() const
Definition Alert.h:177
Alert & WithAlertName(const Aws::String &value)
Definition Alert.h:109
const Aws::String & GetAlertName() const
Definition Alert.h:104
bool AlertStatusHasBeenSet() const
Definition Alert.h:141
Alert & WithLastModificationTime(const Aws::Utils::DateTime &value)
Definition Alert.h:156
void SetAlertDescription(Aws::String &&value)
Definition Alert.h:65
void SetAlertArn(const char *value)
Definition Alert.h:80
bool AlertSensitivityThresholdHasBeenSet() const
Definition Alert.h:119
Alert & WithAction(Action &&value)
Definition Alert.h:55
void SetAlertDescription(const char *value)
Definition Alert.h:66
void SetAlertDescription(const Aws::String &value)
Definition Alert.h:64
Alert & WithAlertType(AlertType &&value)
Definition Alert.h:133
void SetAlertArn(const Aws::String &value)
Definition Alert.h:78
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
bool AlertFiltersHasBeenSet() const
Definition Alert.h:178
const AlertType & GetAlertType() const
Definition Alert.h:128
const Aws::Utils::DateTime & GetCreationTime() const
Definition Alert.h:164
bool AlertArnHasBeenSet() const
Definition Alert.h:77
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Alert.h:167
AWS_LOOKOUTMETRICS_API Alert()
Alert & WithAlertSensitivityThreshold(int value)
Definition Alert.h:121
Alert & WithAlertFilters(AlertFilters &&value)
Definition Alert.h:182
bool AlertDescriptionHasBeenSet() const
Definition Alert.h:63
Alert & WithAlertStatus(const AlertStatus &value)
Definition Alert.h:144
const Action & GetAction() const
Definition Alert.h:50
const Aws::Utils::DateTime & GetLastModificationTime() const
Definition Alert.h:152
Alert & WithAnomalyDetectorArn(const char *value)
Definition Alert.h:97
Alert & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Alert.h:168
void SetAlertName(const char *value)
Definition Alert.h:108
Alert & WithAlertArn(const char *value)
Definition Alert.h:83
Alert & WithAlertDescription(const Aws::String &value)
Definition Alert.h:67
void SetAction(Action &&value)
Definition Alert.h:53
void SetAlertName(Aws::String &&value)
Definition Alert.h:107
Alert & WithAlertStatus(AlertStatus &&value)
Definition Alert.h:145
Alert & WithAlertFilters(const AlertFilters &value)
Definition Alert.h:181
void SetAlertStatus(AlertStatus &&value)
Definition Alert.h:143
Alert & WithAnomalyDetectorArn(Aws::String &&value)
Definition Alert.h:96
bool CreationTimeHasBeenSet() const
Definition Alert.h:165
Alert & WithAlertDescription(Aws::String &&value)
Definition Alert.h:68
bool AnomalyDetectorArnHasBeenSet() const
Definition Alert.h:91
void SetAlertName(const Aws::String &value)
Definition Alert.h:106
AWS_LOOKOUTMETRICS_API Alert & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAlertFilters(AlertFilters &&value)
Definition Alert.h:180
Alert & WithLastModificationTime(Aws::Utils::DateTime &&value)
Definition Alert.h:157
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Alert.h:166
Alert & WithAlertArn(const Aws::String &value)
Definition Alert.h:81
void SetAnomalyDetectorArn(const char *value)
Definition Alert.h:94
const Aws::String & GetAlertDescription() const
Definition Alert.h:62
int GetAlertSensitivityThreshold() const
Definition Alert.h:118
void SetAlertSensitivityThreshold(int value)
Definition Alert.h:120
Alert & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Alert.h:169
void SetLastModificationTime(Aws::Utils::DateTime &&value)
Definition Alert.h:155
void SetAlertFilters(const AlertFilters &value)
Definition Alert.h:179
void SetAlertStatus(const AlertStatus &value)
Definition Alert.h:142
Alert & WithAlertType(const AlertType &value)
Definition Alert.h:132
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue