AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
StreamRecord.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/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
11#include <aws/dynamodbstreams/model/AttributeValue.h>
12#include <aws/dynamodbstreams/model/StreamViewType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DynamoDBStreams {
24namespace Model {
25
33 public:
34 AWS_DYNAMODBSTREAMS_API StreamRecord() = default;
35 AWS_DYNAMODBSTREAMS_API StreamRecord(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DYNAMODBSTREAMS_API StreamRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline const Aws::Utils::DateTime& GetApproximateCreationDateTime() const { return m_approximateCreationDateTime; }
48 inline bool ApproximateCreationDateTimeHasBeenSet() const { return m_approximateCreationDateTimeHasBeenSet; }
49 template <typename ApproximateCreationDateTimeT = Aws::Utils::DateTime>
50 void SetApproximateCreationDateTime(ApproximateCreationDateTimeT&& value) {
51 m_approximateCreationDateTimeHasBeenSet = true;
52 m_approximateCreationDateTime = std::forward<ApproximateCreationDateTimeT>(value);
53 }
54 template <typename ApproximateCreationDateTimeT = Aws::Utils::DateTime>
55 StreamRecord& WithApproximateCreationDateTime(ApproximateCreationDateTimeT&& value) {
56 SetApproximateCreationDateTime(std::forward<ApproximateCreationDateTimeT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Map<Aws::String, AttributeValue>& GetKeys() const { return m_keys; }
66 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
67 template <typename KeysT = Aws::Map<Aws::String, AttributeValue>>
68 void SetKeys(KeysT&& value) {
69 m_keysHasBeenSet = true;
70 m_keys = std::forward<KeysT>(value);
71 }
72 template <typename KeysT = Aws::Map<Aws::String, AttributeValue>>
73 StreamRecord& WithKeys(KeysT&& value) {
74 SetKeys(std::forward<KeysT>(value));
75 return *this;
76 }
77 template <typename KeysKeyT = Aws::String, typename KeysValueT = AttributeValue>
78 StreamRecord& AddKeys(KeysKeyT&& key, KeysValueT&& value) {
79 m_keysHasBeenSet = true;
80 m_keys.emplace(std::forward<KeysKeyT>(key), std::forward<KeysValueT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Map<Aws::String, AttributeValue>& GetNewImage() const { return m_newImage; }
90 inline bool NewImageHasBeenSet() const { return m_newImageHasBeenSet; }
91 template <typename NewImageT = Aws::Map<Aws::String, AttributeValue>>
92 void SetNewImage(NewImageT&& value) {
93 m_newImageHasBeenSet = true;
94 m_newImage = std::forward<NewImageT>(value);
95 }
96 template <typename NewImageT = Aws::Map<Aws::String, AttributeValue>>
97 StreamRecord& WithNewImage(NewImageT&& value) {
98 SetNewImage(std::forward<NewImageT>(value));
99 return *this;
100 }
101 template <typename NewImageKeyT = Aws::String, typename NewImageValueT = AttributeValue>
102 StreamRecord& AddNewImage(NewImageKeyT&& key, NewImageValueT&& value) {
103 m_newImageHasBeenSet = true;
104 m_newImage.emplace(std::forward<NewImageKeyT>(key), std::forward<NewImageValueT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Map<Aws::String, AttributeValue>& GetOldImage() const { return m_oldImage; }
114 inline bool OldImageHasBeenSet() const { return m_oldImageHasBeenSet; }
115 template <typename OldImageT = Aws::Map<Aws::String, AttributeValue>>
116 void SetOldImage(OldImageT&& value) {
117 m_oldImageHasBeenSet = true;
118 m_oldImage = std::forward<OldImageT>(value);
119 }
120 template <typename OldImageT = Aws::Map<Aws::String, AttributeValue>>
121 StreamRecord& WithOldImage(OldImageT&& value) {
122 SetOldImage(std::forward<OldImageT>(value));
123 return *this;
124 }
125 template <typename OldImageKeyT = Aws::String, typename OldImageValueT = AttributeValue>
126 StreamRecord& AddOldImage(OldImageKeyT&& key, OldImageValueT&& value) {
127 m_oldImageHasBeenSet = true;
128 m_oldImage.emplace(std::forward<OldImageKeyT>(key), std::forward<OldImageValueT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetSequenceNumber() const { return m_sequenceNumber; }
138 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
139 template <typename SequenceNumberT = Aws::String>
140 void SetSequenceNumber(SequenceNumberT&& value) {
141 m_sequenceNumberHasBeenSet = true;
142 m_sequenceNumber = std::forward<SequenceNumberT>(value);
143 }
144 template <typename SequenceNumberT = Aws::String>
145 StreamRecord& WithSequenceNumber(SequenceNumberT&& value) {
146 SetSequenceNumber(std::forward<SequenceNumberT>(value));
147 return *this;
148 }
150
152
155 inline long long GetSizeBytes() const { return m_sizeBytes; }
156 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
157 inline void SetSizeBytes(long long value) {
158 m_sizeBytesHasBeenSet = true;
159 m_sizeBytes = value;
160 }
161 inline StreamRecord& WithSizeBytes(long long value) {
162 SetSizeBytes(value);
163 return *this;
164 }
166
168
177 inline StreamViewType GetStreamViewType() const { return m_streamViewType; }
178 inline bool StreamViewTypeHasBeenSet() const { return m_streamViewTypeHasBeenSet; }
180 m_streamViewTypeHasBeenSet = true;
181 m_streamViewType = value;
182 }
184 SetStreamViewType(value);
185 return *this;
186 }
188 private:
189 Aws::Utils::DateTime m_approximateCreationDateTime{};
190
192
194
196
197 Aws::String m_sequenceNumber;
198
199 long long m_sizeBytes{0};
200
201 StreamViewType m_streamViewType{StreamViewType::NOT_SET};
202 bool m_approximateCreationDateTimeHasBeenSet = false;
203 bool m_keysHasBeenSet = false;
204 bool m_newImageHasBeenSet = false;
205 bool m_oldImageHasBeenSet = false;
206 bool m_sequenceNumberHasBeenSet = false;
207 bool m_sizeBytesHasBeenSet = false;
208 bool m_streamViewTypeHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace DynamoDBStreams
213} // namespace Aws
AWS_DYNAMODBSTREAMS_API StreamRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStreamViewType(StreamViewType value)
StreamRecord & WithNewImage(NewImageT &&value)
AWS_DYNAMODBSTREAMS_API StreamRecord()=default
const Aws::Map< Aws::String, AttributeValue > & GetNewImage() const
StreamRecord & AddNewImage(NewImageKeyT &&key, NewImageValueT &&value)
StreamRecord & AddKeys(KeysKeyT &&key, KeysValueT &&value)
StreamRecord & WithKeys(KeysT &&value)
void SetApproximateCreationDateTime(ApproximateCreationDateTimeT &&value)
const Aws::Map< Aws::String, AttributeValue > & GetKeys() const
StreamRecord & WithStreamViewType(StreamViewType value)
StreamRecord & WithSizeBytes(long long value)
StreamRecord & WithSequenceNumber(SequenceNumberT &&value)
const Aws::Map< Aws::String, AttributeValue > & GetOldImage() const
StreamRecord & AddOldImage(OldImageKeyT &&key, OldImageValueT &&value)
StreamRecord & WithApproximateCreationDateTime(ApproximateCreationDateTimeT &&value)
void SetSequenceNumber(SequenceNumberT &&value)
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODBSTREAMS_API StreamRecord(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSequenceNumber() const
const Aws::Utils::DateTime & GetApproximateCreationDateTime() const
StreamRecord & WithOldImage(OldImageT &&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