7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/xray/model/Segment.h>
50 template<
typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
52 template<
typename IdT = Aws::String>
63 inline void SetDuration(
double value) { m_durationHasBeenSet =
true; m_duration = value; }
77 inline void SetLimitExceeded(
bool value) { m_limitExceededHasBeenSet =
true; m_limitExceeded = value; }
88 template<
typename SegmentsT = Aws::Vector<Segment>>
89 void SetSegments(SegmentsT&& value) { m_segmentsHasBeenSet =
true; m_segments = std::forward<SegmentsT>(value); }
90 template<
typename SegmentsT = Aws::Vector<Segment>>
92 template<
typename SegmentsT = Segment>
93 Trace&
AddSegments(SegmentsT&& value) { m_segmentsHasBeenSet =
true; m_segments.emplace_back(std::forward<SegmentsT>(value));
return *
this; }
98 bool m_idHasBeenSet =
false;
100 double m_duration{0.0};
101 bool m_durationHasBeenSet =
false;
103 bool m_limitExceeded{
false};
104 bool m_limitExceededHasBeenSet =
false;
107 bool m_segmentsHasBeenSet =
false;
void SetDuration(double value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSegments(SegmentsT &&value)
const Aws::String & GetId() const
AWS_XRAY_API Trace & operator=(Aws::Utils::Json::JsonView jsonValue)
Trace & WithDuration(double value)
const Aws::Vector< Segment > & GetSegments() const
Trace & WithLimitExceeded(bool value)
Trace & AddSegments(SegmentsT &&value)
AWS_XRAY_API Trace(Aws::Utils::Json::JsonView jsonValue)
double GetDuration() const
AWS_XRAY_API Trace()=default
bool DurationHasBeenSet() const
void SetLimitExceeded(bool value)
bool IdHasBeenSet() const
bool LimitExceededHasBeenSet() const
Trace & WithSegments(SegmentsT &&value)
bool SegmentsHasBeenSet() const
bool GetLimitExceeded() const
Trace & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue