AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
59 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
60 template<typename IdT = Aws::String>
61 ProactiveAnomaly& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
63
65
71 inline AnomalySeverity GetSeverity() const { return m_severity; }
72 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
73 inline void SetSeverity(AnomalySeverity value) { m_severityHasBeenSet = true; m_severity = value; }
74 inline ProactiveAnomaly& WithSeverity(AnomalySeverity value) { SetSeverity(value); return *this;}
76
78
81 inline AnomalyStatus GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 inline void SetStatus(AnomalyStatus value) { m_statusHasBeenSet = true; m_status = value; }
84 inline ProactiveAnomaly& WithStatus(AnomalyStatus value) { SetStatus(value); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
92 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
93 template<typename UpdateTimeT = Aws::Utils::DateTime>
94 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
95 template<typename UpdateTimeT = Aws::Utils::DateTime>
96 ProactiveAnomaly& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
98
100
101 inline const AnomalyTimeRange& GetAnomalyTimeRange() const { return m_anomalyTimeRange; }
102 inline bool AnomalyTimeRangeHasBeenSet() const { return m_anomalyTimeRangeHasBeenSet; }
103 template<typename AnomalyTimeRangeT = AnomalyTimeRange>
104 void SetAnomalyTimeRange(AnomalyTimeRangeT&& value) { m_anomalyTimeRangeHasBeenSet = true; m_anomalyTimeRange = std::forward<AnomalyTimeRangeT>(value); }
105 template<typename AnomalyTimeRangeT = AnomalyTimeRange>
106 ProactiveAnomaly& WithAnomalyTimeRange(AnomalyTimeRangeT&& value) { SetAnomalyTimeRange(std::forward<AnomalyTimeRangeT>(value)); return *this;}
108
110
114 inline const AnomalyReportedTimeRange& GetAnomalyReportedTimeRange() const { return m_anomalyReportedTimeRange; }
115 inline bool AnomalyReportedTimeRangeHasBeenSet() const { return m_anomalyReportedTimeRangeHasBeenSet; }
116 template<typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
117 void SetAnomalyReportedTimeRange(AnomalyReportedTimeRangeT&& value) { m_anomalyReportedTimeRangeHasBeenSet = true; m_anomalyReportedTimeRange = std::forward<AnomalyReportedTimeRangeT>(value); }
118 template<typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
119 ProactiveAnomaly& WithAnomalyReportedTimeRange(AnomalyReportedTimeRangeT&& value) { SetAnomalyReportedTimeRange(std::forward<AnomalyReportedTimeRangeT>(value)); return *this;}
121
123
124 inline const PredictionTimeRange& GetPredictionTimeRange() const { return m_predictionTimeRange; }
125 inline bool PredictionTimeRangeHasBeenSet() const { return m_predictionTimeRangeHasBeenSet; }
126 template<typename PredictionTimeRangeT = PredictionTimeRange>
127 void SetPredictionTimeRange(PredictionTimeRangeT&& value) { m_predictionTimeRangeHasBeenSet = true; m_predictionTimeRange = std::forward<PredictionTimeRangeT>(value); }
128 template<typename PredictionTimeRangeT = PredictionTimeRange>
129 ProactiveAnomaly& WithPredictionTimeRange(PredictionTimeRangeT&& value) { SetPredictionTimeRange(std::forward<PredictionTimeRangeT>(value)); return *this;}
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) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = std::forward<SourceDetailsT>(value); }
141 template<typename SourceDetailsT = AnomalySourceDetails>
142 ProactiveAnomaly& WithSourceDetails(SourceDetailsT&& value) { SetSourceDetails(std::forward<SourceDetailsT>(value)); return *this;}
144
146
150 inline const Aws::String& GetAssociatedInsightId() const { return m_associatedInsightId; }
151 inline bool AssociatedInsightIdHasBeenSet() const { return m_associatedInsightIdHasBeenSet; }
152 template<typename AssociatedInsightIdT = Aws::String>
153 void SetAssociatedInsightId(AssociatedInsightIdT&& value) { m_associatedInsightIdHasBeenSet = true; m_associatedInsightId = std::forward<AssociatedInsightIdT>(value); }
154 template<typename AssociatedInsightIdT = Aws::String>
155 ProactiveAnomaly& WithAssociatedInsightId(AssociatedInsightIdT&& value) { SetAssociatedInsightId(std::forward<AssociatedInsightIdT>(value)); return *this;}
157
159
160 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
161 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
162 template<typename ResourceCollectionT = ResourceCollection>
163 void SetResourceCollection(ResourceCollectionT&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::forward<ResourceCollectionT>(value); }
164 template<typename ResourceCollectionT = ResourceCollection>
165 ProactiveAnomaly& WithResourceCollection(ResourceCollectionT&& value) { SetResourceCollection(std::forward<ResourceCollectionT>(value)); return *this;}
167
169
174 inline double GetLimit() const { return m_limit; }
175 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
176 inline void SetLimit(double value) { m_limitHasBeenSet = true; m_limit = value; }
177 inline ProactiveAnomaly& WithLimit(double value) { SetLimit(value); return *this;}
179
181
184 inline const AnomalySourceMetadata& GetSourceMetadata() const { return m_sourceMetadata; }
185 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
186 template<typename SourceMetadataT = AnomalySourceMetadata>
187 void SetSourceMetadata(SourceMetadataT&& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = std::forward<SourceMetadataT>(value); }
188 template<typename SourceMetadataT = AnomalySourceMetadata>
189 ProactiveAnomaly& WithSourceMetadata(SourceMetadataT&& value) { SetSourceMetadata(std::forward<SourceMetadataT>(value)); return *this;}
191
193
197 inline const Aws::Vector<AnomalyResource>& GetAnomalyResources() const { return m_anomalyResources; }
198 inline bool AnomalyResourcesHasBeenSet() const { return m_anomalyResourcesHasBeenSet; }
199 template<typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
200 void SetAnomalyResources(AnomalyResourcesT&& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources = std::forward<AnomalyResourcesT>(value); }
201 template<typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
202 ProactiveAnomaly& WithAnomalyResources(AnomalyResourcesT&& value) { SetAnomalyResources(std::forward<AnomalyResourcesT>(value)); return *this;}
203 template<typename AnomalyResourcesT = AnomalyResource>
204 ProactiveAnomaly& AddAnomalyResources(AnomalyResourcesT&& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources.emplace_back(std::forward<AnomalyResourcesT>(value)); return *this; }
206
208
211 inline const Aws::String& GetDescription() const { return m_description; }
212 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
213 template<typename DescriptionT = Aws::String>
214 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
215 template<typename DescriptionT = Aws::String>
216 ProactiveAnomaly& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
218 private:
219
220 Aws::String m_id;
221 bool m_idHasBeenSet = false;
222
224 bool m_severityHasBeenSet = false;
225
227 bool m_statusHasBeenSet = false;
228
229 Aws::Utils::DateTime m_updateTime{};
230 bool m_updateTimeHasBeenSet = false;
231
232 AnomalyTimeRange m_anomalyTimeRange;
233 bool m_anomalyTimeRangeHasBeenSet = false;
234
235 AnomalyReportedTimeRange m_anomalyReportedTimeRange;
236 bool m_anomalyReportedTimeRangeHasBeenSet = false;
237
238 PredictionTimeRange m_predictionTimeRange;
239 bool m_predictionTimeRangeHasBeenSet = false;
240
241 AnomalySourceDetails m_sourceDetails;
242 bool m_sourceDetailsHasBeenSet = false;
243
244 Aws::String m_associatedInsightId;
245 bool m_associatedInsightIdHasBeenSet = false;
246
247 ResourceCollection m_resourceCollection;
248 bool m_resourceCollectionHasBeenSet = false;
249
250 double m_limit{0.0};
251 bool m_limitHasBeenSet = false;
252
253 AnomalySourceMetadata m_sourceMetadata;
254 bool m_sourceMetadataHasBeenSet = false;
255
256 Aws::Vector<AnomalyResource> m_anomalyResources;
257 bool m_anomalyResourcesHasBeenSet = false;
258
259 Aws::String m_description;
260 bool m_descriptionHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace DevOpsGuru
265} // 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