AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StreamRecord.h
1
6#pragma once
7#include <aws/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dynamodbstreams/model/StreamViewType.h>
12#include <aws/dynamodbstreams/model/AttributeValue.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DynamoDBStreams
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DYNAMODBSTREAMS_API StreamRecord();
40 AWS_DYNAMODBSTREAMS_API StreamRecord(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DYNAMODBSTREAMS_API StreamRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::Utils::DateTime& GetApproximateCreationDateTime() const{ return m_approximateCreationDateTime; }
52 inline bool ApproximateCreationDateTimeHasBeenSet() const { return m_approximateCreationDateTimeHasBeenSet; }
53 inline void SetApproximateCreationDateTime(const Aws::Utils::DateTime& value) { m_approximateCreationDateTimeHasBeenSet = true; m_approximateCreationDateTime = value; }
54 inline void SetApproximateCreationDateTime(Aws::Utils::DateTime&& value) { m_approximateCreationDateTimeHasBeenSet = true; m_approximateCreationDateTime = std::move(value); }
58
60
63 inline const Aws::Map<Aws::String, AttributeValue>& GetKeys() const{ return m_keys; }
64 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
65 inline void SetKeys(const Aws::Map<Aws::String, AttributeValue>& value) { m_keysHasBeenSet = true; m_keys = value; }
66 inline void SetKeys(Aws::Map<Aws::String, AttributeValue>&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); }
67 inline StreamRecord& WithKeys(const Aws::Map<Aws::String, AttributeValue>& value) { SetKeys(value); return *this;}
68 inline StreamRecord& WithKeys(Aws::Map<Aws::String, AttributeValue>&& value) { SetKeys(std::move(value)); return *this;}
69 inline StreamRecord& AddKeys(const Aws::String& key, const AttributeValue& value) { m_keysHasBeenSet = true; m_keys.emplace(key, value); return *this; }
70 inline StreamRecord& AddKeys(Aws::String&& key, const AttributeValue& value) { m_keysHasBeenSet = true; m_keys.emplace(std::move(key), value); return *this; }
71 inline StreamRecord& AddKeys(const Aws::String& key, AttributeValue&& value) { m_keysHasBeenSet = true; m_keys.emplace(key, std::move(value)); return *this; }
72 inline StreamRecord& AddKeys(Aws::String&& key, AttributeValue&& value) { m_keysHasBeenSet = true; m_keys.emplace(std::move(key), std::move(value)); return *this; }
73 inline StreamRecord& AddKeys(const char* key, AttributeValue&& value) { m_keysHasBeenSet = true; m_keys.emplace(key, std::move(value)); return *this; }
74 inline StreamRecord& AddKeys(const char* key, const AttributeValue& value) { m_keysHasBeenSet = true; m_keys.emplace(key, value); return *this; }
76
78
81 inline const Aws::Map<Aws::String, AttributeValue>& GetNewImage() const{ return m_newImage; }
82 inline bool NewImageHasBeenSet() const { return m_newImageHasBeenSet; }
83 inline void SetNewImage(const Aws::Map<Aws::String, AttributeValue>& value) { m_newImageHasBeenSet = true; m_newImage = value; }
84 inline void SetNewImage(Aws::Map<Aws::String, AttributeValue>&& value) { m_newImageHasBeenSet = true; m_newImage = std::move(value); }
85 inline StreamRecord& WithNewImage(const Aws::Map<Aws::String, AttributeValue>& value) { SetNewImage(value); return *this;}
86 inline StreamRecord& WithNewImage(Aws::Map<Aws::String, AttributeValue>&& value) { SetNewImage(std::move(value)); return *this;}
87 inline StreamRecord& AddNewImage(const Aws::String& key, const AttributeValue& value) { m_newImageHasBeenSet = true; m_newImage.emplace(key, value); return *this; }
88 inline StreamRecord& AddNewImage(Aws::String&& key, const AttributeValue& value) { m_newImageHasBeenSet = true; m_newImage.emplace(std::move(key), value); return *this; }
89 inline StreamRecord& AddNewImage(const Aws::String& key, AttributeValue&& value) { m_newImageHasBeenSet = true; m_newImage.emplace(key, std::move(value)); return *this; }
90 inline StreamRecord& AddNewImage(Aws::String&& key, AttributeValue&& value) { m_newImageHasBeenSet = true; m_newImage.emplace(std::move(key), std::move(value)); return *this; }
91 inline StreamRecord& AddNewImage(const char* key, AttributeValue&& value) { m_newImageHasBeenSet = true; m_newImage.emplace(key, std::move(value)); return *this; }
92 inline StreamRecord& AddNewImage(const char* key, const AttributeValue& value) { m_newImageHasBeenSet = true; m_newImage.emplace(key, value); return *this; }
94
96
99 inline const Aws::Map<Aws::String, AttributeValue>& GetOldImage() const{ return m_oldImage; }
100 inline bool OldImageHasBeenSet() const { return m_oldImageHasBeenSet; }
101 inline void SetOldImage(const Aws::Map<Aws::String, AttributeValue>& value) { m_oldImageHasBeenSet = true; m_oldImage = value; }
102 inline void SetOldImage(Aws::Map<Aws::String, AttributeValue>&& value) { m_oldImageHasBeenSet = true; m_oldImage = std::move(value); }
103 inline StreamRecord& WithOldImage(const Aws::Map<Aws::String, AttributeValue>& value) { SetOldImage(value); return *this;}
104 inline StreamRecord& WithOldImage(Aws::Map<Aws::String, AttributeValue>&& value) { SetOldImage(std::move(value)); return *this;}
105 inline StreamRecord& AddOldImage(const Aws::String& key, const AttributeValue& value) { m_oldImageHasBeenSet = true; m_oldImage.emplace(key, value); return *this; }
106 inline StreamRecord& AddOldImage(Aws::String&& key, const AttributeValue& value) { m_oldImageHasBeenSet = true; m_oldImage.emplace(std::move(key), value); return *this; }
107 inline StreamRecord& AddOldImage(const Aws::String& key, AttributeValue&& value) { m_oldImageHasBeenSet = true; m_oldImage.emplace(key, std::move(value)); return *this; }
108 inline StreamRecord& AddOldImage(Aws::String&& key, AttributeValue&& value) { m_oldImageHasBeenSet = true; m_oldImage.emplace(std::move(key), std::move(value)); return *this; }
109 inline StreamRecord& AddOldImage(const char* key, AttributeValue&& value) { m_oldImageHasBeenSet = true; m_oldImage.emplace(key, std::move(value)); return *this; }
110 inline StreamRecord& AddOldImage(const char* key, const AttributeValue& value) { m_oldImageHasBeenSet = true; m_oldImage.emplace(key, value); return *this; }
112
114
117 inline const Aws::String& GetSequenceNumber() const{ return m_sequenceNumber; }
118 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
119 inline void SetSequenceNumber(const Aws::String& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = value; }
120 inline void SetSequenceNumber(Aws::String&& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = std::move(value); }
121 inline void SetSequenceNumber(const char* value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber.assign(value); }
122 inline StreamRecord& WithSequenceNumber(const Aws::String& value) { SetSequenceNumber(value); return *this;}
123 inline StreamRecord& WithSequenceNumber(Aws::String&& value) { SetSequenceNumber(std::move(value)); return *this;}
124 inline StreamRecord& WithSequenceNumber(const char* value) { SetSequenceNumber(value); return *this;}
126
128
131 inline long long GetSizeBytes() const{ return m_sizeBytes; }
132 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
133 inline void SetSizeBytes(long long value) { m_sizeBytesHasBeenSet = true; m_sizeBytes = value; }
134 inline StreamRecord& WithSizeBytes(long long value) { SetSizeBytes(value); return *this;}
136
138
147 inline const StreamViewType& GetStreamViewType() const{ return m_streamViewType; }
148 inline bool StreamViewTypeHasBeenSet() const { return m_streamViewTypeHasBeenSet; }
149 inline void SetStreamViewType(const StreamViewType& value) { m_streamViewTypeHasBeenSet = true; m_streamViewType = value; }
150 inline void SetStreamViewType(StreamViewType&& value) { m_streamViewTypeHasBeenSet = true; m_streamViewType = std::move(value); }
151 inline StreamRecord& WithStreamViewType(const StreamViewType& value) { SetStreamViewType(value); return *this;}
152 inline StreamRecord& WithStreamViewType(StreamViewType&& value) { SetStreamViewType(std::move(value)); return *this;}
154 private:
155
156 Aws::Utils::DateTime m_approximateCreationDateTime;
157 bool m_approximateCreationDateTimeHasBeenSet = false;
158
160 bool m_keysHasBeenSet = false;
161
163 bool m_newImageHasBeenSet = false;
164
166 bool m_oldImageHasBeenSet = false;
167
168 Aws::String m_sequenceNumber;
169 bool m_sequenceNumberHasBeenSet = false;
170
171 long long m_sizeBytes;
172 bool m_sizeBytesHasBeenSet = false;
173
174 StreamViewType m_streamViewType;
175 bool m_streamViewTypeHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace DynamoDBStreams
180} // namespace Aws
StreamRecord & AddKeys(Aws::String &&key, const AttributeValue &value)
void SetNewImage(Aws::Map< Aws::String, AttributeValue > &&value)
StreamRecord & AddOldImage(const char *key, const AttributeValue &value)
StreamRecord & AddOldImage(const char *key, AttributeValue &&value)
StreamRecord & WithSequenceNumber(const Aws::String &value)
AWS_DYNAMODBSTREAMS_API StreamRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStreamViewType(const StreamViewType &value)
void SetSequenceNumber(const char *value)
StreamRecord & AddNewImage(Aws::String &&key, AttributeValue &&value)
StreamRecord & AddOldImage(Aws::String &&key, AttributeValue &&value)
StreamRecord & WithOldImage(const Aws::Map< Aws::String, AttributeValue > &value)
void SetStreamViewType(StreamViewType &&value)
StreamRecord & WithKeys(Aws::Map< Aws::String, AttributeValue > &&value)
StreamRecord & AddOldImage(const Aws::String &key, const AttributeValue &value)
StreamRecord & AddKeys(const char *key, AttributeValue &&value)
void SetApproximateCreationDateTime(const Aws::Utils::DateTime &value)
StreamRecord & AddNewImage(const Aws::String &key, AttributeValue &&value)
void SetSequenceNumber(const Aws::String &value)
void SetOldImage(const Aws::Map< Aws::String, AttributeValue > &value)
void SetOldImage(Aws::Map< Aws::String, AttributeValue > &&value)
StreamRecord & WithStreamViewType(StreamViewType &&value)
StreamRecord & AddNewImage(const char *key, AttributeValue &&value)
StreamRecord & WithApproximateCreationDateTime(const Aws::Utils::DateTime &value)
StreamRecord & WithApproximateCreationDateTime(Aws::Utils::DateTime &&value)
StreamRecord & AddKeys(const Aws::String &key, const AttributeValue &value)
StreamRecord & WithStreamViewType(const StreamViewType &value)
void SetNewImage(const Aws::Map< Aws::String, AttributeValue > &value)
const Aws::Map< Aws::String, AttributeValue > & GetNewImage() const
StreamRecord & WithNewImage(const Aws::Map< Aws::String, AttributeValue > &value)
StreamRecord & AddNewImage(const Aws::String &key, const AttributeValue &value)
const StreamViewType & GetStreamViewType() const
StreamRecord & AddNewImage(const char *key, const AttributeValue &value)
void SetKeys(const Aws::Map< Aws::String, AttributeValue > &value)
AWS_DYNAMODBSTREAMS_API StreamRecord()
const Aws::Map< Aws::String, AttributeValue > & GetKeys() const
void SetKeys(Aws::Map< Aws::String, AttributeValue > &&value)
StreamRecord & AddKeys(Aws::String &&key, AttributeValue &&value)
StreamRecord & WithSequenceNumber(Aws::String &&value)
StreamRecord & WithSizeBytes(long long value)
const Aws::Map< Aws::String, AttributeValue > & GetOldImage() const
void SetSequenceNumber(Aws::String &&value)
StreamRecord & AddNewImage(Aws::String &&key, const AttributeValue &value)
StreamRecord & AddKeys(const Aws::String &key, AttributeValue &&value)
void SetApproximateCreationDateTime(Aws::Utils::DateTime &&value)
StreamRecord & AddOldImage(const Aws::String &key, AttributeValue &&value)
StreamRecord & WithNewImage(Aws::Map< Aws::String, AttributeValue > &&value)
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
StreamRecord & WithSequenceNumber(const char *value)
AWS_DYNAMODBSTREAMS_API StreamRecord(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSequenceNumber() const
StreamRecord & AddOldImage(Aws::String &&key, const AttributeValue &value)
StreamRecord & WithKeys(const Aws::Map< Aws::String, AttributeValue > &value)
const Aws::Utils::DateTime & GetApproximateCreationDateTime() const
StreamRecord & WithOldImage(Aws::Map< Aws::String, AttributeValue > &&value)
StreamRecord & AddKeys(const char *key, const AttributeValue &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