AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TraceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/xray/XRay_EXPORTS.h>
12#include <aws/xray/model/AvailabilityZoneDetail.h>
13#include <aws/xray/model/ErrorRootCause.h>
14#include <aws/xray/model/FaultRootCause.h>
15#include <aws/xray/model/Http.h>
16#include <aws/xray/model/InstanceIdDetail.h>
17#include <aws/xray/model/ResourceARNDetail.h>
18#include <aws/xray/model/ResponseTimeRootCause.h>
19#include <aws/xray/model/ServiceId.h>
20#include <aws/xray/model/TraceUser.h>
21#include <aws/xray/model/ValueWithServiceIds.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Utils {
27namespace Json {
28class JsonValue;
29class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace XRay {
33namespace Model {
34
42 public:
43 AWS_XRAY_API TraceSummary() = default;
47
49
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template <typename IdT = Aws::String>
56 void SetId(IdT&& value) {
57 m_idHasBeenSet = true;
58 m_id = std::forward<IdT>(value);
59 }
60 template <typename IdT = Aws::String>
61 TraceSummary& WithId(IdT&& value) {
62 SetId(std::forward<IdT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
73 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
74 template <typename StartTimeT = Aws::Utils::DateTime>
75 void SetStartTime(StartTimeT&& value) {
76 m_startTimeHasBeenSet = true;
77 m_startTime = std::forward<StartTimeT>(value);
78 }
79 template <typename StartTimeT = Aws::Utils::DateTime>
80 TraceSummary& WithStartTime(StartTimeT&& value) {
81 SetStartTime(std::forward<StartTimeT>(value));
82 return *this;
83 }
85
87
91 inline double GetDuration() const { return m_duration; }
92 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
93 inline void SetDuration(double value) {
94 m_durationHasBeenSet = true;
95 m_duration = value;
96 }
97 inline TraceSummary& WithDuration(double value) {
98 SetDuration(value);
99 return *this;
100 }
102
104
110 inline double GetResponseTime() const { return m_responseTime; }
111 inline bool ResponseTimeHasBeenSet() const { return m_responseTimeHasBeenSet; }
112 inline void SetResponseTime(double value) {
113 m_responseTimeHasBeenSet = true;
114 m_responseTime = value;
115 }
116 inline TraceSummary& WithResponseTime(double value) {
117 SetResponseTime(value);
118 return *this;
119 }
121
123
126 inline bool GetHasFault() const { return m_hasFault; }
127 inline bool HasFaultHasBeenSet() const { return m_hasFaultHasBeenSet; }
128 inline void SetHasFault(bool value) {
129 m_hasFaultHasBeenSet = true;
130 m_hasFault = value;
131 }
132 inline TraceSummary& WithHasFault(bool value) {
133 SetHasFault(value);
134 return *this;
135 }
137
139
142 inline bool GetHasError() const { return m_hasError; }
143 inline bool HasErrorHasBeenSet() const { return m_hasErrorHasBeenSet; }
144 inline void SetHasError(bool value) {
145 m_hasErrorHasBeenSet = true;
146 m_hasError = value;
147 }
148 inline TraceSummary& WithHasError(bool value) {
149 SetHasError(value);
150 return *this;
151 }
153
155
158 inline bool GetHasThrottle() const { return m_hasThrottle; }
159 inline bool HasThrottleHasBeenSet() const { return m_hasThrottleHasBeenSet; }
160 inline void SetHasThrottle(bool value) {
161 m_hasThrottleHasBeenSet = true;
162 m_hasThrottle = value;
163 }
164 inline TraceSummary& WithHasThrottle(bool value) {
165 SetHasThrottle(value);
166 return *this;
167 }
169
171
174 inline bool GetIsPartial() const { return m_isPartial; }
175 inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; }
176 inline void SetIsPartial(bool value) {
177 m_isPartialHasBeenSet = true;
178 m_isPartial = value;
179 }
180 inline TraceSummary& WithIsPartial(bool value) {
181 SetIsPartial(value);
182 return *this;
183 }
185
187
190 inline const Http& GetHttp() const { return m_http; }
191 inline bool HttpHasBeenSet() const { return m_httpHasBeenSet; }
192 template <typename HttpT = Http>
193 void SetHttp(HttpT&& value) {
194 m_httpHasBeenSet = true;
195 m_http = std::forward<HttpT>(value);
196 }
197 template <typename HttpT = Http>
198 TraceSummary& WithHttp(HttpT&& value) {
199 SetHttp(std::forward<HttpT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>>& GetAnnotations() const { return m_annotations; }
209 inline bool AnnotationsHasBeenSet() const { return m_annotationsHasBeenSet; }
210 template <typename AnnotationsT = Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>>>
211 void SetAnnotations(AnnotationsT&& value) {
212 m_annotationsHasBeenSet = true;
213 m_annotations = std::forward<AnnotationsT>(value);
214 }
215 template <typename AnnotationsT = Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>>>
216 TraceSummary& WithAnnotations(AnnotationsT&& value) {
217 SetAnnotations(std::forward<AnnotationsT>(value));
218 return *this;
219 }
220 template <typename AnnotationsKeyT = Aws::String, typename AnnotationsValueT = Aws::Vector<ValueWithServiceIds>>
221 TraceSummary& AddAnnotations(AnnotationsKeyT&& key, AnnotationsValueT&& value) {
222 m_annotationsHasBeenSet = true;
223 m_annotations.emplace(std::forward<AnnotationsKeyT>(key), std::forward<AnnotationsValueT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Vector<TraceUser>& GetUsers() const { return m_users; }
233 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
234 template <typename UsersT = Aws::Vector<TraceUser>>
235 void SetUsers(UsersT&& value) {
236 m_usersHasBeenSet = true;
237 m_users = std::forward<UsersT>(value);
238 }
239 template <typename UsersT = Aws::Vector<TraceUser>>
240 TraceSummary& WithUsers(UsersT&& value) {
241 SetUsers(std::forward<UsersT>(value));
242 return *this;
243 }
244 template <typename UsersT = TraceUser>
245 TraceSummary& AddUsers(UsersT&& value) {
246 m_usersHasBeenSet = true;
247 m_users.emplace_back(std::forward<UsersT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Vector<ServiceId>& GetServiceIds() const { return m_serviceIds; }
257 inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; }
258 template <typename ServiceIdsT = Aws::Vector<ServiceId>>
259 void SetServiceIds(ServiceIdsT&& value) {
260 m_serviceIdsHasBeenSet = true;
261 m_serviceIds = std::forward<ServiceIdsT>(value);
262 }
263 template <typename ServiceIdsT = Aws::Vector<ServiceId>>
264 TraceSummary& WithServiceIds(ServiceIdsT&& value) {
265 SetServiceIds(std::forward<ServiceIdsT>(value));
266 return *this;
267 }
268 template <typename ServiceIdsT = ServiceId>
269 TraceSummary& AddServiceIds(ServiceIdsT&& value) {
270 m_serviceIdsHasBeenSet = true;
271 m_serviceIds.emplace_back(std::forward<ServiceIdsT>(value));
272 return *this;
273 }
275
277
281 inline const Aws::Vector<ResourceARNDetail>& GetResourceARNs() const { return m_resourceARNs; }
282 inline bool ResourceARNsHasBeenSet() const { return m_resourceARNsHasBeenSet; }
283 template <typename ResourceARNsT = Aws::Vector<ResourceARNDetail>>
284 void SetResourceARNs(ResourceARNsT&& value) {
285 m_resourceARNsHasBeenSet = true;
286 m_resourceARNs = std::forward<ResourceARNsT>(value);
287 }
288 template <typename ResourceARNsT = Aws::Vector<ResourceARNDetail>>
289 TraceSummary& WithResourceARNs(ResourceARNsT&& value) {
290 SetResourceARNs(std::forward<ResourceARNsT>(value));
291 return *this;
292 }
293 template <typename ResourceARNsT = ResourceARNDetail>
294 TraceSummary& AddResourceARNs(ResourceARNsT&& value) {
295 m_resourceARNsHasBeenSet = true;
296 m_resourceARNs.emplace_back(std::forward<ResourceARNsT>(value));
297 return *this;
298 }
300
302
306 inline const Aws::Vector<InstanceIdDetail>& GetInstanceIds() const { return m_instanceIds; }
307 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
308 template <typename InstanceIdsT = Aws::Vector<InstanceIdDetail>>
309 void SetInstanceIds(InstanceIdsT&& value) {
310 m_instanceIdsHasBeenSet = true;
311 m_instanceIds = std::forward<InstanceIdsT>(value);
312 }
313 template <typename InstanceIdsT = Aws::Vector<InstanceIdDetail>>
314 TraceSummary& WithInstanceIds(InstanceIdsT&& value) {
315 SetInstanceIds(std::forward<InstanceIdsT>(value));
316 return *this;
317 }
318 template <typename InstanceIdsT = InstanceIdDetail>
319 TraceSummary& AddInstanceIds(InstanceIdsT&& value) {
320 m_instanceIdsHasBeenSet = true;
321 m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value));
322 return *this;
323 }
325
327
331 inline const Aws::Vector<AvailabilityZoneDetail>& GetAvailabilityZones() const { return m_availabilityZones; }
332 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
333 template <typename AvailabilityZonesT = Aws::Vector<AvailabilityZoneDetail>>
334 void SetAvailabilityZones(AvailabilityZonesT&& value) {
335 m_availabilityZonesHasBeenSet = true;
336 m_availabilityZones = std::forward<AvailabilityZonesT>(value);
337 }
338 template <typename AvailabilityZonesT = Aws::Vector<AvailabilityZoneDetail>>
339 TraceSummary& WithAvailabilityZones(AvailabilityZonesT&& value) {
340 SetAvailabilityZones(std::forward<AvailabilityZonesT>(value));
341 return *this;
342 }
343 template <typename AvailabilityZonesT = AvailabilityZoneDetail>
344 TraceSummary& AddAvailabilityZones(AvailabilityZonesT&& value) {
345 m_availabilityZonesHasBeenSet = true;
346 m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value));
347 return *this;
348 }
350
352
355 inline const ServiceId& GetEntryPoint() const { return m_entryPoint; }
356 inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; }
357 template <typename EntryPointT = ServiceId>
358 void SetEntryPoint(EntryPointT&& value) {
359 m_entryPointHasBeenSet = true;
360 m_entryPoint = std::forward<EntryPointT>(value);
361 }
362 template <typename EntryPointT = ServiceId>
363 TraceSummary& WithEntryPoint(EntryPointT&& value) {
364 SetEntryPoint(std::forward<EntryPointT>(value));
365 return *this;
366 }
368
370
374 inline const Aws::Vector<FaultRootCause>& GetFaultRootCauses() const { return m_faultRootCauses; }
375 inline bool FaultRootCausesHasBeenSet() const { return m_faultRootCausesHasBeenSet; }
376 template <typename FaultRootCausesT = Aws::Vector<FaultRootCause>>
377 void SetFaultRootCauses(FaultRootCausesT&& value) {
378 m_faultRootCausesHasBeenSet = true;
379 m_faultRootCauses = std::forward<FaultRootCausesT>(value);
380 }
381 template <typename FaultRootCausesT = Aws::Vector<FaultRootCause>>
382 TraceSummary& WithFaultRootCauses(FaultRootCausesT&& value) {
383 SetFaultRootCauses(std::forward<FaultRootCausesT>(value));
384 return *this;
385 }
386 template <typename FaultRootCausesT = FaultRootCause>
387 TraceSummary& AddFaultRootCauses(FaultRootCausesT&& value) {
388 m_faultRootCausesHasBeenSet = true;
389 m_faultRootCauses.emplace_back(std::forward<FaultRootCausesT>(value));
390 return *this;
391 }
393
395
399 inline const Aws::Vector<ErrorRootCause>& GetErrorRootCauses() const { return m_errorRootCauses; }
400 inline bool ErrorRootCausesHasBeenSet() const { return m_errorRootCausesHasBeenSet; }
401 template <typename ErrorRootCausesT = Aws::Vector<ErrorRootCause>>
402 void SetErrorRootCauses(ErrorRootCausesT&& value) {
403 m_errorRootCausesHasBeenSet = true;
404 m_errorRootCauses = std::forward<ErrorRootCausesT>(value);
405 }
406 template <typename ErrorRootCausesT = Aws::Vector<ErrorRootCause>>
407 TraceSummary& WithErrorRootCauses(ErrorRootCausesT&& value) {
408 SetErrorRootCauses(std::forward<ErrorRootCausesT>(value));
409 return *this;
410 }
411 template <typename ErrorRootCausesT = ErrorRootCause>
412 TraceSummary& AddErrorRootCauses(ErrorRootCausesT&& value) {
413 m_errorRootCausesHasBeenSet = true;
414 m_errorRootCauses.emplace_back(std::forward<ErrorRootCausesT>(value));
415 return *this;
416 }
418
420
424 inline const Aws::Vector<ResponseTimeRootCause>& GetResponseTimeRootCauses() const { return m_responseTimeRootCauses; }
425 inline bool ResponseTimeRootCausesHasBeenSet() const { return m_responseTimeRootCausesHasBeenSet; }
426 template <typename ResponseTimeRootCausesT = Aws::Vector<ResponseTimeRootCause>>
427 void SetResponseTimeRootCauses(ResponseTimeRootCausesT&& value) {
428 m_responseTimeRootCausesHasBeenSet = true;
429 m_responseTimeRootCauses = std::forward<ResponseTimeRootCausesT>(value);
430 }
431 template <typename ResponseTimeRootCausesT = Aws::Vector<ResponseTimeRootCause>>
432 TraceSummary& WithResponseTimeRootCauses(ResponseTimeRootCausesT&& value) {
433 SetResponseTimeRootCauses(std::forward<ResponseTimeRootCausesT>(value));
434 return *this;
435 }
436 template <typename ResponseTimeRootCausesT = ResponseTimeRootCause>
437 TraceSummary& AddResponseTimeRootCauses(ResponseTimeRootCausesT&& value) {
438 m_responseTimeRootCausesHasBeenSet = true;
439 m_responseTimeRootCauses.emplace_back(std::forward<ResponseTimeRootCausesT>(value));
440 return *this;
441 }
443
445
448 inline int GetRevision() const { return m_revision; }
449 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
450 inline void SetRevision(int value) {
451 m_revisionHasBeenSet = true;
452 m_revision = value;
453 }
454 inline TraceSummary& WithRevision(int value) {
455 SetRevision(value);
456 return *this;
457 }
459
461
464 inline const Aws::Utils::DateTime& GetMatchedEventTime() const { return m_matchedEventTime; }
465 inline bool MatchedEventTimeHasBeenSet() const { return m_matchedEventTimeHasBeenSet; }
466 template <typename MatchedEventTimeT = Aws::Utils::DateTime>
467 void SetMatchedEventTime(MatchedEventTimeT&& value) {
468 m_matchedEventTimeHasBeenSet = true;
469 m_matchedEventTime = std::forward<MatchedEventTimeT>(value);
470 }
471 template <typename MatchedEventTimeT = Aws::Utils::DateTime>
472 TraceSummary& WithMatchedEventTime(MatchedEventTimeT&& value) {
473 SetMatchedEventTime(std::forward<MatchedEventTimeT>(value));
474 return *this;
475 }
477 private:
478 Aws::String m_id;
479
480 Aws::Utils::DateTime m_startTime{};
481
482 double m_duration{0.0};
483
484 double m_responseTime{0.0};
485
486 bool m_hasFault{false};
487
488 bool m_hasError{false};
489
490 bool m_hasThrottle{false};
491
492 bool m_isPartial{false};
493
494 Http m_http;
495
497
499
500 Aws::Vector<ServiceId> m_serviceIds;
501
502 Aws::Vector<ResourceARNDetail> m_resourceARNs;
503
504 Aws::Vector<InstanceIdDetail> m_instanceIds;
505
506 Aws::Vector<AvailabilityZoneDetail> m_availabilityZones;
507
508 ServiceId m_entryPoint;
509
510 Aws::Vector<FaultRootCause> m_faultRootCauses;
511
512 Aws::Vector<ErrorRootCause> m_errorRootCauses;
513
514 Aws::Vector<ResponseTimeRootCause> m_responseTimeRootCauses;
515
516 int m_revision{0};
517
518 Aws::Utils::DateTime m_matchedEventTime{};
519 bool m_idHasBeenSet = false;
520 bool m_startTimeHasBeenSet = false;
521 bool m_durationHasBeenSet = false;
522 bool m_responseTimeHasBeenSet = false;
523 bool m_hasFaultHasBeenSet = false;
524 bool m_hasErrorHasBeenSet = false;
525 bool m_hasThrottleHasBeenSet = false;
526 bool m_isPartialHasBeenSet = false;
527 bool m_httpHasBeenSet = false;
528 bool m_annotationsHasBeenSet = false;
529 bool m_usersHasBeenSet = false;
530 bool m_serviceIdsHasBeenSet = false;
531 bool m_resourceARNsHasBeenSet = false;
532 bool m_instanceIdsHasBeenSet = false;
533 bool m_availabilityZonesHasBeenSet = false;
534 bool m_entryPointHasBeenSet = false;
535 bool m_faultRootCausesHasBeenSet = false;
536 bool m_errorRootCausesHasBeenSet = false;
537 bool m_responseTimeRootCausesHasBeenSet = false;
538 bool m_revisionHasBeenSet = false;
539 bool m_matchedEventTimeHasBeenSet = false;
540};
541
542} // namespace Model
543} // namespace XRay
544} // namespace Aws
const Aws::Utils::DateTime & GetMatchedEventTime() const
const Aws::Map< Aws::String, Aws::Vector< ValueWithServiceIds > > & GetAnnotations() const
TraceSummary & WithId(IdT &&value)
void SetStartTime(StartTimeT &&value)
void SetMatchedEventTime(MatchedEventTimeT &&value)
TraceSummary & WithHasThrottle(bool value)
TraceSummary & WithResourceARNs(ResourceARNsT &&value)
void SetServiceIds(ServiceIdsT &&value)
TraceSummary & WithIsPartial(bool value)
const Http & GetHttp() const
const Aws::Vector< ServiceId > & GetServiceIds() const
TraceSummary & AddFaultRootCauses(FaultRootCausesT &&value)
void SetResponseTimeRootCauses(ResponseTimeRootCausesT &&value)
TraceSummary & WithAvailabilityZones(AvailabilityZonesT &&value)
void SetEntryPoint(EntryPointT &&value)
const ServiceId & GetEntryPoint() const
const Aws::Vector< ResourceARNDetail > & GetResourceARNs() const
TraceSummary & AddAvailabilityZones(AvailabilityZonesT &&value)
void SetResourceARNs(ResourceARNsT &&value)
void SetErrorRootCauses(ErrorRootCausesT &&value)
TraceSummary & WithHasError(bool value)
TraceSummary & WithStartTime(StartTimeT &&value)
TraceSummary & WithHasFault(bool value)
TraceSummary & AddResponseTimeRootCauses(ResponseTimeRootCausesT &&value)
TraceSummary & WithErrorRootCauses(ErrorRootCausesT &&value)
void SetDuration(double value)
TraceSummary & WithInstanceIds(InstanceIdsT &&value)
AWS_XRAY_API TraceSummary(Aws::Utils::Json::JsonView jsonValue)
void SetResponseTime(double value)
const Aws::Vector< FaultRootCause > & GetFaultRootCauses() const
void SetInstanceIds(InstanceIdsT &&value)
TraceSummary & WithResponseTime(double value)
TraceSummary & AddUsers(UsersT &&value)
void SetFaultRootCauses(FaultRootCausesT &&value)
TraceSummary & AddResourceARNs(ResourceARNsT &&value)
void SetUsers(UsersT &&value)
TraceSummary & AddAnnotations(AnnotationsKeyT &&key, AnnotationsValueT &&value)
void SetAnnotations(AnnotationsT &&value)
void SetHttp(HttpT &&value)
TraceSummary & WithAnnotations(AnnotationsT &&value)
TraceSummary & WithMatchedEventTime(MatchedEventTimeT &&value)
const Aws::String & GetId() const
const Aws::Vector< ErrorRootCause > & GetErrorRootCauses() const
TraceSummary & AddErrorRootCauses(ErrorRootCausesT &&value)
TraceSummary & WithUsers(UsersT &&value)
AWS_XRAY_API TraceSummary()=default
TraceSummary & WithHttp(HttpT &&value)
const Aws::Vector< AvailabilityZoneDetail > & GetAvailabilityZones() const
TraceSummary & WithRevision(int value)
const Aws::Vector< ResponseTimeRootCause > & GetResponseTimeRootCauses() const
TraceSummary & WithFaultRootCauses(FaultRootCausesT &&value)
TraceSummary & AddInstanceIds(InstanceIdsT &&value)
TraceSummary & WithDuration(double value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< InstanceIdDetail > & GetInstanceIds() const
TraceSummary & AddServiceIds(ServiceIdsT &&value)
bool ResponseTimeRootCausesHasBeenSet() const
const Aws::Utils::DateTime & GetStartTime() const
TraceSummary & WithEntryPoint(EntryPointT &&value)
TraceSummary & WithResponseTimeRootCauses(ResponseTimeRootCausesT &&value)
void SetAvailabilityZones(AvailabilityZonesT &&value)
const Aws::Vector< TraceUser > & GetUsers() const
AWS_XRAY_API TraceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
TraceSummary & WithServiceIds(ServiceIdsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue