AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PropertygraphData.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/neptunedata/Neptunedata_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace neptunedata {
21namespace Model {
22
29 public:
30 AWS_NEPTUNEDATA_API PropertygraphData() = default;
31 AWS_NEPTUNEDATA_API PropertygraphData(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NEPTUNEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 PropertygraphData& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
64 inline const Aws::String& GetType() const { return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 template <typename TypeT = Aws::String>
67 void SetType(TypeT&& value) {
68 m_typeHasBeenSet = true;
69 m_type = std::forward<TypeT>(value);
70 }
71 template <typename TypeT = Aws::String>
72 PropertygraphData& WithType(TypeT&& value) {
73 SetType(std::forward<TypeT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetKey() const { return m_key; }
83 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
84 template <typename KeyT = Aws::String>
85 void SetKey(KeyT&& value) {
86 m_keyHasBeenSet = true;
87 m_key = std::forward<KeyT>(value);
88 }
89 template <typename KeyT = Aws::String>
90 PropertygraphData& WithKey(KeyT&& value) {
91 SetKey(std::forward<KeyT>(value));
92 return *this;
93 }
95
97
101 inline Aws::Utils::DocumentView GetValue() const { return m_value; }
102 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
103 template <typename ValueT = Aws::Utils::Document>
104 void SetValue(ValueT&& value) {
105 m_valueHasBeenSet = true;
106 m_value = std::forward<ValueT>(value);
107 }
108 template <typename ValueT = Aws::Utils::Document>
109 PropertygraphData& WithValue(ValueT&& value) {
110 SetValue(std::forward<ValueT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetFrom() const { return m_from; }
121 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
122 template <typename FromT = Aws::String>
123 void SetFrom(FromT&& value) {
124 m_fromHasBeenSet = true;
125 m_from = std::forward<FromT>(value);
126 }
127 template <typename FromT = Aws::String>
128 PropertygraphData& WithFrom(FromT&& value) {
129 SetFrom(std::forward<FromT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetTo() const { return m_to; }
140 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
141 template <typename ToT = Aws::String>
142 void SetTo(ToT&& value) {
143 m_toHasBeenSet = true;
144 m_to = std::forward<ToT>(value);
145 }
146 template <typename ToT = Aws::String>
147 PropertygraphData& WithTo(ToT&& value) {
148 SetTo(std::forward<ToT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_id;
154
155 Aws::String m_type;
156
157 Aws::String m_key;
158
159 Aws::Utils::Document m_value;
160
161 Aws::String m_from;
162
163 Aws::String m_to;
164 bool m_idHasBeenSet = false;
165 bool m_typeHasBeenSet = false;
166 bool m_keyHasBeenSet = false;
167 bool m_valueHasBeenSet = false;
168 bool m_fromHasBeenSet = false;
169 bool m_toHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace neptunedata
174} // namespace Aws
PropertygraphData & WithValue(ValueT &&value)
PropertygraphData & WithTo(ToT &&value)
Aws::Utils::DocumentView GetValue() const
AWS_NEPTUNEDATA_API PropertygraphData(Aws::Utils::Json::JsonView jsonValue)
AWS_NEPTUNEDATA_API PropertygraphData & operator=(Aws::Utils::Json::JsonView jsonValue)
PropertygraphData & WithKey(KeyT &&value)
PropertygraphData & WithFrom(FromT &&value)
PropertygraphData & WithType(TypeT &&value)
PropertygraphData & WithId(IdT &&value)
AWS_NEPTUNEDATA_API PropertygraphData()=default
AWS_NEPTUNEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue