AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/keyspacesstreams/model/OriginType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/keyspacesstreams/model/KeyspacesRow.h>
13#include <aws/keyspacesstreams/model/KeyspacesCellValue.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace KeyspacesStreams
27{
28namespace Model
29{
30
38 class Record
39 {
40 public:
41 AWS_KEYSPACESSTREAMS_API Record() = default;
42 AWS_KEYSPACESSTREAMS_API Record(Aws::Utils::Json::JsonView jsonValue);
43 AWS_KEYSPACESSTREAMS_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetEventVersion() const { return m_eventVersion; }
53 inline bool EventVersionHasBeenSet() const { return m_eventVersionHasBeenSet; }
54 template<typename EventVersionT = Aws::String>
55 void SetEventVersion(EventVersionT&& value) { m_eventVersionHasBeenSet = true; m_eventVersion = std::forward<EventVersionT>(value); }
56 template<typename EventVersionT = Aws::String>
57 Record& WithEventVersion(EventVersionT&& value) { SetEventVersion(std::forward<EventVersionT>(value)); return *this;}
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) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
69 template<typename CreatedAtT = Aws::Utils::DateTime>
70 Record& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
72
74
77 inline OriginType GetOrigin() const { return m_origin; }
78 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
79 inline void SetOrigin(OriginType value) { m_originHasBeenSet = true; m_origin = value; }
80 inline Record& WithOrigin(OriginType value) { SetOrigin(value); return *this;}
82
84
87 inline const Aws::Map<Aws::String, KeyspacesCellValue>& GetPartitionKeys() const { return m_partitionKeys; }
88 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
89 template<typename PartitionKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
90 void SetPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::forward<PartitionKeysT>(value); }
91 template<typename PartitionKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
92 Record& WithPartitionKeys(PartitionKeysT&& value) { SetPartitionKeys(std::forward<PartitionKeysT>(value)); return *this;}
93 template<typename PartitionKeysKeyT = Aws::String, typename PartitionKeysValueT = KeyspacesCellValue>
94 Record& AddPartitionKeys(PartitionKeysKeyT&& key, PartitionKeysValueT&& value) {
95 m_partitionKeysHasBeenSet = true; m_partitionKeys.emplace(std::forward<PartitionKeysKeyT>(key), std::forward<PartitionKeysValueT>(value)); return *this;
96 }
98
100
104 inline const Aws::Map<Aws::String, KeyspacesCellValue>& GetClusteringKeys() const { return m_clusteringKeys; }
105 inline bool ClusteringKeysHasBeenSet() const { return m_clusteringKeysHasBeenSet; }
106 template<typename ClusteringKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
107 void SetClusteringKeys(ClusteringKeysT&& value) { m_clusteringKeysHasBeenSet = true; m_clusteringKeys = std::forward<ClusteringKeysT>(value); }
108 template<typename ClusteringKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
109 Record& WithClusteringKeys(ClusteringKeysT&& value) { SetClusteringKeys(std::forward<ClusteringKeysT>(value)); return *this;}
110 template<typename ClusteringKeysKeyT = Aws::String, typename ClusteringKeysValueT = KeyspacesCellValue>
111 Record& AddClusteringKeys(ClusteringKeysKeyT&& key, ClusteringKeysValueT&& value) {
112 m_clusteringKeysHasBeenSet = true; m_clusteringKeys.emplace(std::forward<ClusteringKeysKeyT>(key), std::forward<ClusteringKeysValueT>(value)); return *this;
113 }
115
117
121 inline const KeyspacesRow& GetNewImage() const { return m_newImage; }
122 inline bool NewImageHasBeenSet() const { return m_newImageHasBeenSet; }
123 template<typename NewImageT = KeyspacesRow>
124 void SetNewImage(NewImageT&& value) { m_newImageHasBeenSet = true; m_newImage = std::forward<NewImageT>(value); }
125 template<typename NewImageT = KeyspacesRow>
126 Record& WithNewImage(NewImageT&& value) { SetNewImage(std::forward<NewImageT>(value)); return *this;}
128
130
134 inline const KeyspacesRow& GetOldImage() const { return m_oldImage; }
135 inline bool OldImageHasBeenSet() const { return m_oldImageHasBeenSet; }
136 template<typename OldImageT = KeyspacesRow>
137 void SetOldImage(OldImageT&& value) { m_oldImageHasBeenSet = true; m_oldImage = std::forward<OldImageT>(value); }
138 template<typename OldImageT = KeyspacesRow>
139 Record& WithOldImage(OldImageT&& value) { SetOldImage(std::forward<OldImageT>(value)); return *this;}
141
143
147 inline const Aws::String& GetSequenceNumber() const { return m_sequenceNumber; }
148 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
149 template<typename SequenceNumberT = Aws::String>
150 void SetSequenceNumber(SequenceNumberT&& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = std::forward<SequenceNumberT>(value); }
151 template<typename SequenceNumberT = Aws::String>
152 Record& WithSequenceNumber(SequenceNumberT&& value) { SetSequenceNumber(std::forward<SequenceNumberT>(value)); return *this;}
154 private:
155
156 Aws::String m_eventVersion;
157 bool m_eventVersionHasBeenSet = false;
158
159 Aws::Utils::DateTime m_createdAt{};
160 bool m_createdAtHasBeenSet = false;
161
163 bool m_originHasBeenSet = false;
164
166 bool m_partitionKeysHasBeenSet = false;
167
169 bool m_clusteringKeysHasBeenSet = false;
170
171 KeyspacesRow m_newImage;
172 bool m_newImageHasBeenSet = false;
173
174 KeyspacesRow m_oldImage;
175 bool m_oldImageHasBeenSet = false;
176
177 Aws::String m_sequenceNumber;
178 bool m_sequenceNumberHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace KeyspacesStreams
183} // namespace Aws
void SetOrigin(OriginType value)
Definition Record.h:79
Record & WithPartitionKeys(PartitionKeysT &&value)
Definition Record.h:92
const KeyspacesRow & GetOldImage() const
Definition Record.h:134
OriginType GetOrigin() const
Definition Record.h:77
Record & WithOldImage(OldImageT &&value)
Definition Record.h:139
void SetEventVersion(EventVersionT &&value)
Definition Record.h:55
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Record.h:65
Record & WithCreatedAt(CreatedAtT &&value)
Definition Record.h:70
const Aws::Map< Aws::String, KeyspacesCellValue > & GetClusteringKeys() const
Definition Record.h:104
const Aws::Map< Aws::String, KeyspacesCellValue > & GetPartitionKeys() const
Definition Record.h:87
AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedAt(CreatedAtT &&value)
Definition Record.h:68
Record & WithSequenceNumber(SequenceNumberT &&value)
Definition Record.h:152
void SetOldImage(OldImageT &&value)
Definition Record.h:137
Record & WithEventVersion(EventVersionT &&value)
Definition Record.h:57
const Aws::String & GetSequenceNumber() const
Definition Record.h:147
Record & WithClusteringKeys(ClusteringKeysT &&value)
Definition Record.h:109
const KeyspacesRow & GetNewImage() const
Definition Record.h:121
AWS_KEYSPACESSTREAMS_API Record(Aws::Utils::Json::JsonView jsonValue)
AWS_KEYSPACESSTREAMS_API Record()=default
void SetSequenceNumber(SequenceNumberT &&value)
Definition Record.h:150
Record & AddPartitionKeys(PartitionKeysKeyT &&key, PartitionKeysValueT &&value)
Definition Record.h:94
void SetNewImage(NewImageT &&value)
Definition Record.h:124
const Aws::String & GetEventVersion() const
Definition Record.h:52
Record & WithOrigin(OriginType value)
Definition Record.h:80
Record & AddClusteringKeys(ClusteringKeysKeyT &&key, ClusteringKeysValueT &&value)
Definition Record.h:111
AWS_KEYSPACESSTREAMS_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPartitionKeys(PartitionKeysT &&value)
Definition Record.h:90
void SetClusteringKeys(ClusteringKeysT &&value)
Definition Record.h:107
Record & WithNewImage(NewImageT &&value)
Definition Record.h:126
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