AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Span.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace XRay
22{
23namespace Model
24{
25
33 class Span
34 {
35 public:
36 AWS_XRAY_API Span() = default;
37 AWS_XRAY_API Span(Aws::Utils::Json::JsonView jsonValue);
38 AWS_XRAY_API Span& operator=(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 Span& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_documentHasBeenSet = true; m_document = std::forward<DocumentT>(value); }
62 template<typename DocumentT = Aws::String>
63 Span& WithDocument(DocumentT&& value) { SetDocument(std::forward<DocumentT>(value)); return *this;}
65 private:
66
67 Aws::String m_id;
68 bool m_idHasBeenSet = false;
69
70 Aws::String m_document;
71 bool m_documentHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace XRay
76} // namespace Aws
const Aws::String & GetId() const
Definition Span.h:46
bool DocumentHasBeenSet() const
Definition Span.h:59
Span & WithDocument(DocumentT &&value)
Definition Span.h:63
AWS_XRAY_API Span()=default
Span & WithId(IdT &&value)
Definition Span.h:51
const Aws::String & GetDocument() const
Definition Span.h:58
bool IdHasBeenSet() const
Definition Span.h:47
void SetId(IdT &&value)
Definition Span.h:49
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