AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReactiveAnomaly.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/devops-guru/model/AnomalyTimeRange.h>
12#include <aws/devops-guru/model/AnomalyReportedTimeRange.h>
13#include <aws/devops-guru/model/AnomalySourceDetails.h>
14#include <aws/devops-guru/model/ResourceCollection.h>
15#include <aws/devops-guru/model/AnomalyType.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/devops-guru/model/AnomalyResource.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace DevOpsGuru
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_DEVOPSGURU_API ReactiveAnomaly();
45 AWS_DEVOPSGURU_API ReactiveAnomaly(Aws::Utils::Json::JsonView jsonValue);
47 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetId() const{ return m_id; }
55 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
58 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
59 inline ReactiveAnomaly& WithId(const Aws::String& value) { SetId(value); return *this;}
60 inline ReactiveAnomaly& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
61 inline ReactiveAnomaly& WithId(const char* value) { SetId(value); return *this;}
63
65
71 inline const AnomalySeverity& GetSeverity() const{ return m_severity; }
72 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
73 inline void SetSeverity(const AnomalySeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
74 inline void SetSeverity(AnomalySeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
75 inline ReactiveAnomaly& WithSeverity(const AnomalySeverity& value) { SetSeverity(value); return *this;}
76 inline ReactiveAnomaly& WithSeverity(AnomalySeverity&& value) { SetSeverity(std::move(value)); return *this;}
78
80
83 inline const AnomalyStatus& GetStatus() const{ return m_status; }
84 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
85 inline void SetStatus(const AnomalyStatus& value) { m_statusHasBeenSet = true; m_status = value; }
86 inline void SetStatus(AnomalyStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
87 inline ReactiveAnomaly& WithStatus(const AnomalyStatus& value) { SetStatus(value); return *this;}
88 inline ReactiveAnomaly& WithStatus(AnomalyStatus&& value) { SetStatus(std::move(value)); return *this;}
90
92
93 inline const AnomalyTimeRange& GetAnomalyTimeRange() const{ return m_anomalyTimeRange; }
94 inline bool AnomalyTimeRangeHasBeenSet() const { return m_anomalyTimeRangeHasBeenSet; }
95 inline void SetAnomalyTimeRange(const AnomalyTimeRange& value) { m_anomalyTimeRangeHasBeenSet = true; m_anomalyTimeRange = value; }
96 inline void SetAnomalyTimeRange(AnomalyTimeRange&& value) { m_anomalyTimeRangeHasBeenSet = true; m_anomalyTimeRange = std::move(value); }
97 inline ReactiveAnomaly& WithAnomalyTimeRange(const AnomalyTimeRange& value) { SetAnomalyTimeRange(value); return *this;}
98 inline ReactiveAnomaly& WithAnomalyTimeRange(AnomalyTimeRange&& value) { SetAnomalyTimeRange(std::move(value)); return *this;}
100
102
106 inline const AnomalyReportedTimeRange& GetAnomalyReportedTimeRange() const{ return m_anomalyReportedTimeRange; }
107 inline bool AnomalyReportedTimeRangeHasBeenSet() const { return m_anomalyReportedTimeRangeHasBeenSet; }
108 inline void SetAnomalyReportedTimeRange(const AnomalyReportedTimeRange& value) { m_anomalyReportedTimeRangeHasBeenSet = true; m_anomalyReportedTimeRange = value; }
109 inline void SetAnomalyReportedTimeRange(AnomalyReportedTimeRange&& value) { m_anomalyReportedTimeRangeHasBeenSet = true; m_anomalyReportedTimeRange = std::move(value); }
113
115
119 inline const AnomalySourceDetails& GetSourceDetails() const{ return m_sourceDetails; }
120 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
121 inline void SetSourceDetails(const AnomalySourceDetails& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = value; }
122 inline void SetSourceDetails(AnomalySourceDetails&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = std::move(value); }
123 inline ReactiveAnomaly& WithSourceDetails(const AnomalySourceDetails& value) { SetSourceDetails(value); return *this;}
124 inline ReactiveAnomaly& WithSourceDetails(AnomalySourceDetails&& value) { SetSourceDetails(std::move(value)); return *this;}
126
128
132 inline const Aws::String& GetAssociatedInsightId() const{ return m_associatedInsightId; }
133 inline bool AssociatedInsightIdHasBeenSet() const { return m_associatedInsightIdHasBeenSet; }
134 inline void SetAssociatedInsightId(const Aws::String& value) { m_associatedInsightIdHasBeenSet = true; m_associatedInsightId = value; }
135 inline void SetAssociatedInsightId(Aws::String&& value) { m_associatedInsightIdHasBeenSet = true; m_associatedInsightId = std::move(value); }
136 inline void SetAssociatedInsightId(const char* value) { m_associatedInsightIdHasBeenSet = true; m_associatedInsightId.assign(value); }
137 inline ReactiveAnomaly& WithAssociatedInsightId(const Aws::String& value) { SetAssociatedInsightId(value); return *this;}
138 inline ReactiveAnomaly& WithAssociatedInsightId(Aws::String&& value) { SetAssociatedInsightId(std::move(value)); return *this;}
139 inline ReactiveAnomaly& WithAssociatedInsightId(const char* value) { SetAssociatedInsightId(value); return *this;}
141
143
144 inline const ResourceCollection& GetResourceCollection() const{ return m_resourceCollection; }
145 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
146 inline void SetResourceCollection(const ResourceCollection& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = value; }
147 inline void SetResourceCollection(ResourceCollection&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::move(value); }
149 inline ReactiveAnomaly& WithResourceCollection(ResourceCollection&& value) { SetResourceCollection(std::move(value)); return *this;}
151
153
159 inline const AnomalyType& GetType() const{ return m_type; }
160 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
161 inline void SetType(const AnomalyType& value) { m_typeHasBeenSet = true; m_type = value; }
162 inline void SetType(AnomalyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
163 inline ReactiveAnomaly& WithType(const AnomalyType& value) { SetType(value); return *this;}
164 inline ReactiveAnomaly& WithType(AnomalyType&& value) { SetType(std::move(value)); return *this;}
166
168
171 inline const Aws::String& GetName() const{ return m_name; }
172 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
173 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
174 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
175 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
176 inline ReactiveAnomaly& WithName(const Aws::String& value) { SetName(value); return *this;}
177 inline ReactiveAnomaly& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
178 inline ReactiveAnomaly& WithName(const char* value) { SetName(value); return *this;}
180
182
185 inline const Aws::String& GetDescription() const{ return m_description; }
186 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
187 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
188 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
189 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
190 inline ReactiveAnomaly& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
191 inline ReactiveAnomaly& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
192 inline ReactiveAnomaly& WithDescription(const char* value) { SetDescription(value); return *this;}
194
196
200 inline const Aws::String& GetCausalAnomalyId() const{ return m_causalAnomalyId; }
201 inline bool CausalAnomalyIdHasBeenSet() const { return m_causalAnomalyIdHasBeenSet; }
202 inline void SetCausalAnomalyId(const Aws::String& value) { m_causalAnomalyIdHasBeenSet = true; m_causalAnomalyId = value; }
203 inline void SetCausalAnomalyId(Aws::String&& value) { m_causalAnomalyIdHasBeenSet = true; m_causalAnomalyId = std::move(value); }
204 inline void SetCausalAnomalyId(const char* value) { m_causalAnomalyIdHasBeenSet = true; m_causalAnomalyId.assign(value); }
205 inline ReactiveAnomaly& WithCausalAnomalyId(const Aws::String& value) { SetCausalAnomalyId(value); return *this;}
206 inline ReactiveAnomaly& WithCausalAnomalyId(Aws::String&& value) { SetCausalAnomalyId(std::move(value)); return *this;}
207 inline ReactiveAnomaly& WithCausalAnomalyId(const char* value) { SetCausalAnomalyId(value); return *this;}
209
211
215 inline const Aws::Vector<AnomalyResource>& GetAnomalyResources() const{ return m_anomalyResources; }
216 inline bool AnomalyResourcesHasBeenSet() const { return m_anomalyResourcesHasBeenSet; }
217 inline void SetAnomalyResources(const Aws::Vector<AnomalyResource>& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources = value; }
218 inline void SetAnomalyResources(Aws::Vector<AnomalyResource>&& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources = std::move(value); }
221 inline ReactiveAnomaly& AddAnomalyResources(const AnomalyResource& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources.push_back(value); return *this; }
222 inline ReactiveAnomaly& AddAnomalyResources(AnomalyResource&& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources.push_back(std::move(value)); return *this; }
224 private:
225
226 Aws::String m_id;
227 bool m_idHasBeenSet = false;
228
229 AnomalySeverity m_severity;
230 bool m_severityHasBeenSet = false;
231
232 AnomalyStatus m_status;
233 bool m_statusHasBeenSet = false;
234
235 AnomalyTimeRange m_anomalyTimeRange;
236 bool m_anomalyTimeRangeHasBeenSet = false;
237
238 AnomalyReportedTimeRange m_anomalyReportedTimeRange;
239 bool m_anomalyReportedTimeRangeHasBeenSet = 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 AnomalyType m_type;
251 bool m_typeHasBeenSet = false;
252
253 Aws::String m_name;
254 bool m_nameHasBeenSet = false;
255
256 Aws::String m_description;
257 bool m_descriptionHasBeenSet = false;
258
259 Aws::String m_causalAnomalyId;
260 bool m_causalAnomalyIdHasBeenSet = false;
261
262 Aws::Vector<AnomalyResource> m_anomalyResources;
263 bool m_anomalyResourcesHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace DevOpsGuru
268} // namespace Aws
void SetAnomalyTimeRange(const AnomalyTimeRange &value)
const AnomalyType & GetType() const
void SetResourceCollection(ResourceCollection &&value)
void SetCausalAnomalyId(const Aws::String &value)
void SetStatus(const AnomalyStatus &value)
ReactiveAnomaly & WithAnomalyReportedTimeRange(AnomalyReportedTimeRange &&value)
const Aws::Vector< AnomalyResource > & GetAnomalyResources() const
ReactiveAnomaly & WithAnomalyResources(const Aws::Vector< AnomalyResource > &value)
ReactiveAnomaly & WithAnomalyTimeRange(const AnomalyTimeRange &value)
void SetAnomalyResources(Aws::Vector< AnomalyResource > &&value)
ReactiveAnomaly & WithName(Aws::String &&value)
void SetResourceCollection(const ResourceCollection &value)
void SetSourceDetails(AnomalySourceDetails &&value)
ReactiveAnomaly & WithType(const AnomalyType &value)
ReactiveAnomaly & WithId(const char *value)
ReactiveAnomaly & WithDescription(Aws::String &&value)
void SetAssociatedInsightId(const char *value)
ReactiveAnomaly & WithResourceCollection(ResourceCollection &&value)
void SetDescription(const Aws::String &value)
void SetStatus(AnomalyStatus &&value)
void SetCausalAnomalyId(Aws::String &&value)
ReactiveAnomaly & AddAnomalyResources(const AnomalyResource &value)
const AnomalyStatus & GetStatus() const
void SetAnomalyReportedTimeRange(const AnomalyReportedTimeRange &value)
const AnomalyTimeRange & GetAnomalyTimeRange() const
void SetType(const AnomalyType &value)
ReactiveAnomaly & WithAnomalyResources(Aws::Vector< AnomalyResource > &&value)
void SetAssociatedInsightId(const Aws::String &value)
ReactiveAnomaly & WithName(const char *value)
const ResourceCollection & GetResourceCollection() const
ReactiveAnomaly & AddAnomalyResources(AnomalyResource &&value)
ReactiveAnomaly & WithAssociatedInsightId(const char *value)
const AnomalySourceDetails & GetSourceDetails() const
ReactiveAnomaly & WithAnomalyTimeRange(AnomalyTimeRange &&value)
ReactiveAnomaly & WithType(AnomalyType &&value)
ReactiveAnomaly & WithCausalAnomalyId(Aws::String &&value)
ReactiveAnomaly & WithDescription(const char *value)
void SetAnomalyReportedTimeRange(AnomalyReportedTimeRange &&value)
const Aws::String & GetName() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
const AnomalySeverity & GetSeverity() const
ReactiveAnomaly & WithDescription(const Aws::String &value)
ReactiveAnomaly & WithAssociatedInsightId(const Aws::String &value)
ReactiveAnomaly & WithCausalAnomalyId(const char *value)
ReactiveAnomaly & WithId(Aws::String &&value)
const AnomalyReportedTimeRange & GetAnomalyReportedTimeRange() const
const Aws::String & GetAssociatedInsightId() const
ReactiveAnomaly & WithCausalAnomalyId(const Aws::String &value)
void SetAnomalyTimeRange(AnomalyTimeRange &&value)
ReactiveAnomaly & WithId(const Aws::String &value)
void SetName(const Aws::String &value)
ReactiveAnomaly & WithSourceDetails(AnomalySourceDetails &&value)
const Aws::String & GetId() const
void SetSeverity(const AnomalySeverity &value)
ReactiveAnomaly & WithStatus(const AnomalyStatus &value)
void SetSeverity(AnomalySeverity &&value)
void SetDescription(Aws::String &&value)
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 & WithName(const Aws::String &value)
ReactiveAnomaly & WithStatus(AnomalyStatus &&value)
ReactiveAnomaly & WithSeverity(const AnomalySeverity &value)
void SetSourceDetails(const AnomalySourceDetails &value)
ReactiveAnomaly & WithSourceDetails(const AnomalySourceDetails &value)
void SetId(const Aws::String &value)
const Aws::String & GetDescription() const
void SetAssociatedInsightId(Aws::String &&value)
ReactiveAnomaly & WithResourceCollection(const ResourceCollection &value)
void SetAnomalyResources(const Aws::Vector< AnomalyResource > &value)
ReactiveAnomaly & WithAssociatedInsightId(Aws::String &&value)
ReactiveAnomaly & WithAnomalyReportedTimeRange(const AnomalyReportedTimeRange &value)
ReactiveAnomaly & WithSeverity(AnomalySeverity &&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