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>
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>
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>
87 inline void SetDuration(
double value) { m_durationHasBeenSet =
true; m_duration = value; }
100 inline void SetResponseTime(
double value) { m_responseTimeHasBeenSet =
true; m_responseTime = value; }
110 inline void SetHasFault(
bool value) { m_hasFaultHasBeenSet =
true; m_hasFault = value; }
120 inline void SetHasError(
bool value) { m_hasErrorHasBeenSet =
true; m_hasError = value; }
130 inline void SetHasThrottle(
bool value) { m_hasThrottleHasBeenSet =
true; m_hasThrottle = value; }
140 inline void SetIsPartial(
bool value) { m_isPartialHasBeenSet =
true; m_isPartial = value; }
150 template<
typename HttpT = Http>
151 void SetHttp(HttpT&& value) { m_httpHasBeenSet =
true; m_http = std::forward<HttpT>(value); }
152 template<
typename HttpT = Http>
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>>>
166 template<
typename AnnotationsKeyT = Aws::String,
typename AnnotationsValueT = Aws::Vector<ValueWithServiceIds>>
168 m_annotationsHasBeenSet =
true; m_annotations.emplace(std::forward<AnnotationsKeyT>(key), std::forward<AnnotationsValueT>(value));
return *
this;
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>>
182 template<
typename UsersT = TraceUser>
183 TraceSummary&
AddUsers(UsersT&& value) { m_usersHasBeenSet =
true; m_users.emplace_back(std::forward<UsersT>(value));
return *
this; }
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>>
196 template<
typename ServiceIdsT = ServiceId>
197 TraceSummary&
AddServiceIds(ServiceIdsT&& value) { m_serviceIdsHasBeenSet =
true; m_serviceIds.emplace_back(std::forward<ServiceIdsT>(value));
return *
this; }
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>>
211 template<
typename ResourceARNsT = ResourceARNDetail>
212 TraceSummary&
AddResourceARNs(ResourceARNsT&& value) { m_resourceARNsHasBeenSet =
true; m_resourceARNs.emplace_back(std::forward<ResourceARNsT>(value));
return *
this; }
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>>
226 template<
typename InstanceIdsT = InstanceIdDetail>
227 TraceSummary&
AddInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet =
true; m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value));
return *
this; }
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>>
241 template<
typename AvailabilityZonesT = AvailabilityZoneDetail>
242 TraceSummary&
AddAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet =
true; m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value));
return *
this; }
251 template<
typename EntryPo
intT = ServiceId>
252 void SetEntryPoint(EntryPointT&& value) { m_entryPointHasBeenSet =
true; m_entryPoint = std::forward<EntryPointT>(value); }
253 template<
typename EntryPo
intT = ServiceId>
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>>
268 template<
typename FaultRootCausesT = FaultRootCause>
269 TraceSummary&
AddFaultRootCauses(FaultRootCausesT&& value) { m_faultRootCausesHasBeenSet =
true; m_faultRootCauses.emplace_back(std::forward<FaultRootCausesT>(value));
return *
this; }
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>>
283 template<
typename ErrorRootCausesT = ErrorRootCause>
284 TraceSummary&
AddErrorRootCauses(ErrorRootCausesT&& value) { m_errorRootCausesHasBeenSet =
true; m_errorRootCauses.emplace_back(std::forward<ErrorRootCausesT>(value));
return *
this; }
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>>
298 template<
typename ResponseTimeRootCausesT = ResponseTimeRootCause>
299 TraceSummary&
AddResponseTimeRootCauses(ResponseTimeRootCausesT&& value) { m_responseTimeRootCausesHasBeenSet =
true; m_responseTimeRootCauses.emplace_back(std::forward<ResponseTimeRootCausesT>(value));
return *
this; }
308 inline void SetRevision(
int value) { m_revisionHasBeenSet =
true; m_revision = value; }
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>
326 bool m_idHasBeenSet =
false;
329 bool m_startTimeHasBeenSet =
false;
331 double m_duration{0.0};
332 bool m_durationHasBeenSet =
false;
334 double m_responseTime{0.0};
335 bool m_responseTimeHasBeenSet =
false;
337 bool m_hasFault{
false};
338 bool m_hasFaultHasBeenSet =
false;
340 bool m_hasError{
false};
341 bool m_hasErrorHasBeenSet =
false;
343 bool m_hasThrottle{
false};
344 bool m_hasThrottleHasBeenSet =
false;
346 bool m_isPartial{
false};
347 bool m_isPartialHasBeenSet =
false;
350 bool m_httpHasBeenSet =
false;
353 bool m_annotationsHasBeenSet =
false;
356 bool m_usersHasBeenSet =
false;
359 bool m_serviceIdsHasBeenSet =
false;
362 bool m_resourceARNsHasBeenSet =
false;
365 bool m_instanceIdsHasBeenSet =
false;
368 bool m_availabilityZonesHasBeenSet =
false;
370 ServiceId m_entryPoint;
371 bool m_entryPointHasBeenSet =
false;
374 bool m_faultRootCausesHasBeenSet =
false;
377 bool m_errorRootCausesHasBeenSet =
false;
380 bool m_responseTimeRootCausesHasBeenSet =
false;
383 bool m_revisionHasBeenSet =
false;
386 bool m_matchedEventTimeHasBeenSet =
false;
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)
bool GetHasThrottle() const
void SetServiceIds(ServiceIdsT &&value)
void SetHasThrottle(bool value)
TraceSummary & WithIsPartial(bool value)
const Http & GetHttp() const
const Aws::Vector< ServiceId > & GetServiceIds() const
bool AnnotationsHasBeenSet() const
bool HasErrorHasBeenSet() const
TraceSummary & AddFaultRootCauses(FaultRootCausesT &&value)
void SetRevision(int value)
void SetResponseTimeRootCauses(ResponseTimeRootCausesT &&value)
TraceSummary & WithAvailabilityZones(AvailabilityZonesT &&value)
void SetEntryPoint(EntryPointT &&value)
bool DurationHasBeenSet() const
const ServiceId & GetEntryPoint() const
const Aws::Vector< ResourceARNDetail > & GetResourceARNs() const
TraceSummary & AddAvailabilityZones(AvailabilityZonesT &&value)
bool ResourceARNsHasBeenSet() const
void SetResourceARNs(ResourceARNsT &&value)
bool IdHasBeenSet() const
void SetErrorRootCauses(ErrorRootCausesT &&value)
double GetResponseTime() const
bool HttpHasBeenSet() const
TraceSummary & WithHasError(bool value)
TraceSummary & WithStartTime(StartTimeT &&value)
void SetHasError(bool 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)
bool AvailabilityZonesHasBeenSet() const
void SetResponseTime(double value)
const Aws::Vector< FaultRootCause > & GetFaultRootCauses() const
void SetIsPartial(bool value)
void SetInstanceIds(InstanceIdsT &&value)
TraceSummary & WithResponseTime(double value)
bool GetIsPartial() const
TraceSummary & AddUsers(UsersT &&value)
bool IsPartialHasBeenSet() const
void SetFaultRootCauses(FaultRootCausesT &&value)
bool FaultRootCausesHasBeenSet() const
TraceSummary & AddResourceARNs(ResourceARNsT &&value)
void SetUsers(UsersT &&value)
bool ServiceIdsHasBeenSet() const
TraceSummary & AddAnnotations(AnnotationsKeyT &&key, AnnotationsValueT &&value)
bool EntryPointHasBeenSet() const
bool RevisionHasBeenSet() const
bool ResponseTimeHasBeenSet() const
void SetAnnotations(AnnotationsT &&value)
bool HasFaultHasBeenSet() const
bool ErrorRootCausesHasBeenSet() const
void SetHttp(HttpT &&value)
TraceSummary & WithAnnotations(AnnotationsT &&value)
TraceSummary & WithMatchedEventTime(MatchedEventTimeT &&value)
const Aws::String & GetId() const
const Aws::Vector< ErrorRootCause > & GetErrorRootCauses() const
void SetHasFault(bool value)
TraceSummary & AddErrorRootCauses(ErrorRootCausesT &&value)
TraceSummary & WithUsers(UsersT &&value)
AWS_XRAY_API TraceSummary()=default
TraceSummary & WithHttp(HttpT &&value)
const Aws::Vector< AvailabilityZoneDetail > & GetAvailabilityZones() const
bool InstanceIdsHasBeenSet() const
bool HasThrottleHasBeenSet() const
TraceSummary & WithRevision(int value)
const Aws::Vector< ResponseTimeRootCause > & GetResponseTimeRootCauses() const
bool UsersHasBeenSet() 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
bool MatchedEventTimeHasBeenSet() const
TraceSummary & WithEntryPoint(EntryPointT &&value)
TraceSummary & WithResponseTimeRootCauses(ResponseTimeRootCausesT &&value)
bool StartTimeHasBeenSet() const
void SetAvailabilityZones(AvailabilityZonesT &&value)
const Aws::Vector< TraceUser > & GetUsers() const
double GetDuration() 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