AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ProactiveAnomaly.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
11#include <aws/devops-guru/model/AnomalyReportedTimeRange.h>
12#include <aws/devops-guru/model/AnomalyResource.h>
13#include <aws/devops-guru/model/AnomalySeverity.h>
14#include <aws/devops-guru/model/AnomalySourceDetails.h>
15#include <aws/devops-guru/model/AnomalySourceMetadata.h>
16#include <aws/devops-guru/model/AnomalyStatus.h>
17#include <aws/devops-guru/model/AnomalyTimeRange.h>
18#include <aws/devops-guru/model/PredictionTimeRange.h>
19#include <aws/devops-guru/model/ResourceCollection.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace DevOpsGuru {
31namespace Model {
32
40 public:
41 AWS_DEVOPSGURU_API ProactiveAnomaly() = default;
42 AWS_DEVOPSGURU_API ProactiveAnomaly(Aws::Utils::Json::JsonView jsonValue);
44 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template <typename IdT = Aws::String>
53 void SetId(IdT&& value) {
54 m_idHasBeenSet = true;
55 m_id = std::forward<IdT>(value);
56 }
57 template <typename IdT = Aws::String>
58 ProactiveAnomaly& WithId(IdT&& value) {
59 SetId(std::forward<IdT>(value));
60 return *this;
61 }
63
65
71 inline AnomalySeverity GetSeverity() const { return m_severity; }
72 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
73 inline void SetSeverity(AnomalySeverity value) {
74 m_severityHasBeenSet = true;
75 m_severity = value;
76 }
78 SetSeverity(value);
79 return *this;
80 }
82
84
87 inline AnomalyStatus GetStatus() const { return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 inline void SetStatus(AnomalyStatus value) {
90 m_statusHasBeenSet = true;
91 m_status = value;
92 }
94 SetStatus(value);
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
104 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
105 template <typename UpdateTimeT = Aws::Utils::DateTime>
106 void SetUpdateTime(UpdateTimeT&& value) {
107 m_updateTimeHasBeenSet = true;
108 m_updateTime = std::forward<UpdateTimeT>(value);
109 }
110 template <typename UpdateTimeT = Aws::Utils::DateTime>
111 ProactiveAnomaly& WithUpdateTime(UpdateTimeT&& value) {
112 SetUpdateTime(std::forward<UpdateTimeT>(value));
113 return *this;
114 }
116
118
119 inline const AnomalyTimeRange& GetAnomalyTimeRange() const { return m_anomalyTimeRange; }
120 inline bool AnomalyTimeRangeHasBeenSet() const { return m_anomalyTimeRangeHasBeenSet; }
121 template <typename AnomalyTimeRangeT = AnomalyTimeRange>
122 void SetAnomalyTimeRange(AnomalyTimeRangeT&& value) {
123 m_anomalyTimeRangeHasBeenSet = true;
124 m_anomalyTimeRange = std::forward<AnomalyTimeRangeT>(value);
125 }
126 template <typename AnomalyTimeRangeT = AnomalyTimeRange>
127 ProactiveAnomaly& WithAnomalyTimeRange(AnomalyTimeRangeT&& value) {
128 SetAnomalyTimeRange(std::forward<AnomalyTimeRangeT>(value));
129 return *this;
130 }
132
134
138 inline const AnomalyReportedTimeRange& GetAnomalyReportedTimeRange() const { return m_anomalyReportedTimeRange; }
139 inline bool AnomalyReportedTimeRangeHasBeenSet() const { return m_anomalyReportedTimeRangeHasBeenSet; }
140 template <typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
141 void SetAnomalyReportedTimeRange(AnomalyReportedTimeRangeT&& value) {
142 m_anomalyReportedTimeRangeHasBeenSet = true;
143 m_anomalyReportedTimeRange = std::forward<AnomalyReportedTimeRangeT>(value);
144 }
145 template <typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
146 ProactiveAnomaly& WithAnomalyReportedTimeRange(AnomalyReportedTimeRangeT&& value) {
147 SetAnomalyReportedTimeRange(std::forward<AnomalyReportedTimeRangeT>(value));
148 return *this;
149 }
151
153
154 inline const PredictionTimeRange& GetPredictionTimeRange() const { return m_predictionTimeRange; }
155 inline bool PredictionTimeRangeHasBeenSet() const { return m_predictionTimeRangeHasBeenSet; }
156 template <typename PredictionTimeRangeT = PredictionTimeRange>
157 void SetPredictionTimeRange(PredictionTimeRangeT&& value) {
158 m_predictionTimeRangeHasBeenSet = true;
159 m_predictionTimeRange = std::forward<PredictionTimeRangeT>(value);
160 }
161 template <typename PredictionTimeRangeT = PredictionTimeRange>
162 ProactiveAnomaly& WithPredictionTimeRange(PredictionTimeRangeT&& value) {
163 SetPredictionTimeRange(std::forward<PredictionTimeRangeT>(value));
164 return *this;
165 }
167
169
173 inline const AnomalySourceDetails& GetSourceDetails() const { return m_sourceDetails; }
174 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
175 template <typename SourceDetailsT = AnomalySourceDetails>
176 void SetSourceDetails(SourceDetailsT&& value) {
177 m_sourceDetailsHasBeenSet = true;
178 m_sourceDetails = std::forward<SourceDetailsT>(value);
179 }
180 template <typename SourceDetailsT = AnomalySourceDetails>
181 ProactiveAnomaly& WithSourceDetails(SourceDetailsT&& value) {
182 SetSourceDetails(std::forward<SourceDetailsT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::String& GetAssociatedInsightId() const { return m_associatedInsightId; }
193 inline bool AssociatedInsightIdHasBeenSet() const { return m_associatedInsightIdHasBeenSet; }
194 template <typename AssociatedInsightIdT = Aws::String>
195 void SetAssociatedInsightId(AssociatedInsightIdT&& value) {
196 m_associatedInsightIdHasBeenSet = true;
197 m_associatedInsightId = std::forward<AssociatedInsightIdT>(value);
198 }
199 template <typename AssociatedInsightIdT = Aws::String>
200 ProactiveAnomaly& WithAssociatedInsightId(AssociatedInsightIdT&& value) {
201 SetAssociatedInsightId(std::forward<AssociatedInsightIdT>(value));
202 return *this;
203 }
205
207
208 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
209 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
210 template <typename ResourceCollectionT = ResourceCollection>
211 void SetResourceCollection(ResourceCollectionT&& value) {
212 m_resourceCollectionHasBeenSet = true;
213 m_resourceCollection = std::forward<ResourceCollectionT>(value);
214 }
215 template <typename ResourceCollectionT = ResourceCollection>
216 ProactiveAnomaly& WithResourceCollection(ResourceCollectionT&& value) {
217 SetResourceCollection(std::forward<ResourceCollectionT>(value));
218 return *this;
219 }
221
223
228 inline double GetLimit() const { return m_limit; }
229 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
230 inline void SetLimit(double value) {
231 m_limitHasBeenSet = true;
232 m_limit = value;
233 }
234 inline ProactiveAnomaly& WithLimit(double value) {
235 SetLimit(value);
236 return *this;
237 }
239
241
244 inline const AnomalySourceMetadata& GetSourceMetadata() const { return m_sourceMetadata; }
245 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
246 template <typename SourceMetadataT = AnomalySourceMetadata>
247 void SetSourceMetadata(SourceMetadataT&& value) {
248 m_sourceMetadataHasBeenSet = true;
249 m_sourceMetadata = std::forward<SourceMetadataT>(value);
250 }
251 template <typename SourceMetadataT = AnomalySourceMetadata>
252 ProactiveAnomaly& WithSourceMetadata(SourceMetadataT&& value) {
253 SetSourceMetadata(std::forward<SourceMetadataT>(value));
254 return *this;
255 }
257
259
263 inline const Aws::Vector<AnomalyResource>& GetAnomalyResources() const { return m_anomalyResources; }
264 inline bool AnomalyResourcesHasBeenSet() const { return m_anomalyResourcesHasBeenSet; }
265 template <typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
266 void SetAnomalyResources(AnomalyResourcesT&& value) {
267 m_anomalyResourcesHasBeenSet = true;
268 m_anomalyResources = std::forward<AnomalyResourcesT>(value);
269 }
270 template <typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
271 ProactiveAnomaly& WithAnomalyResources(AnomalyResourcesT&& value) {
272 SetAnomalyResources(std::forward<AnomalyResourcesT>(value));
273 return *this;
274 }
275 template <typename AnomalyResourcesT = AnomalyResource>
276 ProactiveAnomaly& AddAnomalyResources(AnomalyResourcesT&& value) {
277 m_anomalyResourcesHasBeenSet = true;
278 m_anomalyResources.emplace_back(std::forward<AnomalyResourcesT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::String& GetDescription() const { return m_description; }
288 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
289 template <typename DescriptionT = Aws::String>
290 void SetDescription(DescriptionT&& value) {
291 m_descriptionHasBeenSet = true;
292 m_description = std::forward<DescriptionT>(value);
293 }
294 template <typename DescriptionT = Aws::String>
295 ProactiveAnomaly& WithDescription(DescriptionT&& value) {
296 SetDescription(std::forward<DescriptionT>(value));
297 return *this;
298 }
300 private:
301 Aws::String m_id;
302
304
306
307 Aws::Utils::DateTime m_updateTime{};
308
309 AnomalyTimeRange m_anomalyTimeRange;
310
311 AnomalyReportedTimeRange m_anomalyReportedTimeRange;
312
313 PredictionTimeRange m_predictionTimeRange;
314
315 AnomalySourceDetails m_sourceDetails;
316
317 Aws::String m_associatedInsightId;
318
319 ResourceCollection m_resourceCollection;
320
321 double m_limit{0.0};
322
323 AnomalySourceMetadata m_sourceMetadata;
324
325 Aws::Vector<AnomalyResource> m_anomalyResources;
326
327 Aws::String m_description;
328 bool m_idHasBeenSet = false;
329 bool m_severityHasBeenSet = false;
330 bool m_statusHasBeenSet = false;
331 bool m_updateTimeHasBeenSet = false;
332 bool m_anomalyTimeRangeHasBeenSet = false;
333 bool m_anomalyReportedTimeRangeHasBeenSet = false;
334 bool m_predictionTimeRangeHasBeenSet = false;
335 bool m_sourceDetailsHasBeenSet = false;
336 bool m_associatedInsightIdHasBeenSet = false;
337 bool m_resourceCollectionHasBeenSet = false;
338 bool m_limitHasBeenSet = false;
339 bool m_sourceMetadataHasBeenSet = false;
340 bool m_anomalyResourcesHasBeenSet = false;
341 bool m_descriptionHasBeenSet = false;
342};
343
344} // namespace Model
345} // namespace DevOpsGuru
346} // namespace Aws
ProactiveAnomaly & WithAnomalyTimeRange(AnomalyTimeRangeT &&value)
const Aws::String & GetDescription() const
const AnomalySourceDetails & GetSourceDetails() const
void SetSeverity(AnomalySeverity value)
const PredictionTimeRange & GetPredictionTimeRange() const
void SetDescription(DescriptionT &&value)
ProactiveAnomaly & WithDescription(DescriptionT &&value)
ProactiveAnomaly & WithSourceMetadata(SourceMetadataT &&value)
void SetPredictionTimeRange(PredictionTimeRangeT &&value)
ProactiveAnomaly & WithResourceCollection(ResourceCollectionT &&value)
void SetSourceDetails(SourceDetailsT &&value)
const Aws::Utils::DateTime & GetUpdateTime() const
ProactiveAnomaly & AddAnomalyResources(AnomalyResourcesT &&value)
ProactiveAnomaly & WithPredictionTimeRange(PredictionTimeRangeT &&value)
const AnomalyTimeRange & GetAnomalyTimeRange() const
AWS_DEVOPSGURU_API ProactiveAnomaly(Aws::Utils::Json::JsonView jsonValue)
ProactiveAnomaly & WithSourceDetails(SourceDetailsT &&value)
ProactiveAnomaly & WithSeverity(AnomalySeverity value)
const Aws::Vector< AnomalyResource > & GetAnomalyResources() const
AWS_DEVOPSGURU_API ProactiveAnomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAnomalyResources(AnomalyResourcesT &&value)
AWS_DEVOPSGURU_API ProactiveAnomaly()=default
const AnomalyReportedTimeRange & GetAnomalyReportedTimeRange() const
ProactiveAnomaly & WithAnomalyReportedTimeRange(AnomalyReportedTimeRangeT &&value)
const AnomalySourceMetadata & GetSourceMetadata() const
void SetAnomalyTimeRange(AnomalyTimeRangeT &&value)
const Aws::String & GetAssociatedInsightId() const
void SetAssociatedInsightId(AssociatedInsightIdT &&value)
ProactiveAnomaly & WithLimit(double value)
const ResourceCollection & GetResourceCollection() const
ProactiveAnomaly & WithAssociatedInsightId(AssociatedInsightIdT &&value)
ProactiveAnomaly & WithId(IdT &&value)
ProactiveAnomaly & WithUpdateTime(UpdateTimeT &&value)
ProactiveAnomaly & WithAnomalyResources(AnomalyResourcesT &&value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceCollection(ResourceCollectionT &&value)
void SetSourceMetadata(SourceMetadataT &&value)
void SetAnomalyReportedTimeRange(AnomalyReportedTimeRangeT &&value)
ProactiveAnomaly & WithStatus(AnomalyStatus 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