AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReactiveAnomalySummary.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 ReactiveAnomalySummary() = default;
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 template<typename IdT = Aws::String>
57 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
58 template<typename IdT = Aws::String>
59 ReactiveAnomalySummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
61
63
69 inline AnomalySeverity GetSeverity() const { return m_severity; }
70 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
71 inline void SetSeverity(AnomalySeverity value) { m_severityHasBeenSet = true; m_severity = value; }
72 inline ReactiveAnomalySummary& WithSeverity(AnomalySeverity value) { SetSeverity(value); return *this;}
74
76
79 inline AnomalyStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(AnomalyStatus value) { m_statusHasBeenSet = true; m_status = value; }
82 inline ReactiveAnomalySummary& WithStatus(AnomalyStatus value) { SetStatus(value); return *this;}
84
86
87 inline const AnomalyTimeRange& GetAnomalyTimeRange() const { return m_anomalyTimeRange; }
88 inline bool AnomalyTimeRangeHasBeenSet() const { return m_anomalyTimeRangeHasBeenSet; }
89 template<typename AnomalyTimeRangeT = AnomalyTimeRange>
90 void SetAnomalyTimeRange(AnomalyTimeRangeT&& value) { m_anomalyTimeRangeHasBeenSet = true; m_anomalyTimeRange = std::forward<AnomalyTimeRangeT>(value); }
91 template<typename AnomalyTimeRangeT = AnomalyTimeRange>
92 ReactiveAnomalySummary& WithAnomalyTimeRange(AnomalyTimeRangeT&& value) { SetAnomalyTimeRange(std::forward<AnomalyTimeRangeT>(value)); return *this;}
94
96
100 inline const AnomalyReportedTimeRange& GetAnomalyReportedTimeRange() const { return m_anomalyReportedTimeRange; }
101 inline bool AnomalyReportedTimeRangeHasBeenSet() const { return m_anomalyReportedTimeRangeHasBeenSet; }
102 template<typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
103 void SetAnomalyReportedTimeRange(AnomalyReportedTimeRangeT&& value) { m_anomalyReportedTimeRangeHasBeenSet = true; m_anomalyReportedTimeRange = std::forward<AnomalyReportedTimeRangeT>(value); }
104 template<typename AnomalyReportedTimeRangeT = AnomalyReportedTimeRange>
105 ReactiveAnomalySummary& WithAnomalyReportedTimeRange(AnomalyReportedTimeRangeT&& value) { SetAnomalyReportedTimeRange(std::forward<AnomalyReportedTimeRangeT>(value)); return *this;}
107
109
113 inline const AnomalySourceDetails& GetSourceDetails() const { return m_sourceDetails; }
114 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
115 template<typename SourceDetailsT = AnomalySourceDetails>
116 void SetSourceDetails(SourceDetailsT&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = std::forward<SourceDetailsT>(value); }
117 template<typename SourceDetailsT = AnomalySourceDetails>
118 ReactiveAnomalySummary& WithSourceDetails(SourceDetailsT&& value) { SetSourceDetails(std::forward<SourceDetailsT>(value)); return *this;}
120
122
126 inline const Aws::String& GetAssociatedInsightId() const { return m_associatedInsightId; }
127 inline bool AssociatedInsightIdHasBeenSet() const { return m_associatedInsightIdHasBeenSet; }
128 template<typename AssociatedInsightIdT = Aws::String>
129 void SetAssociatedInsightId(AssociatedInsightIdT&& value) { m_associatedInsightIdHasBeenSet = true; m_associatedInsightId = std::forward<AssociatedInsightIdT>(value); }
130 template<typename AssociatedInsightIdT = Aws::String>
131 ReactiveAnomalySummary& WithAssociatedInsightId(AssociatedInsightIdT&& value) { SetAssociatedInsightId(std::forward<AssociatedInsightIdT>(value)); return *this;}
133
135
136 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
137 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
138 template<typename ResourceCollectionT = ResourceCollection>
139 void SetResourceCollection(ResourceCollectionT&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::forward<ResourceCollectionT>(value); }
140 template<typename ResourceCollectionT = ResourceCollection>
141 ReactiveAnomalySummary& WithResourceCollection(ResourceCollectionT&& value) { SetResourceCollection(std::forward<ResourceCollectionT>(value)); return *this;}
143
145
151 inline AnomalyType GetType() const { return m_type; }
152 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
153 inline void SetType(AnomalyType value) { m_typeHasBeenSet = true; m_type = value; }
154 inline ReactiveAnomalySummary& WithType(AnomalyType value) { SetType(value); return *this;}
156
158
161 inline const Aws::String& GetName() const { return m_name; }
162 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
163 template<typename NameT = Aws::String>
164 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
165 template<typename NameT = Aws::String>
166 ReactiveAnomalySummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
168
170
173 inline const Aws::String& GetDescription() const { return m_description; }
174 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
175 template<typename DescriptionT = Aws::String>
176 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
177 template<typename DescriptionT = Aws::String>
178 ReactiveAnomalySummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
180
182
186 inline const Aws::String& GetCausalAnomalyId() const { return m_causalAnomalyId; }
187 inline bool CausalAnomalyIdHasBeenSet() const { return m_causalAnomalyIdHasBeenSet; }
188 template<typename CausalAnomalyIdT = Aws::String>
189 void SetCausalAnomalyId(CausalAnomalyIdT&& value) { m_causalAnomalyIdHasBeenSet = true; m_causalAnomalyId = std::forward<CausalAnomalyIdT>(value); }
190 template<typename CausalAnomalyIdT = Aws::String>
191 ReactiveAnomalySummary& WithCausalAnomalyId(CausalAnomalyIdT&& value) { SetCausalAnomalyId(std::forward<CausalAnomalyIdT>(value)); return *this;}
193
195
199 inline const Aws::Vector<AnomalyResource>& GetAnomalyResources() const { return m_anomalyResources; }
200 inline bool AnomalyResourcesHasBeenSet() const { return m_anomalyResourcesHasBeenSet; }
201 template<typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
202 void SetAnomalyResources(AnomalyResourcesT&& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources = std::forward<AnomalyResourcesT>(value); }
203 template<typename AnomalyResourcesT = Aws::Vector<AnomalyResource>>
204 ReactiveAnomalySummary& WithAnomalyResources(AnomalyResourcesT&& value) { SetAnomalyResources(std::forward<AnomalyResourcesT>(value)); return *this;}
205 template<typename AnomalyResourcesT = AnomalyResource>
206 ReactiveAnomalySummary& AddAnomalyResources(AnomalyResourcesT&& value) { m_anomalyResourcesHasBeenSet = true; m_anomalyResources.emplace_back(std::forward<AnomalyResourcesT>(value)); return *this; }
208 private:
209
210 Aws::String m_id;
211 bool m_idHasBeenSet = false;
212
214 bool m_severityHasBeenSet = false;
215
217 bool m_statusHasBeenSet = false;
218
219 AnomalyTimeRange m_anomalyTimeRange;
220 bool m_anomalyTimeRangeHasBeenSet = false;
221
222 AnomalyReportedTimeRange m_anomalyReportedTimeRange;
223 bool m_anomalyReportedTimeRangeHasBeenSet = false;
224
225 AnomalySourceDetails m_sourceDetails;
226 bool m_sourceDetailsHasBeenSet = false;
227
228 Aws::String m_associatedInsightId;
229 bool m_associatedInsightIdHasBeenSet = false;
230
231 ResourceCollection m_resourceCollection;
232 bool m_resourceCollectionHasBeenSet = false;
233
235 bool m_typeHasBeenSet = false;
236
237 Aws::String m_name;
238 bool m_nameHasBeenSet = false;
239
240 Aws::String m_description;
241 bool m_descriptionHasBeenSet = false;
242
243 Aws::String m_causalAnomalyId;
244 bool m_causalAnomalyIdHasBeenSet = false;
245
246 Aws::Vector<AnomalyResource> m_anomalyResources;
247 bool m_anomalyResourcesHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace DevOpsGuru
252} // namespace Aws
ReactiveAnomalySummary & WithId(IdT &&value)
ReactiveAnomalySummary & WithResourceCollection(ResourceCollectionT &&value)
ReactiveAnomalySummary & WithType(AnomalyType value)
const AnomalyTimeRange & GetAnomalyTimeRange() const
AWS_DEVOPSGURU_API ReactiveAnomalySummary()=default
ReactiveAnomalySummary & WithAssociatedInsightId(AssociatedInsightIdT &&value)
ReactiveAnomalySummary & WithAnomalyResources(AnomalyResourcesT &&value)
void SetAnomalyReportedTimeRange(AnomalyReportedTimeRangeT &&value)
ReactiveAnomalySummary & WithSourceDetails(SourceDetailsT &&value)
const ResourceCollection & GetResourceCollection() const
const Aws::Vector< AnomalyResource > & GetAnomalyResources() const
const AnomalyReportedTimeRange & GetAnomalyReportedTimeRange() const
ReactiveAnomalySummary & WithAnomalyReportedTimeRange(AnomalyReportedTimeRangeT &&value)
ReactiveAnomalySummary & WithAnomalyTimeRange(AnomalyTimeRangeT &&value)
ReactiveAnomalySummary & WithDescription(DescriptionT &&value)
const AnomalySourceDetails & GetSourceDetails() const
ReactiveAnomalySummary & WithStatus(AnomalyStatus value)
void SetAssociatedInsightId(AssociatedInsightIdT &&value)
ReactiveAnomalySummary & WithCausalAnomalyId(CausalAnomalyIdT &&value)
ReactiveAnomalySummary & WithName(NameT &&value)
AWS_DEVOPSGURU_API ReactiveAnomalySummary(Aws::Utils::Json::JsonView jsonValue)
ReactiveAnomalySummary & WithSeverity(AnomalySeverity value)
void SetResourceCollection(ResourceCollectionT &&value)
AWS_DEVOPSGURU_API ReactiveAnomalySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
ReactiveAnomalySummary & AddAnomalyResources(AnomalyResourcesT &&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