AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Segment.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
35class Segment {
36 public:
37 AWS_XRAY_API Segment() = default;
38 AWS_XRAY_API Segment(Aws::Utils::Json::JsonView jsonValue);
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) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
54 Segment& WithId(IdT&& value) {
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDocument() const { return m_document; }
65 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
66 template <typename DocumentT = Aws::String>
67 void SetDocument(DocumentT&& value) {
68 m_documentHasBeenSet = true;
69 m_document = std::forward<DocumentT>(value);
70 }
71 template <typename DocumentT = Aws::String>
72 Segment& WithDocument(DocumentT&& value) {
73 SetDocument(std::forward<DocumentT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_id;
79
80 Aws::String m_document;
81 bool m_idHasBeenSet = false;
82 bool m_documentHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace XRay
87} // namespace Aws
bool IdHasBeenSet() const
Definition Segment.h:47
const Aws::String & GetId() const
Definition Segment.h:46
AWS_XRAY_API Segment(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDocument() const
Definition Segment.h:64
AWS_XRAY_API Segment()=default
AWS_XRAY_API Segment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDocument(DocumentT &&value)
Definition Segment.h:67
Segment & WithDocument(DocumentT &&value)
Definition Segment.h:72
void SetId(IdT &&value)
Definition Segment.h:49
bool DocumentHasBeenSet() const
Definition Segment.h:65
Segment & WithId(IdT &&value)
Definition Segment.h:54
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue