AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InsightSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/xray/XRay_EXPORTS.h>
11#include <aws/xray/model/AnomalousService.h>
12#include <aws/xray/model/InsightCategory.h>
13#include <aws/xray/model/InsightState.h>
14#include <aws/xray/model/RequestImpactStatistics.h>
15#include <aws/xray/model/ServiceId.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace XRay {
27namespace Model {
28
35 public:
36 AWS_XRAY_API InsightSummary() = default;
40
42
45 inline const Aws::String& GetInsightId() const { return m_insightId; }
46 inline bool InsightIdHasBeenSet() const { return m_insightIdHasBeenSet; }
47 template <typename InsightIdT = Aws::String>
48 void SetInsightId(InsightIdT&& value) {
49 m_insightIdHasBeenSet = true;
50 m_insightId = std::forward<InsightIdT>(value);
51 }
52 template <typename InsightIdT = Aws::String>
53 InsightSummary& WithInsightId(InsightIdT&& value) {
54 SetInsightId(std::forward<InsightIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetGroupARN() const { return m_groupARN; }
64 inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
65 template <typename GroupARNT = Aws::String>
66 void SetGroupARN(GroupARNT&& value) {
67 m_groupARNHasBeenSet = true;
68 m_groupARN = std::forward<GroupARNT>(value);
69 }
70 template <typename GroupARNT = Aws::String>
71 InsightSummary& WithGroupARN(GroupARNT&& value) {
72 SetGroupARN(std::forward<GroupARNT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetGroupName() const { return m_groupName; }
82 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
83 template <typename GroupNameT = Aws::String>
84 void SetGroupName(GroupNameT&& value) {
85 m_groupNameHasBeenSet = true;
86 m_groupName = std::forward<GroupNameT>(value);
87 }
88 template <typename GroupNameT = Aws::String>
89 InsightSummary& WithGroupName(GroupNameT&& value) {
90 SetGroupName(std::forward<GroupNameT>(value));
91 return *this;
92 }
94
96
97 inline const ServiceId& GetRootCauseServiceId() const { return m_rootCauseServiceId; }
98 inline bool RootCauseServiceIdHasBeenSet() const { return m_rootCauseServiceIdHasBeenSet; }
99 template <typename RootCauseServiceIdT = ServiceId>
100 void SetRootCauseServiceId(RootCauseServiceIdT&& value) {
101 m_rootCauseServiceIdHasBeenSet = true;
102 m_rootCauseServiceId = std::forward<RootCauseServiceIdT>(value);
103 }
104 template <typename RootCauseServiceIdT = ServiceId>
105 InsightSummary& WithRootCauseServiceId(RootCauseServiceIdT&& value) {
106 SetRootCauseServiceId(std::forward<RootCauseServiceIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<InsightCategory>& GetCategories() const { return m_categories; }
116 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
117 template <typename CategoriesT = Aws::Vector<InsightCategory>>
118 void SetCategories(CategoriesT&& value) {
119 m_categoriesHasBeenSet = true;
120 m_categories = std::forward<CategoriesT>(value);
121 }
122 template <typename CategoriesT = Aws::Vector<InsightCategory>>
123 InsightSummary& WithCategories(CategoriesT&& value) {
124 SetCategories(std::forward<CategoriesT>(value));
125 return *this;
126 }
128 m_categoriesHasBeenSet = true;
129 m_categories.push_back(value);
130 return *this;
131 }
133
135
138 inline InsightState GetState() const { return m_state; }
139 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
140 inline void SetState(InsightState value) {
141 m_stateHasBeenSet = true;
142 m_state = value;
143 }
145 SetState(value);
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
155 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
156 template <typename StartTimeT = Aws::Utils::DateTime>
157 void SetStartTime(StartTimeT&& value) {
158 m_startTimeHasBeenSet = true;
159 m_startTime = std::forward<StartTimeT>(value);
160 }
161 template <typename StartTimeT = Aws::Utils::DateTime>
162 InsightSummary& WithStartTime(StartTimeT&& value) {
163 SetStartTime(std::forward<StartTimeT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
173 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
174 template <typename EndTimeT = Aws::Utils::DateTime>
175 void SetEndTime(EndTimeT&& value) {
176 m_endTimeHasBeenSet = true;
177 m_endTime = std::forward<EndTimeT>(value);
178 }
179 template <typename EndTimeT = Aws::Utils::DateTime>
180 InsightSummary& WithEndTime(EndTimeT&& value) {
181 SetEndTime(std::forward<EndTimeT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetSummary() const { return m_summary; }
191 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
192 template <typename SummaryT = Aws::String>
193 void SetSummary(SummaryT&& value) {
194 m_summaryHasBeenSet = true;
195 m_summary = std::forward<SummaryT>(value);
196 }
197 template <typename SummaryT = Aws::String>
198 InsightSummary& WithSummary(SummaryT&& value) {
199 SetSummary(std::forward<SummaryT>(value));
200 return *this;
201 }
203
205
210 inline const RequestImpactStatistics& GetClientRequestImpactStatistics() const { return m_clientRequestImpactStatistics; }
211 inline bool ClientRequestImpactStatisticsHasBeenSet() const { return m_clientRequestImpactStatisticsHasBeenSet; }
212 template <typename ClientRequestImpactStatisticsT = RequestImpactStatistics>
213 void SetClientRequestImpactStatistics(ClientRequestImpactStatisticsT&& value) {
214 m_clientRequestImpactStatisticsHasBeenSet = true;
215 m_clientRequestImpactStatistics = std::forward<ClientRequestImpactStatisticsT>(value);
216 }
217 template <typename ClientRequestImpactStatisticsT = RequestImpactStatistics>
218 InsightSummary& WithClientRequestImpactStatistics(ClientRequestImpactStatisticsT&& value) {
219 SetClientRequestImpactStatistics(std::forward<ClientRequestImpactStatisticsT>(value));
220 return *this;
221 }
223
225
231 return m_rootCauseServiceRequestImpactStatistics;
232 }
233 inline bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const { return m_rootCauseServiceRequestImpactStatisticsHasBeenSet; }
234 template <typename RootCauseServiceRequestImpactStatisticsT = RequestImpactStatistics>
235 void SetRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT&& value) {
236 m_rootCauseServiceRequestImpactStatisticsHasBeenSet = true;
237 m_rootCauseServiceRequestImpactStatistics = std::forward<RootCauseServiceRequestImpactStatisticsT>(value);
238 }
239 template <typename RootCauseServiceRequestImpactStatisticsT = RequestImpactStatistics>
240 InsightSummary& WithRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT&& value) {
241 SetRootCauseServiceRequestImpactStatistics(std::forward<RootCauseServiceRequestImpactStatisticsT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::Vector<AnomalousService>& GetTopAnomalousServices() const { return m_topAnomalousServices; }
251 inline bool TopAnomalousServicesHasBeenSet() const { return m_topAnomalousServicesHasBeenSet; }
252 template <typename TopAnomalousServicesT = Aws::Vector<AnomalousService>>
253 void SetTopAnomalousServices(TopAnomalousServicesT&& value) {
254 m_topAnomalousServicesHasBeenSet = true;
255 m_topAnomalousServices = std::forward<TopAnomalousServicesT>(value);
256 }
257 template <typename TopAnomalousServicesT = Aws::Vector<AnomalousService>>
258 InsightSummary& WithTopAnomalousServices(TopAnomalousServicesT&& value) {
259 SetTopAnomalousServices(std::forward<TopAnomalousServicesT>(value));
260 return *this;
261 }
262 template <typename TopAnomalousServicesT = AnomalousService>
263 InsightSummary& AddTopAnomalousServices(TopAnomalousServicesT&& value) {
264 m_topAnomalousServicesHasBeenSet = true;
265 m_topAnomalousServices.emplace_back(std::forward<TopAnomalousServicesT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
275 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
276 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
277 void SetLastUpdateTime(LastUpdateTimeT&& value) {
278 m_lastUpdateTimeHasBeenSet = true;
279 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
280 }
281 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
282 InsightSummary& WithLastUpdateTime(LastUpdateTimeT&& value) {
283 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
284 return *this;
285 }
287 private:
288 Aws::String m_insightId;
289
290 Aws::String m_groupARN;
291
292 Aws::String m_groupName;
293
294 ServiceId m_rootCauseServiceId;
295
296 Aws::Vector<InsightCategory> m_categories;
297
299
300 Aws::Utils::DateTime m_startTime{};
301
302 Aws::Utils::DateTime m_endTime{};
303
304 Aws::String m_summary;
305
306 RequestImpactStatistics m_clientRequestImpactStatistics;
307
308 RequestImpactStatistics m_rootCauseServiceRequestImpactStatistics;
309
310 Aws::Vector<AnomalousService> m_topAnomalousServices;
311
312 Aws::Utils::DateTime m_lastUpdateTime{};
313 bool m_insightIdHasBeenSet = false;
314 bool m_groupARNHasBeenSet = false;
315 bool m_groupNameHasBeenSet = false;
316 bool m_rootCauseServiceIdHasBeenSet = false;
317 bool m_categoriesHasBeenSet = false;
318 bool m_stateHasBeenSet = false;
319 bool m_startTimeHasBeenSet = false;
320 bool m_endTimeHasBeenSet = false;
321 bool m_summaryHasBeenSet = false;
322 bool m_clientRequestImpactStatisticsHasBeenSet = false;
323 bool m_rootCauseServiceRequestImpactStatisticsHasBeenSet = false;
324 bool m_topAnomalousServicesHasBeenSet = false;
325 bool m_lastUpdateTimeHasBeenSet = false;
326};
327
328} // namespace Model
329} // namespace XRay
330} // namespace Aws
InsightSummary & WithStartTime(StartTimeT &&value)
const Aws::Vector< InsightCategory > & GetCategories() const
const Aws::String & GetInsightId() const
const Aws::String & GetGroupName() const
const RequestImpactStatistics & GetClientRequestImpactStatistics() const
const Aws::String & GetGroupARN() const
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
InsightSummary & WithCategories(CategoriesT &&value)
AWS_XRAY_API InsightSummary(Aws::Utils::Json::JsonView jsonValue)
InsightSummary & WithLastUpdateTime(LastUpdateTimeT &&value)
InsightSummary & WithSummary(SummaryT &&value)
bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const
bool ClientRequestImpactStatisticsHasBeenSet() const
InsightSummary & AddCategories(InsightCategory value)
InsightSummary & WithTopAnomalousServices(TopAnomalousServicesT &&value)
void SetEndTime(EndTimeT &&value)
InsightSummary & WithInsightId(InsightIdT &&value)
void SetInsightId(InsightIdT &&value)
AWS_XRAY_API InsightSummary()=default
InsightSummary & WithGroupARN(GroupARNT &&value)
InsightSummary & WithRootCauseServiceId(RootCauseServiceIdT &&value)
void SetGroupARN(GroupARNT &&value)
AWS_XRAY_API InsightSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(InsightState value)
void SetLastUpdateTime(LastUpdateTimeT &&value)
void SetGroupName(GroupNameT &&value)
const Aws::String & GetSummary() const
void SetRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT &&value)
InsightSummary & WithRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT &&value)
const RequestImpactStatistics & GetRootCauseServiceRequestImpactStatistics() const
void SetStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
const Aws::Utils::DateTime & GetStartTime() const
InsightSummary & WithEndTime(EndTimeT &&value)
InsightSummary & WithClientRequestImpactStatistics(ClientRequestImpactStatisticsT &&value)
const ServiceId & GetRootCauseServiceId() const
InsightSummary & AddTopAnomalousServices(TopAnomalousServicesT &&value)
void SetTopAnomalousServices(TopAnomalousServicesT &&value)
void SetClientRequestImpactStatistics(ClientRequestImpactStatisticsT &&value)
InsightSummary & WithGroupName(GroupNameT &&value)
void SetCategories(CategoriesT &&value)
void SetSummary(SummaryT &&value)
const Aws::Utils::DateTime & GetEndTime() const
InsightSummary & WithState(InsightState value)
void SetRootCauseServiceId(RootCauseServiceIdT &&value)
const Aws::Vector< AnomalousService > & GetTopAnomalousServices() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue