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/Span.h>
49 template<
typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
51 template<
typename IdT = Aws::String>
62 inline void SetDuration(
double value) { m_durationHasBeenSet =
true; m_duration = value; }
72 template<
typename SpansT = Aws::Vector<Span>>
73 void SetSpans(SpansT&& value) { m_spansHasBeenSet =
true; m_spans = std::forward<SpansT>(value); }
74 template<
typename SpansT = Aws::Vector<Span>>
76 template<
typename SpansT = Span>
77 RetrievedTrace&
AddSpans(SpansT&& value) { m_spansHasBeenSet =
true; m_spans.emplace_back(std::forward<SpansT>(value));
return *
this; }
82 bool m_idHasBeenSet =
false;
84 double m_duration{0.0};
85 bool m_durationHasBeenSet =
false;
88 bool m_spansHasBeenSet =
false;
RetrievedTrace & WithDuration(double value)
RetrievedTrace & WithId(IdT &&value)
bool DurationHasBeenSet() const
double GetDuration() const
bool IdHasBeenSet() const
void SetSpans(SpansT &&value)
AWS_XRAY_API RetrievedTrace()=default
const Aws::String & GetId() const
const Aws::Vector< Span > & GetSpans() const
void SetDuration(double value)
RetrievedTrace & AddSpans(SpansT &&value)
bool SpansHasBeenSet() const
RetrievedTrace & WithSpans(SpansT &&value)
AWS_XRAY_API RetrievedTrace(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_XRAY_API RetrievedTrace & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue