AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PropertygraphRecord.h
1
6#pragma once
7#include <aws/neptunedata/Neptunedata_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/neptunedata/model/PropertygraphData.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace neptunedata
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_NEPTUNEDATA_API PropertygraphRecord() = default;
37 AWS_NEPTUNEDATA_API PropertygraphRecord(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NEPTUNEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline long long GetCommitTimestampInMillis() const { return m_commitTimestampInMillis; }
48 inline bool CommitTimestampInMillisHasBeenSet() const { return m_commitTimestampInMillisHasBeenSet; }
49 inline void SetCommitTimestampInMillis(long long value) { m_commitTimestampInMillisHasBeenSet = true; m_commitTimestampInMillis = value; }
50 inline PropertygraphRecord& WithCommitTimestampInMillis(long long value) { SetCommitTimestampInMillis(value); return *this;}
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) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
61 template<typename EventIdT = Aws::Map<Aws::String, Aws::String>>
62 PropertygraphRecord& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
63 template<typename EventIdKeyT = Aws::String, typename EventIdValueT = Aws::String>
64 PropertygraphRecord& AddEventId(EventIdKeyT&& key, EventIdValueT&& value) {
65 m_eventIdHasBeenSet = true; m_eventId.emplace(std::forward<EventIdKeyT>(key), std::forward<EventIdValueT>(value)); return *this;
66 }
68
70
73 inline const PropertygraphData& GetData() const { return m_data; }
74 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
75 template<typename DataT = PropertygraphData>
76 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
77 template<typename DataT = PropertygraphData>
78 PropertygraphRecord& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
80
82
85 inline const Aws::String& GetOp() const { return m_op; }
86 inline bool OpHasBeenSet() const { return m_opHasBeenSet; }
87 template<typename OpT = Aws::String>
88 void SetOp(OpT&& value) { m_opHasBeenSet = true; m_op = std::forward<OpT>(value); }
89 template<typename OpT = Aws::String>
90 PropertygraphRecord& WithOp(OpT&& value) { SetOp(std::forward<OpT>(value)); return *this;}
92
94
99 inline bool GetIsLastOp() const { return m_isLastOp; }
100 inline bool IsLastOpHasBeenSet() const { return m_isLastOpHasBeenSet; }
101 inline void SetIsLastOp(bool value) { m_isLastOpHasBeenSet = true; m_isLastOp = value; }
102 inline PropertygraphRecord& WithIsLastOp(bool value) { SetIsLastOp(value); return *this;}
104 private:
105
106 long long m_commitTimestampInMillis{0};
107 bool m_commitTimestampInMillisHasBeenSet = false;
108
110 bool m_eventIdHasBeenSet = false;
111
112 PropertygraphData m_data;
113 bool m_dataHasBeenSet = false;
114
115 Aws::String m_op;
116 bool m_opHasBeenSet = false;
117
118 bool m_isLastOp{false};
119 bool m_isLastOpHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace neptunedata
124} // 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