AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProactiveAnomaly.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-guru/model/AnomalySeverity.h>
10#include <aws/devops-guru/model/AnomalyStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/devops-guru/model/AnomalyTimeRange.h>
13#include <aws/devops-guru/model/AnomalyReportedTimeRange.h>
14#include <aws/devops-guru/model/PredictionTimeRange.h>
15#include <aws/devops-guru/model/AnomalySourceDetails.h>
16#include <aws/devops-guru/model/ResourceCollection.h>
17#include <aws/devops-guru/model/AnomalySourceMetadata.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19#include <aws/devops-guru/model/AnomalyResource.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace DevOpsGuru
33{
34namespace Model
35{
36
44 {
45 public:
46 AWS_DEVOPSGURU_API ProactiveAnomaly();
47 AWS_DEVOPSGURU_API ProactiveAnomaly(Aws::Utils::Json::JsonView jsonValue);
49 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetId() const{ return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
60 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
61 inline ProactiveAnomaly& WithId(const Aws::String& value) { SetId(value); return *this;}
62 inline ProactiveAnomaly& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
63 inline ProactiveAnomaly& WithId(const char* value) { SetId(value); return *this;}
65
67
73 inline const AnomalySeverity& GetSeverity() const{ return m_severity; }
74 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
75 inline void SetSeverity(const AnomalySeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
76 inline void SetSeverity(AnomalySeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
77 inline ProactiveAnomaly& WithSeverity(const AnomalySeverity& value) { SetSeverity(value); return *this;}
78 inline ProactiveAnomaly& WithSeverity(AnomalySeverity&& value) { SetSeverity(std::move(value)); return *this;}
80
82
85 inline const AnomalyStatus& GetStatus() const{ return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(const AnomalyStatus& value) { m_statusHasBeenSet = true; m_status = value; }
88 inline void SetStatus(AnomalyStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
89 inline ProactiveAnomaly& WithStatus(const AnomalyStatus& value) { SetStatus(value); return *this;}
90 inline ProactiveAnomaly& WithStatus(AnomalyStatus&& value) { SetStatus(std::move(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
98 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
99 inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
100 inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
101 inline ProactiveAnomaly& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
102 inline ProactiveAnomaly& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
104
106
107 inline const AnomalyTimeRange& GetAnomalyTimeRange() const{ return m_anomalyTimeRange; }
108 inline bool AnomalyTimeRangeHasBeenSet() const { return m_anomalyTimeRangeHasBeenSet; }
109 inline void SetAnomalyTimeRange(const AnomalyTimeRange& value) { m_anomalyTimeRangeHasBeenSet = true; m_anomalyTimeRange = value; }
110 inline void SetAnomalyTimeRange(AnomalyTimeRange&& value) { m_anomalyTimeRangeHasBeenSet = true; m_anomalyTimeRange = std::move(value); }
111 inline ProactiveAnomaly& WithAnomalyTimeRange(const AnomalyTimeRange& value) { SetAnomalyTimeRange(value); return *this;}
112 inline ProactiveAnomaly& WithAnomalyTimeRange(AnomalyTimeRange&& value) { SetAnomalyTimeRange(std::move(value)); return *this;}
114
116
120 inline const AnomalyReportedTimeRange& GetAnomalyReportedTimeRange() const{ return m_anomalyReportedTimeRange; }
121 inline bool AnomalyReportedTimeRangeHasBeenSet() const { return m_anomalyReportedTimeRangeHasBeenSet; }
122 inline void SetAnomalyReportedTimeRange(const AnomalyReportedTimeRange& value) { m_anomalyReportedTimeRangeHasBeenSet = true; m_anomalyReportedTimeRange = value; }
123 inline void SetAnomalyReportedTimeRange(AnomalyReportedTimeRange&& value) { m_anomalyReportedTimeRangeHasBeenSet = true; m_anomalyReportedTimeRange = std::move(value); }
127
129
130 inline const PredictionTimeRange& GetPredictionTimeRange() const{ return m_predictionTimeRange; }
131 inline bool PredictionTimeRangeHasBeenSet() const { return m_predictionTimeRangeHasBeenSet; }
132 inline void SetPredictionTimeRange(const PredictionTimeRange& value) { m_predictionTimeRangeHasBeenSet = true; m_predictionTimeRange = value; }
133 inline void SetPredictionTimeRange(PredictionTimeRange&& value) { m_predictionTimeRangeHasBeenSet = true; m_predictionTimeRange = std::move(value); }
135 inline ProactiveAnomaly& WithPredictionTimeRange(PredictionTimeRange&& value) { SetPredictionTimeRange(std::move(value)); return *this;}
137
139
143 inline const AnomalySourceDetails& GetSourceDetails() const{ return m_sourceDetails; }
144 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
145 inline void SetSourceDetails(const AnomalySourceDetails& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = value; }
146 inline void SetSourceDetails(AnomalySourceDetails&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = std::move(value); }
147 inline ProactiveAnomaly& WithSourceDetails(const AnomalySourceDetails& value) { SetSourceDetails(value); return *this;}
148 inline ProactiveAnomaly& WithSourceDetails(AnomalySourceDetails&& value) { SetSourceDetails(std::move(value)); return *this;}
150
152
156 inline const Aws::String& GetAssociatedInsightId() const{ return m_associatedInsightId; }
157 inline bool AssociatedInsightIdHasBeenSet() const { return m_associatedInsightIdHasBeenSet; }
158 inline void SetAssociatedInsightId(const Aws::String& value) { m_associatedInsightIdHasBeenSet = true; m_associatedInsightId = value; }
159 inline void SetAssociatedInsightId(Aws::String&& value) { m_associatedInsightIdHasBeenSet = true; m_associatedInsightId = std::move(value); }
160 inline void SetAssociatedInsightId(const char* value) { m_associatedInsightIdHasBeenSet = true; m_associatedInsightId.assign(value); }
161 inline ProactiveAnomaly& WithAssociatedInsightId(const Aws::String& value) { SetAssociatedInsightId(value); return *this;}
162 inline ProactiveAnomaly& WithAssociatedInsightId(Aws::String&& value) { SetAssociatedInsightId(std::move(value)); return *this;}
163 inline ProactiveAnomaly& WithAssociatedInsightId(const char* value) { SetAssociatedInsightId(value); return *this;}
165
167
168 inline const ResourceCollection& GetResourceCollection() const{ return m_resourceCollection; }
169 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
170 inline void SetResourceCollection(const ResourceCollection& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = value; }
171 inline void SetResourceCollection(ResourceCollection&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::move(value); }
173 inline ProactiveAnomaly& WithResourceCollection(ResourceCollection&& value) { SetResourceCollection(std::move(value)); return *this;}
175
177
182 inline double GetLimit() const{ return m_limit; }
183 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
184 inline void SetLimit(double value) { m_limitHasBeenSet = true; m_limit = value; }
185 inline ProactiveAnomaly& WithLimit(double value) { SetLimit(value); return *this;}
187
189
192 inline const AnomalySourceMetadata& GetSourceMetadata() const{ return m_sourceMetadata; }
193 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
194 inline void SetSourceMetadata(const AnomalySourceMetadata& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = value; }
195 inline void SetSourceMetadata(AnomalySourceMetadata&& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = std::move(value); }
196 inline ProactiveAnomaly& WithSourceMetadata(const AnomalySourceMetadata& value) { SetSourceMetadata(value); return *this;}
197 inline ProactiveAnomaly& WithSourceMetadata(AnomalySourceMetadata&& value) { SetSourceMetadata(std::move(value)); return *this;}
199
201
205 inline const Aws::Vector<AnomalyResource>& GetAnomalyResources() const{ return m_anomalyResources; }
206 inline bool AnomalyResourcesHasBeenSet() const { return m_anomalyResourcesHasBeenSet; }
207 inline void SetAnomalyResources(const Aws::Vector<AnomalyResource>& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources = value; }
208 inline void SetAnomalyResources(Aws::Vector<AnomalyResource>&& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources = std::move(value); }
211 inline ProactiveAnomaly& AddAnomalyResources(const AnomalyResource& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources.push_back(value); return *this; }
212 inline ProactiveAnomaly& AddAnomalyResources(AnomalyResource&& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources.push_back(std::move(value)); return *this; }
214
216
219 inline const Aws::String& GetDescription() const{ return m_description; }
220 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
221 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
222 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
223 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
224 inline ProactiveAnomaly& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
225 inline ProactiveAnomaly& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
226 inline ProactiveAnomaly& WithDescription(const char* value) { SetDescription(value); return *this;}
228 private:
229
230 Aws::String m_id;
231 bool m_idHasBeenSet = false;
232
233 AnomalySeverity m_severity;
234 bool m_severityHasBeenSet = false;
235
236 AnomalyStatus m_status;
237 bool m_statusHasBeenSet = false;
238
239 Aws::Utils::DateTime m_updateTime;
240 bool m_updateTimeHasBeenSet = false;
241
242 AnomalyTimeRange m_anomalyTimeRange;
243 bool m_anomalyTimeRangeHasBeenSet = false;
244
245 AnomalyReportedTimeRange m_anomalyReportedTimeRange;
246 bool m_anomalyReportedTimeRangeHasBeenSet = false;
247
248 PredictionTimeRange m_predictionTimeRange;
249 bool m_predictionTimeRangeHasBeenSet = false;
250
251 AnomalySourceDetails m_sourceDetails;
252 bool m_sourceDetailsHasBeenSet = false;
253
254 Aws::String m_associatedInsightId;
255 bool m_associatedInsightIdHasBeenSet = false;
256
257 ResourceCollection m_resourceCollection;
258 bool m_resourceCollectionHasBeenSet = false;
259
260 double m_limit;
261 bool m_limitHasBeenSet = false;
262
263 AnomalySourceMetadata m_sourceMetadata;
264 bool m_sourceMetadataHasBeenSet = false;
265
266 Aws::Vector<AnomalyResource> m_anomalyResources;
267 bool m_anomalyResourcesHasBeenSet = false;
268
269 Aws::String m_description;
270 bool m_descriptionHasBeenSet = false;
271 };
272
273} // namespace Model
274} // namespace DevOpsGuru
275} // namespace Aws
ProactiveAnomaly & WithSourceDetails(AnomalySourceDetails &&value)
const Aws::String & GetDescription() const
const AnomalySourceDetails & GetSourceDetails() const
const PredictionTimeRange & GetPredictionTimeRange() const
ProactiveAnomaly & WithUpdateTime(Aws::Utils::DateTime &&value)
void SetSourceMetadata(AnomalySourceMetadata &&value)
void SetDescription(const Aws::String &value)
ProactiveAnomaly & WithPredictionTimeRange(PredictionTimeRange &&value)
ProactiveAnomaly & WithSourceMetadata(const AnomalySourceMetadata &value)
ProactiveAnomaly & WithId(const Aws::String &value)
void SetStatus(const AnomalyStatus &value)
void SetUpdateTime(Aws::Utils::DateTime &&value)
void SetResourceCollection(ResourceCollection &&value)
void SetSeverity(const AnomalySeverity &value)
ProactiveAnomaly & WithAnomalyReportedTimeRange(const AnomalyReportedTimeRange &value)
void SetSourceDetails(AnomalySourceDetails &&value)
void SetId(const Aws::String &value)
const Aws::Utils::DateTime & GetUpdateTime() const
void SetPredictionTimeRange(const PredictionTimeRange &value)
ProactiveAnomaly & WithAssociatedInsightId(const Aws::String &value)
ProactiveAnomaly & WithDescription(const char *value)
void SetSeverity(AnomalySeverity &&value)
void SetSourceDetails(const AnomalySourceDetails &value)
void SetAssociatedInsightId(const Aws::String &value)
const AnomalyTimeRange & GetAnomalyTimeRange() const
AWS_DEVOPSGURU_API ProactiveAnomaly(Aws::Utils::Json::JsonView jsonValue)
void SetAnomalyReportedTimeRange(const AnomalyReportedTimeRange &value)
void SetResourceCollection(const ResourceCollection &value)
const Aws::Vector< AnomalyResource > & GetAnomalyResources() const
ProactiveAnomaly & WithSourceMetadata(AnomalySourceMetadata &&value)
void SetStatus(AnomalyStatus &&value)
AWS_DEVOPSGURU_API ProactiveAnomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
ProactiveAnomaly & WithResourceCollection(ResourceCollection &&value)
ProactiveAnomaly & WithAnomalyResources(Aws::Vector< AnomalyResource > &&value)
const AnomalyReportedTimeRange & GetAnomalyReportedTimeRange() const
ProactiveAnomaly & WithSeverity(const AnomalySeverity &value)
void SetAnomalyTimeRange(AnomalyTimeRange &&value)
ProactiveAnomaly & WithId(const char *value)
const AnomalySourceMetadata & GetSourceMetadata() const
const AnomalyStatus & GetStatus() const
ProactiveAnomaly & WithAnomalyReportedTimeRange(AnomalyReportedTimeRange &&value)
void SetAnomalyReportedTimeRange(AnomalyReportedTimeRange &&value)
ProactiveAnomaly & WithSeverity(AnomalySeverity &&value)
void SetAssociatedInsightId(Aws::String &&value)
ProactiveAnomaly & WithStatus(const AnomalyStatus &value)
ProactiveAnomaly & WithAssociatedInsightId(const char *value)
ProactiveAnomaly & WithStatus(AnomalyStatus &&value)
ProactiveAnomaly & WithId(Aws::String &&value)
ProactiveAnomaly & WithAnomalyTimeRange(AnomalyTimeRange &&value)
ProactiveAnomaly & WithUpdateTime(const Aws::Utils::DateTime &value)
const Aws::String & GetAssociatedInsightId() const
ProactiveAnomaly & WithPredictionTimeRange(const PredictionTimeRange &value)
ProactiveAnomaly & WithSourceDetails(const AnomalySourceDetails &value)
ProactiveAnomaly & WithResourceCollection(const ResourceCollection &value)
ProactiveAnomaly & WithLimit(double value)
const ResourceCollection & GetResourceCollection() const
ProactiveAnomaly & AddAnomalyResources(AnomalyResource &&value)
ProactiveAnomaly & WithAnomalyResources(const Aws::Vector< AnomalyResource > &value)
void SetSourceMetadata(const AnomalySourceMetadata &value)
ProactiveAnomaly & WithAssociatedInsightId(Aws::String &&value)
void SetPredictionTimeRange(PredictionTimeRange &&value)
const AnomalySeverity & GetSeverity() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
ProactiveAnomaly & WithAnomalyTimeRange(const AnomalyTimeRange &value)
void SetAnomalyResources(Aws::Vector< AnomalyResource > &&value)
ProactiveAnomaly & WithDescription(Aws::String &&value)
ProactiveAnomaly & AddAnomalyResources(const AnomalyResource &value)
void SetUpdateTime(const Aws::Utils::DateTime &value)
void SetAnomalyTimeRange(const AnomalyTimeRange &value)
void SetAnomalyResources(const Aws::Vector< AnomalyResource > &value)
ProactiveAnomaly & WithDescription(const Aws::String &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