AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProactiveAnomalySummary.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 ProactiveAnomalySummary();
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 ProactiveAnomalySummary& WithId(const Aws::String& value) { SetId(value); return *this;}
62 inline ProactiveAnomalySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
63 inline ProactiveAnomalySummary& 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 ProactiveAnomalySummary& WithSeverity(const AnomalySeverity& value) { SetSeverity(value); return *this;}
78 inline ProactiveAnomalySummary& 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 ProactiveAnomalySummary& WithStatus(const AnomalyStatus& value) { SetStatus(value); return *this;}
90 inline ProactiveAnomalySummary& 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 ProactiveAnomalySummary& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
102 inline ProactiveAnomalySummary& 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); }
112 inline ProactiveAnomalySummary& 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); }
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); }
148 inline ProactiveAnomalySummary& 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); }
162 inline ProactiveAnomalySummary& WithAssociatedInsightId(Aws::String&& value) { SetAssociatedInsightId(std::move(value)); return *this;}
163 inline ProactiveAnomalySummary& 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); }
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 ProactiveAnomalySummary& 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); }
197 inline ProactiveAnomalySummary& 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 ProactiveAnomalySummary& AddAnomalyResources(const AnomalyResource& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources.push_back(value); return *this; }
212 inline ProactiveAnomalySummary& 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 ProactiveAnomalySummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
225 inline ProactiveAnomalySummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
226 inline ProactiveAnomalySummary& 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
ProactiveAnomalySummary & WithSeverity(AnomalySeverity &&value)
ProactiveAnomalySummary & WithId(const Aws::String &value)
const Aws::Vector< AnomalyResource > & GetAnomalyResources() const
AWS_DEVOPSGURU_API ProactiveAnomalySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ProactiveAnomalySummary & AddAnomalyResources(const AnomalyResource &value)
ProactiveAnomalySummary & WithPredictionTimeRange(PredictionTimeRange &&value)
ProactiveAnomalySummary & WithUpdateTime(const Aws::Utils::DateTime &value)
void SetAnomalyReportedTimeRange(AnomalyReportedTimeRange &&value)
ProactiveAnomalySummary & WithAnomalyResources(Aws::Vector< AnomalyResource > &&value)
ProactiveAnomalySummary & WithAnomalyResources(const Aws::Vector< AnomalyResource > &value)
ProactiveAnomalySummary & WithAnomalyReportedTimeRange(AnomalyReportedTimeRange &&value)
ProactiveAnomalySummary & WithResourceCollection(const ResourceCollection &value)
ProactiveAnomalySummary & WithPredictionTimeRange(const PredictionTimeRange &value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAnomalyReportedTimeRange(const AnomalyReportedTimeRange &value)
const AnomalySourceDetails & GetSourceDetails() const
void SetResourceCollection(const ResourceCollection &value)
ProactiveAnomalySummary & WithSourceDetails(AnomalySourceDetails &&value)
void SetPredictionTimeRange(const PredictionTimeRange &value)
void SetAnomalyResources(Aws::Vector< AnomalyResource > &&value)
ProactiveAnomalySummary & WithAssociatedInsightId(Aws::String &&value)
void SetUpdateTime(const Aws::Utils::DateTime &value)
ProactiveAnomalySummary & WithDescription(Aws::String &&value)
AWS_DEVOPSGURU_API ProactiveAnomalySummary(Aws::Utils::Json::JsonView jsonValue)
ProactiveAnomalySummary & WithAssociatedInsightId(const char *value)
ProactiveAnomalySummary & WithSeverity(const AnomalySeverity &value)
ProactiveAnomalySummary & WithDescription(const Aws::String &value)
ProactiveAnomalySummary & WithUpdateTime(Aws::Utils::DateTime &&value)
const PredictionTimeRange & GetPredictionTimeRange() const
ProactiveAnomalySummary & WithAnomalyTimeRange(const AnomalyTimeRange &value)
ProactiveAnomalySummary & WithAnomalyReportedTimeRange(const AnomalyReportedTimeRange &value)
ProactiveAnomalySummary & WithSourceMetadata(AnomalySourceMetadata &&value)
const ResourceCollection & GetResourceCollection() const
ProactiveAnomalySummary & WithResourceCollection(ResourceCollection &&value)
ProactiveAnomalySummary & WithDescription(const char *value)
ProactiveAnomalySummary & WithStatus(const AnomalyStatus &value)
ProactiveAnomalySummary & WithStatus(AnomalyStatus &&value)
void SetAnomalyTimeRange(const AnomalyTimeRange &value)
void SetSourceDetails(const AnomalySourceDetails &value)
const AnomalySourceMetadata & GetSourceMetadata() const
ProactiveAnomalySummary & WithLimit(double value)
ProactiveAnomalySummary & WithSourceMetadata(const AnomalySourceMetadata &value)
ProactiveAnomalySummary & WithAnomalyTimeRange(AnomalyTimeRange &&value)
void SetSourceMetadata(const AnomalySourceMetadata &value)
void SetAnomalyResources(const Aws::Vector< AnomalyResource > &value)
const Aws::Utils::DateTime & GetUpdateTime() const
ProactiveAnomalySummary & WithId(Aws::String &&value)
ProactiveAnomalySummary & WithSourceDetails(const AnomalySourceDetails &value)
void SetPredictionTimeRange(PredictionTimeRange &&value)
ProactiveAnomalySummary & WithAssociatedInsightId(const Aws::String &value)
const AnomalyReportedTimeRange & GetAnomalyReportedTimeRange() const
ProactiveAnomalySummary & AddAnomalyResources(AnomalyResource &&value)
ProactiveAnomalySummary & WithId(const char *value)
void SetSourceMetadata(AnomalySourceMetadata &&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