AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PropertygraphRecord.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/neptunedata/Neptunedata_EXPORTS.h>
10#include <aws/neptunedata/model/PropertygraphData.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace neptunedata {
22namespace Model {
23
30 public:
31 AWS_NEPTUNEDATA_API PropertygraphRecord() = default;
32 AWS_NEPTUNEDATA_API PropertygraphRecord(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NEPTUNEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline long long GetCommitTimestampInMillis() const { return m_commitTimestampInMillis; }
42 inline bool CommitTimestampInMillisHasBeenSet() const { return m_commitTimestampInMillisHasBeenSet; }
43 inline void SetCommitTimestampInMillis(long long value) {
44 m_commitTimestampInMillisHasBeenSet = true;
45 m_commitTimestampInMillis = value;
46 }
49 return *this;
50 }
52
54
57 inline const Aws::Map<Aws::String, Aws::String>& GetEventId() const { return m_eventId; }
58 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
59 template <typename EventIdT = Aws::Map<Aws::String, Aws::String>>
60 void SetEventId(EventIdT&& value) {
61 m_eventIdHasBeenSet = true;
62 m_eventId = std::forward<EventIdT>(value);
63 }
64 template <typename EventIdT = Aws::Map<Aws::String, Aws::String>>
65 PropertygraphRecord& WithEventId(EventIdT&& value) {
66 SetEventId(std::forward<EventIdT>(value));
67 return *this;
68 }
69 template <typename EventIdKeyT = Aws::String, typename EventIdValueT = Aws::String>
70 PropertygraphRecord& AddEventId(EventIdKeyT&& key, EventIdValueT&& value) {
71 m_eventIdHasBeenSet = true;
72 m_eventId.emplace(std::forward<EventIdKeyT>(key), std::forward<EventIdValueT>(value));
73 return *this;
74 }
76
78
81 inline const PropertygraphData& GetData() const { return m_data; }
82 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
83 template <typename DataT = PropertygraphData>
84 void SetData(DataT&& value) {
85 m_dataHasBeenSet = true;
86 m_data = std::forward<DataT>(value);
87 }
88 template <typename DataT = PropertygraphData>
89 PropertygraphRecord& WithData(DataT&& value) {
90 SetData(std::forward<DataT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetOp() const { return m_op; }
100 inline bool OpHasBeenSet() const { return m_opHasBeenSet; }
101 template <typename OpT = Aws::String>
102 void SetOp(OpT&& value) {
103 m_opHasBeenSet = true;
104 m_op = std::forward<OpT>(value);
105 }
106 template <typename OpT = Aws::String>
108 SetOp(std::forward<OpT>(value));
109 return *this;
110 }
112
114
119 inline bool GetIsLastOp() const { return m_isLastOp; }
120 inline bool IsLastOpHasBeenSet() const { return m_isLastOpHasBeenSet; }
121 inline void SetIsLastOp(bool value) {
122 m_isLastOpHasBeenSet = true;
123 m_isLastOp = value;
124 }
125 inline PropertygraphRecord& WithIsLastOp(bool value) {
126 SetIsLastOp(value);
127 return *this;
128 }
130 private:
131 long long m_commitTimestampInMillis{0};
132
134
135 PropertygraphData m_data;
136
137 Aws::String m_op;
138
139 bool m_isLastOp{false};
140 bool m_commitTimestampInMillisHasBeenSet = false;
141 bool m_eventIdHasBeenSet = false;
142 bool m_dataHasBeenSet = false;
143 bool m_opHasBeenSet = false;
144 bool m_isLastOpHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace neptunedata
149} // namespace Aws
AWS_NEPTUNEDATA_API PropertygraphRecord()=default
PropertygraphRecord & WithIsLastOp(bool value)
AWS_NEPTUNEDATA_API PropertygraphRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
PropertygraphRecord & WithData(DataT &&value)
const PropertygraphData & GetData() const
AWS_NEPTUNEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
PropertygraphRecord & WithOp(OpT &&value)
PropertygraphRecord & AddEventId(EventIdKeyT &&key, EventIdValueT &&value)
PropertygraphRecord & WithEventId(EventIdT &&value)
AWS_NEPTUNEDATA_API PropertygraphRecord(Aws::Utils::Json::JsonView jsonValue)
PropertygraphRecord & WithCommitTimestampInMillis(long long value)
const Aws::Map< Aws::String, Aws::String > & GetEventId() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue