AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ReactiveAnomaly.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/AnomalyReportedTimeRange.h>
11#include <aws/devops-guru/model/AnomalyResource.h>
12#include <aws/devops-guru/model/AnomalySeverity.h>
13#include <aws/devops-guru/model/AnomalySourceDetails.h>
14#include <aws/devops-guru/model/AnomalyStatus.h>
15#include <aws/devops-guru/model/AnomalyTimeRange.h>
16#include <aws/devops-guru/model/AnomalyType.h>
17#include <aws/devops-guru/model/ResourceCollection.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace DevOpsGuru {
29namespace Model {
30
38 public:
39 AWS_DEVOPSGURU_API ReactiveAnomaly() = default;
40 AWS_DEVOPSGURU_API ReactiveAnomaly(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template <typename IdT = Aws::String>
51 void SetId(IdT&& value) {
52 m_idHasBeenSet = true;
53 m_id = std::forward<IdT>(value);
54 }
55 template <typename IdT = Aws::String>
56 ReactiveAnomaly& WithId(IdT&& value) {
57 SetId(std::forward<IdT>(value));
58 return *this;
59 }
61
63
69 inline AnomalySeverity GetSeverity() const { return m_severity; }
70 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
71 inline void SetSeverity(AnomalySeverity value) {
72 m_severityHasBeenSet = true;
73 m_severity = value;
74 }
76 SetSeverity(value);
77 return *this;
78 }
80
82
85 inline AnomalyStatus GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(AnomalyStatus value) {
88 m_statusHasBeenSet = true;
89 m_status = value;
90 }
92 SetStatus(value);
93 return *this;
94 }
96
98
99 inline const AnomalyTimeRange& GetAnomalyTimeRange() const { return m_anomalyTimeRange; }
100 inline bool AnomalyTimeRangeHasBeenSet() const { return m_anomalyTimeRangeHasBeenSet; }
101 template <typename AnomalyTimeRangeT = AnomalyTimeRange>
102 void SetAnomalyTimeRange(AnomalyTimeRangeT&& value) {
103 m_anomalyTimeRangeHasBeenSet = true;
104 m_anomalyTimeRange = std::forward<AnomalyTimeRangeT>(value);
105 }
106 template <typename AnomalyTimeRangeT = AnomalyTimeRange>
107 ReactiveAnomaly& WithAnomalyTimeRange(AnomalyTimeRangeT&& value) {
108 SetAnomalyTimeRange(std::forward<AnomalyTimeRangeT>(value));
109 return *this;
110 }
112
114
118 inline const AnomalyReportedTimeRange& GetAnomalyReportedTimeRange() const { return m_anomalyReportedTimeRange; }
119 inline bool AnomalyReportedTimeRangeHasBeenSet() const { return m_anomalyReportedTimeRangeHasBeenSet; }
120 template <typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
121 void SetAnomalyReportedTimeRange(AnomalyReportedTimeRangeT&& value) {
122 m_anomalyReportedTimeRangeHasBeenSet = true;
123 m_anomalyReportedTimeRange = std::forward<AnomalyReportedTimeRangeT>(value);
124 }
125 template <typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
126 ReactiveAnomaly& WithAnomalyReportedTimeRange(AnomalyReportedTimeRangeT&& value) {
127 SetAnomalyReportedTimeRange(std::forward<AnomalyReportedTimeRangeT>(value));
128 return *this;
129 }
131
133
137 inline const AnomalySourceDetails& GetSourceDetails() const { return m_sourceDetails; }
138 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
139 template <typename SourceDetailsT = AnomalySourceDetails>
140 void SetSourceDetails(SourceDetailsT&& value) {
141 m_sourceDetailsHasBeenSet = true;
142 m_sourceDetails = std::forward<SourceDetailsT>(value);
143 }
144 template <typename SourceDetailsT = AnomalySourceDetails>
145 ReactiveAnomaly& WithSourceDetails(SourceDetailsT&& value) {
146 SetSourceDetails(std::forward<SourceDetailsT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::String& GetAssociatedInsightId() const { return m_associatedInsightId; }
157 inline bool AssociatedInsightIdHasBeenSet() const { return m_associatedInsightIdHasBeenSet; }
158 template <typename AssociatedInsightIdT = Aws::String>
159 void SetAssociatedInsightId(AssociatedInsightIdT&& value) {
160 m_associatedInsightIdHasBeenSet = true;
161 m_associatedInsightId = std::forward<AssociatedInsightIdT>(value);
162 }
163 template <typename AssociatedInsightIdT = Aws::String>
164 ReactiveAnomaly& WithAssociatedInsightId(AssociatedInsightIdT&& value) {
165 SetAssociatedInsightId(std::forward<AssociatedInsightIdT>(value));
166 return *this;
167 }
169
171
172 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
173 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
174 template <typename ResourceCollectionT = ResourceCollection>
175 void SetResourceCollection(ResourceCollectionT&& value) {
176 m_resourceCollectionHasBeenSet = true;
177 m_resourceCollection = std::forward<ResourceCollectionT>(value);
178 }
179 template <typename ResourceCollectionT = ResourceCollection>
180 ReactiveAnomaly& WithResourceCollection(ResourceCollectionT&& value) {
181 SetResourceCollection(std::forward<ResourceCollectionT>(value));
182 return *this;
183 }
185
187
193 inline AnomalyType GetType() const { return m_type; }
194 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
195 inline void SetType(AnomalyType value) {
196 m_typeHasBeenSet = true;
197 m_type = value;
198 }
200 SetType(value);
201 return *this;
202 }
204
206
209 inline const Aws::String& GetName() const { return m_name; }
210 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
211 template <typename NameT = Aws::String>
212 void SetName(NameT&& value) {
213 m_nameHasBeenSet = true;
214 m_name = std::forward<NameT>(value);
215 }
216 template <typename NameT = Aws::String>
217 ReactiveAnomaly& WithName(NameT&& value) {
218 SetName(std::forward<NameT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetDescription() const { return m_description; }
228 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
229 template <typename DescriptionT = Aws::String>
230 void SetDescription(DescriptionT&& value) {
231 m_descriptionHasBeenSet = true;
232 m_description = std::forward<DescriptionT>(value);
233 }
234 template <typename DescriptionT = Aws::String>
235 ReactiveAnomaly& WithDescription(DescriptionT&& value) {
236 SetDescription(std::forward<DescriptionT>(value));
237 return *this;
238 }
240
242
246 inline const Aws::String& GetCausalAnomalyId() const { return m_causalAnomalyId; }
247 inline bool CausalAnomalyIdHasBeenSet() const { return m_causalAnomalyIdHasBeenSet; }
248 template <typename CausalAnomalyIdT = Aws::String>
249 void SetCausalAnomalyId(CausalAnomalyIdT&& value) {
250 m_causalAnomalyIdHasBeenSet = true;
251 m_causalAnomalyId = std::forward<CausalAnomalyIdT>(value);
252 }
253 template <typename CausalAnomalyIdT = Aws::String>
254 ReactiveAnomaly& WithCausalAnomalyId(CausalAnomalyIdT&& value) {
255 SetCausalAnomalyId(std::forward<CausalAnomalyIdT>(value));
256 return *this;
257 }
259
261
265 inline const Aws::Vector<AnomalyResource>& GetAnomalyResources() const { return m_anomalyResources; }
266 inline bool AnomalyResourcesHasBeenSet() const { return m_anomalyResourcesHasBeenSet; }
267 template <typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
268 void SetAnomalyResources(AnomalyResourcesT&& value) {
269 m_anomalyResourcesHasBeenSet = true;
270 m_anomalyResources = std::forward<AnomalyResourcesT>(value);
271 }
272 template <typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
273 ReactiveAnomaly& WithAnomalyResources(AnomalyResourcesT&& value) {
274 SetAnomalyResources(std::forward<AnomalyResourcesT>(value));
275 return *this;
276 }
277 template <typename AnomalyResourcesT = AnomalyResource>
278 ReactiveAnomaly& AddAnomalyResources(AnomalyResourcesT&& value) {
279 m_anomalyResourcesHasBeenSet = true;
280 m_anomalyResources.emplace_back(std::forward<AnomalyResourcesT>(value));
281 return *this;
282 }
284 private:
285 Aws::String m_id;
286
288
290
291 AnomalyTimeRange m_anomalyTimeRange;
292
293 AnomalyReportedTimeRange m_anomalyReportedTimeRange;
294
295 AnomalySourceDetails m_sourceDetails;
296
297 Aws::String m_associatedInsightId;
298
299 ResourceCollection m_resourceCollection;
300
302
303 Aws::String m_name;
304
305 Aws::String m_description;
306
307 Aws::String m_causalAnomalyId;
308
309 Aws::Vector<AnomalyResource> m_anomalyResources;
310 bool m_idHasBeenSet = false;
311 bool m_severityHasBeenSet = false;
312 bool m_statusHasBeenSet = false;
313 bool m_anomalyTimeRangeHasBeenSet = false;
314 bool m_anomalyReportedTimeRangeHasBeenSet = false;
315 bool m_sourceDetailsHasBeenSet = false;
316 bool m_associatedInsightIdHasBeenSet = false;
317 bool m_resourceCollectionHasBeenSet = false;
318 bool m_typeHasBeenSet = false;
319 bool m_nameHasBeenSet = false;
320 bool m_descriptionHasBeenSet = false;
321 bool m_causalAnomalyIdHasBeenSet = false;
322 bool m_anomalyResourcesHasBeenSet = false;
323};
324
325} // namespace Model
326} // namespace DevOpsGuru
327} // namespace Aws
ReactiveAnomaly & WithResourceCollection(ResourceCollectionT &&value)
ReactiveAnomaly & WithSeverity(AnomalySeverity value)
void SetAssociatedInsightId(AssociatedInsightIdT &&value)
const Aws::Vector< AnomalyResource > & GetAnomalyResources() const
void SetAnomalyReportedTimeRange(AnomalyReportedTimeRangeT &&value)
ReactiveAnomaly & WithDescription(DescriptionT &&value)
ReactiveAnomaly & WithId(IdT &&value)
const AnomalyTimeRange & GetAnomalyTimeRange() const
ReactiveAnomaly & WithName(NameT &&value)
const ResourceCollection & GetResourceCollection() const
void SetCausalAnomalyId(CausalAnomalyIdT &&value)
void SetDescription(DescriptionT &&value)
void SetResourceCollection(ResourceCollectionT &&value)
ReactiveAnomaly & WithAnomalyReportedTimeRange(AnomalyReportedTimeRangeT &&value)
const AnomalySourceDetails & GetSourceDetails() const
ReactiveAnomaly & WithType(AnomalyType value)
ReactiveAnomaly & WithAnomalyTimeRange(AnomalyTimeRangeT &&value)
void SetAnomalyResources(AnomalyResourcesT &&value)
void SetSeverity(AnomalySeverity value)
ReactiveAnomaly & WithCausalAnomalyId(CausalAnomalyIdT &&value)
AWS_DEVOPSGURU_API ReactiveAnomaly()=default
const Aws::String & GetName() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
ReactiveAnomaly & WithSourceDetails(SourceDetailsT &&value)
void SetAnomalyTimeRange(AnomalyTimeRangeT &&value)
const AnomalyReportedTimeRange & GetAnomalyReportedTimeRange() const
const Aws::String & GetAssociatedInsightId() const
ReactiveAnomaly & AddAnomalyResources(AnomalyResourcesT &&value)
ReactiveAnomaly & WithStatus(AnomalyStatus value)
const Aws::String & GetId() const
const Aws::String & GetCausalAnomalyId() const
AWS_DEVOPSGURU_API ReactiveAnomaly(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API ReactiveAnomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
ReactiveAnomaly & WithAnomalyResources(AnomalyResourcesT &&value)
void SetSourceDetails(SourceDetailsT &&value)
const Aws::String & GetDescription() const
ReactiveAnomaly & WithAssociatedInsightId(AssociatedInsightIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue