AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
11#include <aws/keyspacesstreams/model/KeyspacesCellValue.h>
12#include <aws/keyspacesstreams/model/KeyspacesRow.h>
13#include <aws/keyspacesstreams/model/OriginType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace KeyspacesStreams {
25namespace Model {
26
34class Record {
35 public:
36 AWS_KEYSPACESSTREAMS_API Record() = default;
37 AWS_KEYSPACESSTREAMS_API Record(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KEYSPACESSTREAMS_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetEventVersion() const { return m_eventVersion; }
47 inline bool EventVersionHasBeenSet() const { return m_eventVersionHasBeenSet; }
48 template <typename EventVersionT = Aws::String>
49 void SetEventVersion(EventVersionT&& value) {
50 m_eventVersionHasBeenSet = true;
51 m_eventVersion = std::forward<EventVersionT>(value);
52 }
53 template <typename EventVersionT = Aws::String>
54 Record& WithEventVersion(EventVersionT&& value) {
55 SetEventVersion(std::forward<EventVersionT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
66 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
67 template <typename CreatedAtT = Aws::Utils::DateTime>
68 void SetCreatedAt(CreatedAtT&& value) {
69 m_createdAtHasBeenSet = true;
70 m_createdAt = std::forward<CreatedAtT>(value);
71 }
72 template <typename CreatedAtT = Aws::Utils::DateTime>
73 Record& WithCreatedAt(CreatedAtT&& value) {
74 SetCreatedAt(std::forward<CreatedAtT>(value));
75 return *this;
76 }
78
80
83 inline OriginType GetOrigin() const { return m_origin; }
84 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
85 inline void SetOrigin(OriginType value) {
86 m_originHasBeenSet = true;
87 m_origin = value;
88 }
89 inline Record& WithOrigin(OriginType value) {
90 SetOrigin(value);
91 return *this;
92 }
94
96
99 inline const Aws::Map<Aws::String, KeyspacesCellValue>& GetPartitionKeys() const { return m_partitionKeys; }
100 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
101 template <typename PartitionKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
102 void SetPartitionKeys(PartitionKeysT&& value) {
103 m_partitionKeysHasBeenSet = true;
104 m_partitionKeys = std::forward<PartitionKeysT>(value);
105 }
106 template <typename PartitionKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
107 Record& WithPartitionKeys(PartitionKeysT&& value) {
108 SetPartitionKeys(std::forward<PartitionKeysT>(value));
109 return *this;
110 }
111 template <typename PartitionKeysKeyT = Aws::String, typename PartitionKeysValueT = KeyspacesCellValue>
112 Record& AddPartitionKeys(PartitionKeysKeyT&& key, PartitionKeysValueT&& value) {
113 m_partitionKeysHasBeenSet = true;
114 m_partitionKeys.emplace(std::forward<PartitionKeysKeyT>(key), std::forward<PartitionKeysValueT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::Map<Aws::String, KeyspacesCellValue>& GetClusteringKeys() const { return m_clusteringKeys; }
125 inline bool ClusteringKeysHasBeenSet() const { return m_clusteringKeysHasBeenSet; }
126 template <typename ClusteringKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
127 void SetClusteringKeys(ClusteringKeysT&& value) {
128 m_clusteringKeysHasBeenSet = true;
129 m_clusteringKeys = std::forward<ClusteringKeysT>(value);
130 }
131 template <typename ClusteringKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
132 Record& WithClusteringKeys(ClusteringKeysT&& value) {
133 SetClusteringKeys(std::forward<ClusteringKeysT>(value));
134 return *this;
135 }
136 template <typename ClusteringKeysKeyT = Aws::String, typename ClusteringKeysValueT = KeyspacesCellValue>
137 Record& AddClusteringKeys(ClusteringKeysKeyT&& key, ClusteringKeysValueT&& value) {
138 m_clusteringKeysHasBeenSet = true;
139 m_clusteringKeys.emplace(std::forward<ClusteringKeysKeyT>(key), std::forward<ClusteringKeysValueT>(value));
140 return *this;
141 }
143
145
149 inline const KeyspacesRow& GetNewImage() const { return m_newImage; }
150 inline bool NewImageHasBeenSet() const { return m_newImageHasBeenSet; }
151 template <typename NewImageT = KeyspacesRow>
152 void SetNewImage(NewImageT&& value) {
153 m_newImageHasBeenSet = true;
154 m_newImage = std::forward<NewImageT>(value);
155 }
156 template <typename NewImageT = KeyspacesRow>
157 Record& WithNewImage(NewImageT&& value) {
158 SetNewImage(std::forward<NewImageT>(value));
159 return *this;
160 }
162
164
168 inline const KeyspacesRow& GetOldImage() const { return m_oldImage; }
169 inline bool OldImageHasBeenSet() const { return m_oldImageHasBeenSet; }
170 template <typename OldImageT = KeyspacesRow>
171 void SetOldImage(OldImageT&& value) {
172 m_oldImageHasBeenSet = true;
173 m_oldImage = std::forward<OldImageT>(value);
174 }
175 template <typename OldImageT = KeyspacesRow>
176 Record& WithOldImage(OldImageT&& value) {
177 SetOldImage(std::forward<OldImageT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::String& GetSequenceNumber() const { return m_sequenceNumber; }
188 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
189 template <typename SequenceNumberT = Aws::String>
190 void SetSequenceNumber(SequenceNumberT&& value) {
191 m_sequenceNumberHasBeenSet = true;
192 m_sequenceNumber = std::forward<SequenceNumberT>(value);
193 }
194 template <typename SequenceNumberT = Aws::String>
195 Record& WithSequenceNumber(SequenceNumberT&& value) {
196 SetSequenceNumber(std::forward<SequenceNumberT>(value));
197 return *this;
198 }
200 private:
201 Aws::String m_eventVersion;
202
203 Aws::Utils::DateTime m_createdAt{};
204
206
208
210
211 KeyspacesRow m_newImage;
212
213 KeyspacesRow m_oldImage;
214
215 Aws::String m_sequenceNumber;
216 bool m_eventVersionHasBeenSet = false;
217 bool m_createdAtHasBeenSet = false;
218 bool m_originHasBeenSet = false;
219 bool m_partitionKeysHasBeenSet = false;
220 bool m_clusteringKeysHasBeenSet = false;
221 bool m_newImageHasBeenSet = false;
222 bool m_oldImageHasBeenSet = false;
223 bool m_sequenceNumberHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace KeyspacesStreams
228} // namespace Aws
void SetOrigin(OriginType value)
Definition Record.h:85
Record & WithPartitionKeys(PartitionKeysT &&value)
Definition Record.h:107
const KeyspacesRow & GetOldImage() const
Definition Record.h:168
OriginType GetOrigin() const
Definition Record.h:83
Record & WithOldImage(OldImageT &&value)
Definition Record.h:176
void SetEventVersion(EventVersionT &&value)
Definition Record.h:49
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Record.h:65
Record & WithCreatedAt(CreatedAtT &&value)
Definition Record.h:73
const Aws::Map< Aws::String, KeyspacesCellValue > & GetClusteringKeys() const
Definition Record.h:124
const Aws::Map< Aws::String, KeyspacesCellValue > & GetPartitionKeys() const
Definition Record.h:99
AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedAt(CreatedAtT &&value)
Definition Record.h:68
Record & WithSequenceNumber(SequenceNumberT &&value)
Definition Record.h:195
void SetOldImage(OldImageT &&value)
Definition Record.h:171
Record & WithEventVersion(EventVersionT &&value)
Definition Record.h:54
const Aws::String & GetSequenceNumber() const
Definition Record.h:187
Record & WithClusteringKeys(ClusteringKeysT &&value)
Definition Record.h:132
const KeyspacesRow & GetNewImage() const
Definition Record.h:149
AWS_KEYSPACESSTREAMS_API Record(Aws::Utils::Json::JsonView jsonValue)
AWS_KEYSPACESSTREAMS_API Record()=default
void SetSequenceNumber(SequenceNumberT &&value)
Definition Record.h:190
Record & AddPartitionKeys(PartitionKeysKeyT &&key, PartitionKeysValueT &&value)
Definition Record.h:112
void SetNewImage(NewImageT &&value)
Definition Record.h:152
const Aws::String & GetEventVersion() const
Definition Record.h:46
Record & WithOrigin(OriginType value)
Definition Record.h:89
Record & AddClusteringKeys(ClusteringKeysKeyT &&key, ClusteringKeysValueT &&value)
Definition Record.h:137
AWS_KEYSPACESSTREAMS_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPartitionKeys(PartitionKeysT &&value)
Definition Record.h:102
void SetClusteringKeys(ClusteringKeysT &&value)
Definition Record.h:127
Record & WithNewImage(NewImageT &&value)
Definition Record.h:157
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