AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
9#include <aws/dynamodbstreams/model/Identity.h>
10#include <aws/dynamodbstreams/model/OperationType.h>
11#include <aws/dynamodbstreams/model/StreamRecord.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDBStreams {
23namespace Model {
24
31class Record {
32 public:
33 AWS_DYNAMODBSTREAMS_API Record() = default;
34 AWS_DYNAMODBSTREAMS_API Record(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DYNAMODBSTREAMS_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetEventID() const { return m_eventID; }
44 inline bool EventIDHasBeenSet() const { return m_eventIDHasBeenSet; }
45 template <typename EventIDT = Aws::String>
46 void SetEventID(EventIDT&& value) {
47 m_eventIDHasBeenSet = true;
48 m_eventID = std::forward<EventIDT>(value);
49 }
50 template <typename EventIDT = Aws::String>
51 Record& WithEventID(EventIDT&& value) {
52 SetEventID(std::forward<EventIDT>(value));
53 return *this;
54 }
56
58
65 inline OperationType GetEventName() const { return m_eventName; }
66 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
67 inline void SetEventName(OperationType value) {
68 m_eventNameHasBeenSet = true;
69 m_eventName = value;
70 }
72 SetEventName(value);
73 return *this;
74 }
76
78
86 inline const Aws::String& GetEventVersion() const { return m_eventVersion; }
87 inline bool EventVersionHasBeenSet() const { return m_eventVersionHasBeenSet; }
88 template <typename EventVersionT = Aws::String>
89 void SetEventVersion(EventVersionT&& value) {
90 m_eventVersionHasBeenSet = true;
91 m_eventVersion = std::forward<EventVersionT>(value);
92 }
93 template <typename EventVersionT = Aws::String>
94 Record& WithEventVersion(EventVersionT&& value) {
95 SetEventVersion(std::forward<EventVersionT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetEventSource() const { return m_eventSource; }
106 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
107 template <typename EventSourceT = Aws::String>
108 void SetEventSource(EventSourceT&& value) {
109 m_eventSourceHasBeenSet = true;
110 m_eventSource = std::forward<EventSourceT>(value);
111 }
112 template <typename EventSourceT = Aws::String>
113 Record& WithEventSource(EventSourceT&& value) {
114 SetEventSource(std::forward<EventSourceT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
124 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
125 template <typename AwsRegionT = Aws::String>
126 void SetAwsRegion(AwsRegionT&& value) {
127 m_awsRegionHasBeenSet = true;
128 m_awsRegion = std::forward<AwsRegionT>(value);
129 }
130 template <typename AwsRegionT = Aws::String>
131 Record& WithAwsRegion(AwsRegionT&& value) {
132 SetAwsRegion(std::forward<AwsRegionT>(value));
133 return *this;
134 }
136
138
142 inline const StreamRecord& GetDynamodb() const { return m_dynamodb; }
143 inline bool DynamodbHasBeenSet() const { return m_dynamodbHasBeenSet; }
144 template <typename DynamodbT = StreamRecord>
145 void SetDynamodb(DynamodbT&& value) {
146 m_dynamodbHasBeenSet = true;
147 m_dynamodb = std::forward<DynamodbT>(value);
148 }
149 template <typename DynamodbT = StreamRecord>
150 Record& WithDynamodb(DynamodbT&& value) {
151 SetDynamodb(std::forward<DynamodbT>(value));
152 return *this;
153 }
155
157
163 inline const Identity& GetUserIdentity() const { return m_userIdentity; }
164 inline bool UserIdentityHasBeenSet() const { return m_userIdentityHasBeenSet; }
165 template <typename UserIdentityT = Identity>
166 void SetUserIdentity(UserIdentityT&& value) {
167 m_userIdentityHasBeenSet = true;
168 m_userIdentity = std::forward<UserIdentityT>(value);
169 }
170 template <typename UserIdentityT = Identity>
171 Record& WithUserIdentity(UserIdentityT&& value) {
172 SetUserIdentity(std::forward<UserIdentityT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_eventID;
178
180
181 Aws::String m_eventVersion;
182
183 Aws::String m_eventSource;
184
185 Aws::String m_awsRegion;
186
187 StreamRecord m_dynamodb;
188
189 Identity m_userIdentity;
190 bool m_eventIDHasBeenSet = false;
191 bool m_eventNameHasBeenSet = false;
192 bool m_eventVersionHasBeenSet = false;
193 bool m_eventSourceHasBeenSet = false;
194 bool m_awsRegionHasBeenSet = false;
195 bool m_dynamodbHasBeenSet = false;
196 bool m_userIdentityHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace DynamoDBStreams
201} // namespace Aws
void SetEventID(EventIDT &&value)
Definition Record.h:46
AWS_DYNAMODBSTREAMS_API Record()=default
Record & WithDynamodb(DynamodbT &&value)
Definition Record.h:150
void SetEventName(OperationType value)
Definition Record.h:67
const Aws::String & GetAwsRegion() const
Definition Record.h:123
Record & WithEventName(OperationType value)
Definition Record.h:71
const Aws::String & GetEventSource() const
Definition Record.h:105
OperationType GetEventName() const
Definition Record.h:65
const Identity & GetUserIdentity() const
Definition Record.h:163
void SetUserIdentity(UserIdentityT &&value)
Definition Record.h:166
void SetEventVersion(EventVersionT &&value)
Definition Record.h:89
Record & WithAwsRegion(AwsRegionT &&value)
Definition Record.h:131
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDynamodb(DynamodbT &&value)
Definition Record.h:145
const Aws::String & GetEventVersion() const
Definition Record.h:86
const Aws::String & GetEventID() const
Definition Record.h:43
Record & WithEventVersion(EventVersionT &&value)
Definition Record.h:94
const StreamRecord & GetDynamodb() const
Definition Record.h:142
Record & WithEventSource(EventSourceT &&value)
Definition Record.h:113
AWS_DYNAMODBSTREAMS_API Record(Aws::Utils::Json::JsonView jsonValue)
Record & WithEventID(EventIDT &&value)
Definition Record.h:51
Record & WithUserIdentity(UserIdentityT &&value)
Definition Record.h:171
AWS_DYNAMODBSTREAMS_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAwsRegion(AwsRegionT &&value)
Definition Record.h:126
void SetEventSource(EventSourceT &&value)
Definition Record.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue