AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TraceSummary.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/xray/model/Http.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/xray/model/ServiceId.h>
14#include <aws/xray/model/TraceUser.h>
15#include <aws/xray/model/ResourceARNDetail.h>
16#include <aws/xray/model/InstanceIdDetail.h>
17#include <aws/xray/model/AvailabilityZoneDetail.h>
18#include <aws/xray/model/FaultRootCause.h>
19#include <aws/xray/model/ErrorRootCause.h>
20#include <aws/xray/model/ResponseTimeRootCause.h>
21#include <aws/xray/model/ValueWithServiceIds.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Utils
27{
28namespace Json
29{
30 class JsonValue;
31 class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace XRay
35{
36namespace Model
37{
38
46 {
47 public:
48 AWS_XRAY_API TraceSummary() = default;
52
53
55
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template<typename IdT = Aws::String>
62 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
63 template<typename IdT = Aws::String>
64 TraceSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
76 template<typename StartTimeT = Aws::Utils::DateTime>
77 TraceSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
79
81
85 inline double GetDuration() const { return m_duration; }
86 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
87 inline void SetDuration(double value) { m_durationHasBeenSet = true; m_duration = value; }
88 inline TraceSummary& WithDuration(double value) { SetDuration(value); return *this;}
90
92
98 inline double GetResponseTime() const { return m_responseTime; }
99 inline bool ResponseTimeHasBeenSet() const { return m_responseTimeHasBeenSet; }
100 inline void SetResponseTime(double value) { m_responseTimeHasBeenSet = true; m_responseTime = value; }
101 inline TraceSummary& WithResponseTime(double value) { SetResponseTime(value); return *this;}
103
105
108 inline bool GetHasFault() const { return m_hasFault; }
109 inline bool HasFaultHasBeenSet() const { return m_hasFaultHasBeenSet; }
110 inline void SetHasFault(bool value) { m_hasFaultHasBeenSet = true; m_hasFault = value; }
111 inline TraceSummary& WithHasFault(bool value) { SetHasFault(value); return *this;}
113
115
118 inline bool GetHasError() const { return m_hasError; }
119 inline bool HasErrorHasBeenSet() const { return m_hasErrorHasBeenSet; }
120 inline void SetHasError(bool value) { m_hasErrorHasBeenSet = true; m_hasError = value; }
121 inline TraceSummary& WithHasError(bool value) { SetHasError(value); return *this;}
123
125
128 inline bool GetHasThrottle() const { return m_hasThrottle; }
129 inline bool HasThrottleHasBeenSet() const { return m_hasThrottleHasBeenSet; }
130 inline void SetHasThrottle(bool value) { m_hasThrottleHasBeenSet = true; m_hasThrottle = value; }
131 inline TraceSummary& WithHasThrottle(bool value) { SetHasThrottle(value); return *this;}
133
135
138 inline bool GetIsPartial() const { return m_isPartial; }
139 inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; }
140 inline void SetIsPartial(bool value) { m_isPartialHasBeenSet = true; m_isPartial = value; }
141 inline TraceSummary& WithIsPartial(bool value) { SetIsPartial(value); return *this;}
143
145
148 inline const Http& GetHttp() const { return m_http; }
149 inline bool HttpHasBeenSet() const { return m_httpHasBeenSet; }
150 template<typename HttpT = Http>
151 void SetHttp(HttpT&& value) { m_httpHasBeenSet = true; m_http = std::forward<HttpT>(value); }
152 template<typename HttpT = Http>
153 TraceSummary& WithHttp(HttpT&& value) { SetHttp(std::forward<HttpT>(value)); return *this;}
155
157
160 inline const Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>>& GetAnnotations() const { return m_annotations; }
161 inline bool AnnotationsHasBeenSet() const { return m_annotationsHasBeenSet; }
162 template<typename AnnotationsT = Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>>>
163 void SetAnnotations(AnnotationsT&& value) { m_annotationsHasBeenSet = true; m_annotations = std::forward<AnnotationsT>(value); }
164 template<typename AnnotationsT = Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>>>
165 TraceSummary& WithAnnotations(AnnotationsT&& value) { SetAnnotations(std::forward<AnnotationsT>(value)); return *this;}
166 template<typename AnnotationsKeyT = Aws::String, typename AnnotationsValueT = Aws::Vector<ValueWithServiceIds>>
167 TraceSummary& AddAnnotations(AnnotationsKeyT&& key, AnnotationsValueT&& value) {
168 m_annotationsHasBeenSet = true; m_annotations.emplace(std::forward<AnnotationsKeyT>(key), std::forward<AnnotationsValueT>(value)); return *this;
169 }
171
173
176 inline const Aws::Vector<TraceUser>& GetUsers() const { return m_users; }
177 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
178 template<typename UsersT = Aws::Vector<TraceUser>>
179 void SetUsers(UsersT&& value) { m_usersHasBeenSet = true; m_users = std::forward<UsersT>(value); }
180 template<typename UsersT = Aws::Vector<TraceUser>>
181 TraceSummary& WithUsers(UsersT&& value) { SetUsers(std::forward<UsersT>(value)); return *this;}
182 template<typename UsersT = TraceUser>
183 TraceSummary& AddUsers(UsersT&& value) { m_usersHasBeenSet = true; m_users.emplace_back(std::forward<UsersT>(value)); return *this; }
185
187
190 inline const Aws::Vector<ServiceId>& GetServiceIds() const { return m_serviceIds; }
191 inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; }
192 template<typename ServiceIdsT = Aws::Vector<ServiceId>>
193 void SetServiceIds(ServiceIdsT&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::forward<ServiceIdsT>(value); }
194 template<typename ServiceIdsT = Aws::Vector<ServiceId>>
195 TraceSummary& WithServiceIds(ServiceIdsT&& value) { SetServiceIds(std::forward<ServiceIdsT>(value)); return *this;}
196 template<typename ServiceIdsT = ServiceId>
197 TraceSummary& AddServiceIds(ServiceIdsT&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.emplace_back(std::forward<ServiceIdsT>(value)); return *this; }
199
201
205 inline const Aws::Vector<ResourceARNDetail>& GetResourceARNs() const { return m_resourceARNs; }
206 inline bool ResourceARNsHasBeenSet() const { return m_resourceARNsHasBeenSet; }
207 template<typename ResourceARNsT = Aws::Vector<ResourceARNDetail>>
208 void SetResourceARNs(ResourceARNsT&& value) { m_resourceARNsHasBeenSet = true; m_resourceARNs = std::forward<ResourceARNsT>(value); }
209 template<typename ResourceARNsT = Aws::Vector<ResourceARNDetail>>
210 TraceSummary& WithResourceARNs(ResourceARNsT&& value) { SetResourceARNs(std::forward<ResourceARNsT>(value)); return *this;}
211 template<typename ResourceARNsT = ResourceARNDetail>
212 TraceSummary& AddResourceARNs(ResourceARNsT&& value) { m_resourceARNsHasBeenSet = true; m_resourceARNs.emplace_back(std::forward<ResourceARNsT>(value)); return *this; }
214
216
220 inline const Aws::Vector<InstanceIdDetail>& GetInstanceIds() const { return m_instanceIds; }
221 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
222 template<typename InstanceIdsT = Aws::Vector<InstanceIdDetail>>
223 void SetInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::forward<InstanceIdsT>(value); }
224 template<typename InstanceIdsT = Aws::Vector<InstanceIdDetail>>
225 TraceSummary& WithInstanceIds(InstanceIdsT&& value) { SetInstanceIds(std::forward<InstanceIdsT>(value)); return *this;}
226 template<typename InstanceIdsT = InstanceIdDetail>
227 TraceSummary& AddInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value)); return *this; }
229
231
235 inline const Aws::Vector<AvailabilityZoneDetail>& GetAvailabilityZones() const { return m_availabilityZones; }
236 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
237 template<typename AvailabilityZonesT = Aws::Vector<AvailabilityZoneDetail>>
238 void SetAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::forward<AvailabilityZonesT>(value); }
239 template<typename AvailabilityZonesT = Aws::Vector<AvailabilityZoneDetail>>
240 TraceSummary& WithAvailabilityZones(AvailabilityZonesT&& value) { SetAvailabilityZones(std::forward<AvailabilityZonesT>(value)); return *this;}
241 template<typename AvailabilityZonesT = AvailabilityZoneDetail>
242 TraceSummary& AddAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value)); return *this; }
244
246
249 inline const ServiceId& GetEntryPoint() const { return m_entryPoint; }
250 inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; }
251 template<typename EntryPointT = ServiceId>
252 void SetEntryPoint(EntryPointT&& value) { m_entryPointHasBeenSet = true; m_entryPoint = std::forward<EntryPointT>(value); }
253 template<typename EntryPointT = ServiceId>
254 TraceSummary& WithEntryPoint(EntryPointT&& value) { SetEntryPoint(std::forward<EntryPointT>(value)); return *this;}
256
258
262 inline const Aws::Vector<FaultRootCause>& GetFaultRootCauses() const { return m_faultRootCauses; }
263 inline bool FaultRootCausesHasBeenSet() const { return m_faultRootCausesHasBeenSet; }
264 template<typename FaultRootCausesT = Aws::Vector<FaultRootCause>>
265 void SetFaultRootCauses(FaultRootCausesT&& value) { m_faultRootCausesHasBeenSet = true; m_faultRootCauses = std::forward<FaultRootCausesT>(value); }
266 template<typename FaultRootCausesT = Aws::Vector<FaultRootCause>>
267 TraceSummary& WithFaultRootCauses(FaultRootCausesT&& value) { SetFaultRootCauses(std::forward<FaultRootCausesT>(value)); return *this;}
268 template<typename FaultRootCausesT = FaultRootCause>
269 TraceSummary& AddFaultRootCauses(FaultRootCausesT&& value) { m_faultRootCausesHasBeenSet = true; m_faultRootCauses.emplace_back(std::forward<FaultRootCausesT>(value)); return *this; }
271
273
277 inline const Aws::Vector<ErrorRootCause>& GetErrorRootCauses() const { return m_errorRootCauses; }
278 inline bool ErrorRootCausesHasBeenSet() const { return m_errorRootCausesHasBeenSet; }
279 template<typename ErrorRootCausesT = Aws::Vector<ErrorRootCause>>
280 void SetErrorRootCauses(ErrorRootCausesT&& value) { m_errorRootCausesHasBeenSet = true; m_errorRootCauses = std::forward<ErrorRootCausesT>(value); }
281 template<typename ErrorRootCausesT = Aws::Vector<ErrorRootCause>>
282 TraceSummary& WithErrorRootCauses(ErrorRootCausesT&& value) { SetErrorRootCauses(std::forward<ErrorRootCausesT>(value)); return *this;}
283 template<typename ErrorRootCausesT = ErrorRootCause>
284 TraceSummary& AddErrorRootCauses(ErrorRootCausesT&& value) { m_errorRootCausesHasBeenSet = true; m_errorRootCauses.emplace_back(std::forward<ErrorRootCausesT>(value)); return *this; }
286
288
292 inline const Aws::Vector<ResponseTimeRootCause>& GetResponseTimeRootCauses() const { return m_responseTimeRootCauses; }
293 inline bool ResponseTimeRootCausesHasBeenSet() const { return m_responseTimeRootCausesHasBeenSet; }
294 template<typename ResponseTimeRootCausesT = Aws::Vector<ResponseTimeRootCause>>
295 void SetResponseTimeRootCauses(ResponseTimeRootCausesT&& value) { m_responseTimeRootCausesHasBeenSet = true; m_responseTimeRootCauses = std::forward<ResponseTimeRootCausesT>(value); }
296 template<typename ResponseTimeRootCausesT = Aws::Vector<ResponseTimeRootCause>>
297 TraceSummary& WithResponseTimeRootCauses(ResponseTimeRootCausesT&& value) { SetResponseTimeRootCauses(std::forward<ResponseTimeRootCausesT>(value)); return *this;}
298 template<typename ResponseTimeRootCausesT = ResponseTimeRootCause>
299 TraceSummary& AddResponseTimeRootCauses(ResponseTimeRootCausesT&& value) { m_responseTimeRootCausesHasBeenSet = true; m_responseTimeRootCauses.emplace_back(std::forward<ResponseTimeRootCausesT>(value)); return *this; }
301
303
306 inline int GetRevision() const { return m_revision; }
307 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
308 inline void SetRevision(int value) { m_revisionHasBeenSet = true; m_revision = value; }
309 inline TraceSummary& WithRevision(int value) { SetRevision(value); return *this;}
311
313
316 inline const Aws::Utils::DateTime& GetMatchedEventTime() const { return m_matchedEventTime; }
317 inline bool MatchedEventTimeHasBeenSet() const { return m_matchedEventTimeHasBeenSet; }
318 template<typename MatchedEventTimeT = Aws::Utils::DateTime>
319 void SetMatchedEventTime(MatchedEventTimeT&& value) { m_matchedEventTimeHasBeenSet = true; m_matchedEventTime = std::forward<MatchedEventTimeT>(value); }
320 template<typename MatchedEventTimeT = Aws::Utils::DateTime>
321 TraceSummary& WithMatchedEventTime(MatchedEventTimeT&& value) { SetMatchedEventTime(std::forward<MatchedEventTimeT>(value)); return *this;}
323 private:
324
325 Aws::String m_id;
326 bool m_idHasBeenSet = false;
327
328 Aws::Utils::DateTime m_startTime{};
329 bool m_startTimeHasBeenSet = false;
330
331 double m_duration{0.0};
332 bool m_durationHasBeenSet = false;
333
334 double m_responseTime{0.0};
335 bool m_responseTimeHasBeenSet = false;
336
337 bool m_hasFault{false};
338 bool m_hasFaultHasBeenSet = false;
339
340 bool m_hasError{false};
341 bool m_hasErrorHasBeenSet = false;
342
343 bool m_hasThrottle{false};
344 bool m_hasThrottleHasBeenSet = false;
345
346 bool m_isPartial{false};
347 bool m_isPartialHasBeenSet = false;
348
349 Http m_http;
350 bool m_httpHasBeenSet = false;
351
353 bool m_annotationsHasBeenSet = false;
354
356 bool m_usersHasBeenSet = false;
357
358 Aws::Vector<ServiceId> m_serviceIds;
359 bool m_serviceIdsHasBeenSet = false;
360
361 Aws::Vector<ResourceARNDetail> m_resourceARNs;
362 bool m_resourceARNsHasBeenSet = false;
363
364 Aws::Vector<InstanceIdDetail> m_instanceIds;
365 bool m_instanceIdsHasBeenSet = false;
366
367 Aws::Vector<AvailabilityZoneDetail> m_availabilityZones;
368 bool m_availabilityZonesHasBeenSet = false;
369
370 ServiceId m_entryPoint;
371 bool m_entryPointHasBeenSet = false;
372
373 Aws::Vector<FaultRootCause> m_faultRootCauses;
374 bool m_faultRootCausesHasBeenSet = false;
375
376 Aws::Vector<ErrorRootCause> m_errorRootCauses;
377 bool m_errorRootCausesHasBeenSet = false;
378
379 Aws::Vector<ResponseTimeRootCause> m_responseTimeRootCauses;
380 bool m_responseTimeRootCausesHasBeenSet = false;
381
382 int m_revision{0};
383 bool m_revisionHasBeenSet = false;
384
385 Aws::Utils::DateTime m_matchedEventTime{};
386 bool m_matchedEventTimeHasBeenSet = false;
387 };
388
389} // namespace Model
390} // namespace XRay
391} // 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