AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Insight.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
36class Insight {
37 public:
38 AWS_XRAY_API Insight() = default;
39 AWS_XRAY_API Insight(Aws::Utils::Json::JsonView jsonValue);
42
44
47 inline const Aws::String& GetInsightId() const { return m_insightId; }
48 inline bool InsightIdHasBeenSet() const { return m_insightIdHasBeenSet; }
49 template <typename InsightIdT = Aws::String>
50 void SetInsightId(InsightIdT&& value) {
51 m_insightIdHasBeenSet = true;
52 m_insightId = std::forward<InsightIdT>(value);
53 }
54 template <typename InsightIdT = Aws::String>
55 Insight& WithInsightId(InsightIdT&& value) {
56 SetInsightId(std::forward<InsightIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetGroupARN() const { return m_groupARN; }
66 inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
67 template <typename GroupARNT = Aws::String>
68 void SetGroupARN(GroupARNT&& value) {
69 m_groupARNHasBeenSet = true;
70 m_groupARN = std::forward<GroupARNT>(value);
71 }
72 template <typename GroupARNT = Aws::String>
73 Insight& WithGroupARN(GroupARNT&& value) {
74 SetGroupARN(std::forward<GroupARNT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetGroupName() const { return m_groupName; }
84 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
85 template <typename GroupNameT = Aws::String>
86 void SetGroupName(GroupNameT&& value) {
87 m_groupNameHasBeenSet = true;
88 m_groupName = std::forward<GroupNameT>(value);
89 }
90 template <typename GroupNameT = Aws::String>
91 Insight& WithGroupName(GroupNameT&& value) {
92 SetGroupName(std::forward<GroupNameT>(value));
93 return *this;
94 }
96
98
99 inline const ServiceId& GetRootCauseServiceId() const { return m_rootCauseServiceId; }
100 inline bool RootCauseServiceIdHasBeenSet() const { return m_rootCauseServiceIdHasBeenSet; }
101 template <typename RootCauseServiceIdT = ServiceId>
102 void SetRootCauseServiceId(RootCauseServiceIdT&& value) {
103 m_rootCauseServiceIdHasBeenSet = true;
104 m_rootCauseServiceId = std::forward<RootCauseServiceIdT>(value);
105 }
106 template <typename RootCauseServiceIdT = ServiceId>
107 Insight& WithRootCauseServiceId(RootCauseServiceIdT&& value) {
108 SetRootCauseServiceId(std::forward<RootCauseServiceIdT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Vector<InsightCategory>& GetCategories() const { return m_categories; }
118 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
119 template <typename CategoriesT = Aws::Vector<InsightCategory>>
120 void SetCategories(CategoriesT&& value) {
121 m_categoriesHasBeenSet = true;
122 m_categories = std::forward<CategoriesT>(value);
123 }
124 template <typename CategoriesT = Aws::Vector<InsightCategory>>
125 Insight& WithCategories(CategoriesT&& value) {
126 SetCategories(std::forward<CategoriesT>(value));
127 return *this;
128 }
130 m_categoriesHasBeenSet = true;
131 m_categories.push_back(value);
132 return *this;
133 }
135
137
140 inline InsightState GetState() const { return m_state; }
141 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
142 inline void SetState(InsightState value) {
143 m_stateHasBeenSet = true;
144 m_state = value;
145 }
147 SetState(value);
148 return *this;
149 }
151
153
156 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
157 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
158 template <typename StartTimeT = Aws::Utils::DateTime>
159 void SetStartTime(StartTimeT&& value) {
160 m_startTimeHasBeenSet = true;
161 m_startTime = std::forward<StartTimeT>(value);
162 }
163 template <typename StartTimeT = Aws::Utils::DateTime>
164 Insight& WithStartTime(StartTimeT&& value) {
165 SetStartTime(std::forward<StartTimeT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
175 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
176 template <typename EndTimeT = Aws::Utils::DateTime>
177 void SetEndTime(EndTimeT&& value) {
178 m_endTimeHasBeenSet = true;
179 m_endTime = std::forward<EndTimeT>(value);
180 }
181 template <typename EndTimeT = Aws::Utils::DateTime>
182 Insight& WithEndTime(EndTimeT&& value) {
183 SetEndTime(std::forward<EndTimeT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetSummary() const { return m_summary; }
193 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
194 template <typename SummaryT = Aws::String>
195 void SetSummary(SummaryT&& value) {
196 m_summaryHasBeenSet = true;
197 m_summary = std::forward<SummaryT>(value);
198 }
199 template <typename SummaryT = Aws::String>
200 Insight& WithSummary(SummaryT&& value) {
201 SetSummary(std::forward<SummaryT>(value));
202 return *this;
203 }
205
207
211 inline const RequestImpactStatistics& GetClientRequestImpactStatistics() const { return m_clientRequestImpactStatistics; }
212 inline bool ClientRequestImpactStatisticsHasBeenSet() const { return m_clientRequestImpactStatisticsHasBeenSet; }
213 template <typename ClientRequestImpactStatisticsT = RequestImpactStatistics>
214 void SetClientRequestImpactStatistics(ClientRequestImpactStatisticsT&& value) {
215 m_clientRequestImpactStatisticsHasBeenSet = true;
216 m_clientRequestImpactStatistics = std::forward<ClientRequestImpactStatisticsT>(value);
217 }
218 template <typename ClientRequestImpactStatisticsT = RequestImpactStatistics>
219 Insight& WithClientRequestImpactStatistics(ClientRequestImpactStatisticsT&& value) {
220 SetClientRequestImpactStatistics(std::forward<ClientRequestImpactStatisticsT>(value));
221 return *this;
222 }
224
226
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 Insight& 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 Insight& WithTopAnomalousServices(TopAnomalousServicesT&& value) {
259 SetTopAnomalousServices(std::forward<TopAnomalousServicesT>(value));
260 return *this;
261 }
262 template <typename TopAnomalousServicesT = AnomalousService>
263 Insight& AddTopAnomalousServices(TopAnomalousServicesT&& value) {
264 m_topAnomalousServicesHasBeenSet = true;
265 m_topAnomalousServices.emplace_back(std::forward<TopAnomalousServicesT>(value));
266 return *this;
267 }
269 private:
270 Aws::String m_insightId;
271
272 Aws::String m_groupARN;
273
274 Aws::String m_groupName;
275
276 ServiceId m_rootCauseServiceId;
277
278 Aws::Vector<InsightCategory> m_categories;
279
281
282 Aws::Utils::DateTime m_startTime{};
283
284 Aws::Utils::DateTime m_endTime{};
285
286 Aws::String m_summary;
287
288 RequestImpactStatistics m_clientRequestImpactStatistics;
289
290 RequestImpactStatistics m_rootCauseServiceRequestImpactStatistics;
291
292 Aws::Vector<AnomalousService> m_topAnomalousServices;
293 bool m_insightIdHasBeenSet = false;
294 bool m_groupARNHasBeenSet = false;
295 bool m_groupNameHasBeenSet = false;
296 bool m_rootCauseServiceIdHasBeenSet = false;
297 bool m_categoriesHasBeenSet = false;
298 bool m_stateHasBeenSet = false;
299 bool m_startTimeHasBeenSet = false;
300 bool m_endTimeHasBeenSet = false;
301 bool m_summaryHasBeenSet = false;
302 bool m_clientRequestImpactStatisticsHasBeenSet = false;
303 bool m_rootCauseServiceRequestImpactStatisticsHasBeenSet = false;
304 bool m_topAnomalousServicesHasBeenSet = false;
305};
306
307} // namespace Model
308} // namespace XRay
309} // namespace Aws
void SetInsightId(InsightIdT &&value)
Definition Insight.h:50
bool ClientRequestImpactStatisticsHasBeenSet() const
Definition Insight.h:212
Insight & WithRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT &&value)
Definition Insight.h:240
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
bool TopAnomalousServicesHasBeenSet() const
Definition Insight.h:251
const Aws::String & GetGroupName() const
Definition Insight.h:83
const Aws::Utils::DateTime & GetEndTime() const
Definition Insight.h:174
Insight & WithRootCauseServiceId(RootCauseServiceIdT &&value)
Definition Insight.h:107
Insight & WithStartTime(StartTimeT &&value)
Definition Insight.h:164
bool RootCauseServiceRequestImpactStatisticsHasBeenSet() const
Definition Insight.h:233
const Aws::Vector< InsightCategory > & GetCategories() const
Definition Insight.h:117
void SetSummary(SummaryT &&value)
Definition Insight.h:195
Insight & WithEndTime(EndTimeT &&value)
Definition Insight.h:182
void SetRootCauseServiceRequestImpactStatistics(RootCauseServiceRequestImpactStatisticsT &&value)
Definition Insight.h:235
void SetState(InsightState value)
Definition Insight.h:142
Insight & WithClientRequestImpactStatistics(ClientRequestImpactStatisticsT &&value)
Definition Insight.h:219
Insight & WithGroupARN(GroupARNT &&value)
Definition Insight.h:73
void SetStartTime(StartTimeT &&value)
Definition Insight.h:159
bool EndTimeHasBeenSet() const
Definition Insight.h:175
Insight & WithState(InsightState value)
Definition Insight.h:146
const Aws::Vector< AnomalousService > & GetTopAnomalousServices() const
Definition Insight.h:250
const Aws::String & GetInsightId() const
Definition Insight.h:47
Insight & WithInsightId(InsightIdT &&value)
Definition Insight.h:55
const RequestImpactStatistics & GetRootCauseServiceRequestImpactStatistics() const
Definition Insight.h:230
bool CategoriesHasBeenSet() const
Definition Insight.h:118
void SetRootCauseServiceId(RootCauseServiceIdT &&value)
Definition Insight.h:102
AWS_XRAY_API Insight(Aws::Utils::Json::JsonView jsonValue)
bool SummaryHasBeenSet() const
Definition Insight.h:193
void SetClientRequestImpactStatistics(ClientRequestImpactStatisticsT &&value)
Definition Insight.h:214
const Aws::String & GetSummary() const
Definition Insight.h:192
void SetTopAnomalousServices(TopAnomalousServicesT &&value)
Definition Insight.h:253
Insight & WithSummary(SummaryT &&value)
Definition Insight.h:200
Insight & WithCategories(CategoriesT &&value)
Definition Insight.h:125
const Aws::Utils::DateTime & GetStartTime() const
Definition Insight.h:156
Insight & WithTopAnomalousServices(TopAnomalousServicesT &&value)
Definition Insight.h:258
bool InsightIdHasBeenSet() const
Definition Insight.h:48
const ServiceId & GetRootCauseServiceId() const
Definition Insight.h:99
bool RootCauseServiceIdHasBeenSet() const
Definition Insight.h:100
const Aws::String & GetGroupARN() const
Definition Insight.h:65
bool StateHasBeenSet() const
Definition Insight.h:141
InsightState GetState() const
Definition Insight.h:140
bool GroupARNHasBeenSet() const
Definition Insight.h:66
void SetCategories(CategoriesT &&value)
Definition Insight.h:120
bool StartTimeHasBeenSet() const
Definition Insight.h:157
void SetGroupName(GroupNameT &&value)
Definition Insight.h:86
void SetGroupARN(GroupARNT &&value)
Definition Insight.h:68
bool GroupNameHasBeenSet() const
Definition Insight.h:84
void SetEndTime(EndTimeT &&value)
Definition Insight.h:177
Insight & AddCategories(InsightCategory value)
Definition Insight.h:129
Insight & WithGroupName(GroupNameT &&value)
Definition Insight.h:91
const RequestImpactStatistics & GetClientRequestImpactStatistics() const
Definition Insight.h:211
AWS_XRAY_API Insight & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Insight()=default
Insight & AddTopAnomalousServices(TopAnomalousServicesT &&value)
Definition Insight.h:263
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue