AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Span.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/xray/XRay_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace XRay {
20namespace Model {
21
29class Span {
30 public:
31 AWS_XRAY_API Span() = default;
32 AWS_XRAY_API Span(Aws::Utils::Json::JsonView jsonValue);
33 AWS_XRAY_API Span& operator=(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 Span& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDocument() const { return m_document; }
59 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
60 template <typename DocumentT = Aws::String>
61 void SetDocument(DocumentT&& value) {
62 m_documentHasBeenSet = true;
63 m_document = std::forward<DocumentT>(value);
64 }
65 template <typename DocumentT = Aws::String>
66 Span& WithDocument(DocumentT&& value) {
67 SetDocument(std::forward<DocumentT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_id;
73
74 Aws::String m_document;
75 bool m_idHasBeenSet = false;
76 bool m_documentHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace XRay
81} // namespace Aws
const Aws::String & GetId() const
Definition Span.h:40
bool DocumentHasBeenSet() const
Definition Span.h:59
Span & WithDocument(DocumentT &&value)
Definition Span.h:66
AWS_XRAY_API Span()=default
Span & WithId(IdT &&value)
Definition Span.h:48
const Aws::String & GetDocument() const
Definition Span.h:58
bool IdHasBeenSet() const
Definition Span.h:41
void SetId(IdT &&value)
Definition Span.h:43
AWS_XRAY_API Span(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDocument(DocumentT &&value)
Definition Span.h:61
AWS_XRAY_API Span & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue