AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RetrievedTrace.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/memory/stl/AWSVector.h>
10#include <aws/xray/model/Span.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace XRay
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_XRAY_API RetrievedTrace() = default;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
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>
52 RetrievedTrace& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
60 inline double GetDuration() const { return m_duration; }
61 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
62 inline void SetDuration(double value) { m_durationHasBeenSet = true; m_duration = value; }
63 inline RetrievedTrace& WithDuration(double value) { SetDuration(value); return *this;}
65
67
70 inline const Aws::Vector<Span>& GetSpans() const { return m_spans; }
71 inline bool SpansHasBeenSet() const { return m_spansHasBeenSet; }
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>>
75 RetrievedTrace& WithSpans(SpansT&& value) { SetSpans(std::forward<SpansT>(value)); return *this;}
76 template<typename SpansT = Span>
77 RetrievedTrace& AddSpans(SpansT&& value) { m_spansHasBeenSet = true; m_spans.emplace_back(std::forward<SpansT>(value)); return *this; }
79 private:
80
81 Aws::String m_id;
82 bool m_idHasBeenSet = false;
83
84 double m_duration{0.0};
85 bool m_durationHasBeenSet = false;
86
87 Aws::Vector<Span> m_spans;
88 bool m_spansHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace XRay
93} // namespace Aws
RetrievedTrace & WithDuration(double value)
RetrievedTrace & WithId(IdT &&value)
AWS_XRAY_API RetrievedTrace()=default
const Aws::String & GetId() const
const Aws::Vector< Span > & GetSpans() const
RetrievedTrace & AddSpans(SpansT &&value)
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