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>
24namespace KeyspacesStreams {
36 AWS_KEYSPACESSTREAMS_API
Record() =
default;
48 template <
typename EventVersionT = Aws::String>
50 m_eventVersionHasBeenSet =
true;
51 m_eventVersion = std::forward<EventVersionT>(value);
53 template <
typename EventVersionT = Aws::String>
67 template <
typename CreatedAtT = Aws::Utils::DateTime>
69 m_createdAtHasBeenSet =
true;
70 m_createdAt = std::forward<CreatedAtT>(value);
72 template <
typename CreatedAtT = Aws::Utils::DateTime>
86 m_originHasBeenSet =
true;
101 template <
typename PartitionKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
103 m_partitionKeysHasBeenSet =
true;
104 m_partitionKeys = std::forward<PartitionKeysT>(value);
106 template <
typename PartitionKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
111 template <
typename PartitionKeysKeyT = Aws::String,
typename PartitionKeysValueT = KeyspacesCellValue>
113 m_partitionKeysHasBeenSet =
true;
114 m_partitionKeys.emplace(std::forward<PartitionKeysKeyT>(key), std::forward<PartitionKeysValueT>(value));
126 template <
typename ClusteringKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
128 m_clusteringKeysHasBeenSet =
true;
129 m_clusteringKeys = std::forward<ClusteringKeysT>(value);
131 template <
typename ClusteringKeysT = Aws::Map<Aws::String, KeyspacesCellValue>>
136 template <
typename ClusteringKeysKeyT = Aws::String,
typename ClusteringKeysValueT = KeyspacesCellValue>
138 m_clusteringKeysHasBeenSet =
true;
139 m_clusteringKeys.emplace(std::forward<ClusteringKeysKeyT>(key), std::forward<ClusteringKeysValueT>(value));
151 template <
typename NewImageT = KeyspacesRow>
153 m_newImageHasBeenSet =
true;
154 m_newImage = std::forward<NewImageT>(value);
156 template <
typename NewImageT = KeyspacesRow>
170 template <
typename OldImageT = KeyspacesRow>
172 m_oldImageHasBeenSet =
true;
173 m_oldImage = std::forward<OldImageT>(value);
175 template <
typename OldImageT = KeyspacesRow>
189 template <
typename SequenceNumberT = Aws::String>
191 m_sequenceNumberHasBeenSet =
true;
192 m_sequenceNumber = std::forward<SequenceNumberT>(value);
194 template <
typename SequenceNumberT = Aws::String>
211 KeyspacesRow m_newImage;
213 KeyspacesRow m_oldImage;
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;
void SetOrigin(OriginType value)
Record & WithPartitionKeys(PartitionKeysT &&value)
const KeyspacesRow & GetOldImage() const
OriginType GetOrigin() const
Record & WithOldImage(OldImageT &&value)
void SetEventVersion(EventVersionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
Record & WithCreatedAt(CreatedAtT &&value)
const Aws::Map< Aws::String, KeyspacesCellValue > & GetClusteringKeys() const
bool NewImageHasBeenSet() const
const Aws::Map< Aws::String, KeyspacesCellValue > & GetPartitionKeys() const
bool SequenceNumberHasBeenSet() const
AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
bool OriginHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
Record & WithSequenceNumber(SequenceNumberT &&value)
bool EventVersionHasBeenSet() const
void SetOldImage(OldImageT &&value)
Record & WithEventVersion(EventVersionT &&value)
const Aws::String & GetSequenceNumber() const
Record & WithClusteringKeys(ClusteringKeysT &&value)
const KeyspacesRow & GetNewImage() const
bool ClusteringKeysHasBeenSet() const
AWS_KEYSPACESSTREAMS_API Record(Aws::Utils::Json::JsonView jsonValue)
AWS_KEYSPACESSTREAMS_API Record()=default
bool OldImageHasBeenSet() const
void SetSequenceNumber(SequenceNumberT &&value)
Record & AddPartitionKeys(PartitionKeysKeyT &&key, PartitionKeysValueT &&value)
bool PartitionKeysHasBeenSet() const
void SetNewImage(NewImageT &&value)
const Aws::String & GetEventVersion() const
Record & WithOrigin(OriginType value)
Record & AddClusteringKeys(ClusteringKeysKeyT &&key, ClusteringKeysValueT &&value)
AWS_KEYSPACESSTREAMS_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPartitionKeys(PartitionKeysT &&value)
void SetClusteringKeys(ClusteringKeysT &&value)
bool CreatedAtHasBeenSet() const
Record & WithNewImage(NewImageT &&value)
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