AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Trace.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/Segment.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
34 class Trace
35 {
36 public:
37 AWS_XRAY_API Trace();
38 AWS_XRAY_API Trace(Aws::Utils::Json::JsonView jsonValue);
39 AWS_XRAY_API Trace& operator=(Aws::Utils::Json::JsonView jsonValue);
41
42
44
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline Trace& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline Trace& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline Trace& WithId(const char* value) { SetId(value); return *this;}
57
59
63 inline double GetDuration() const{ return m_duration; }
64 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
65 inline void SetDuration(double value) { m_durationHasBeenSet = true; m_duration = value; }
66 inline Trace& WithDuration(double value) { SetDuration(value); return *this;}
68
70
77 inline bool GetLimitExceeded() const{ return m_limitExceeded; }
78 inline bool LimitExceededHasBeenSet() const { return m_limitExceededHasBeenSet; }
79 inline void SetLimitExceeded(bool value) { m_limitExceededHasBeenSet = true; m_limitExceeded = value; }
80 inline Trace& WithLimitExceeded(bool value) { SetLimitExceeded(value); return *this;}
82
84
88 inline const Aws::Vector<Segment>& GetSegments() const{ return m_segments; }
89 inline bool SegmentsHasBeenSet() const { return m_segmentsHasBeenSet; }
90 inline void SetSegments(const Aws::Vector<Segment>& value) { m_segmentsHasBeenSet = true; m_segments = value; }
91 inline void SetSegments(Aws::Vector<Segment>&& value) { m_segmentsHasBeenSet = true; m_segments = std::move(value); }
92 inline Trace& WithSegments(const Aws::Vector<Segment>& value) { SetSegments(value); return *this;}
93 inline Trace& WithSegments(Aws::Vector<Segment>&& value) { SetSegments(std::move(value)); return *this;}
94 inline Trace& AddSegments(const Segment& value) { m_segmentsHasBeenSet = true; m_segments.push_back(value); return *this; }
95 inline Trace& AddSegments(Segment&& value) { m_segmentsHasBeenSet = true; m_segments.push_back(std::move(value)); return *this; }
97 private:
98
99 Aws::String m_id;
100 bool m_idHasBeenSet = false;
101
102 double m_duration;
103 bool m_durationHasBeenSet = false;
104
105 bool m_limitExceeded;
106 bool m_limitExceededHasBeenSet = false;
107
108 Aws::Vector<Segment> m_segments;
109 bool m_segmentsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace XRay
114} // namespace Aws
void SetDuration(double value)
Definition Trace.h:65
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
Definition Trace.h:48
Trace & WithId(const Aws::String &value)
Definition Trace.h:53
AWS_XRAY_API Trace & operator=(Aws::Utils::Json::JsonView jsonValue)
Trace & WithDuration(double value)
Definition Trace.h:66
const Aws::Vector< Segment > & GetSegments() const
Definition Trace.h:88
Trace & WithLimitExceeded(bool value)
Definition Trace.h:80
AWS_XRAY_API Trace(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Trace()
void SetId(const Aws::String &value)
Definition Trace.h:50
double GetDuration() const
Definition Trace.h:63
void SetSegments(const Aws::Vector< Segment > &value)
Definition Trace.h:90
Trace & AddSegments(const Segment &value)
Definition Trace.h:94
bool DurationHasBeenSet() const
Definition Trace.h:64
Trace & WithId(const char *value)
Definition Trace.h:55
void SetLimitExceeded(bool value)
Definition Trace.h:79
void SetId(const char *value)
Definition Trace.h:52
bool IdHasBeenSet() const
Definition Trace.h:49
Trace & WithSegments(const Aws::Vector< Segment > &value)
Definition Trace.h:92
bool LimitExceededHasBeenSet() const
Definition Trace.h:78
void SetSegments(Aws::Vector< Segment > &&value)
Definition Trace.h:91
Trace & WithSegments(Aws::Vector< Segment > &&value)
Definition Trace.h:93
Trace & WithId(Aws::String &&value)
Definition Trace.h:54
bool SegmentsHasBeenSet() const
Definition Trace.h:89
bool GetLimitExceeded() const
Definition Trace.h:77
void SetId(Aws::String &&value)
Definition Trace.h:51
Trace & AddSegments(Segment &&value)
Definition Trace.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue