AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Record.h
1
6#pragma once
7#include <aws/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodbstreams/model/OperationType.h>
10#include <aws/dynamodbstreams/model/StreamRecord.h>
11#include <aws/dynamodbstreams/model/Identity.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DynamoDBStreams
25{
26namespace Model
27{
28
35 class Record
36 {
37 public:
38 AWS_DYNAMODBSTREAMS_API Record();
39 AWS_DYNAMODBSTREAMS_API Record(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DYNAMODBSTREAMS_API Record& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetEventID() const{ return m_eventID; }
50 inline bool EventIDHasBeenSet() const { return m_eventIDHasBeenSet; }
51 inline void SetEventID(const Aws::String& value) { m_eventIDHasBeenSet = true; m_eventID = value; }
52 inline void SetEventID(Aws::String&& value) { m_eventIDHasBeenSet = true; m_eventID = std::move(value); }
53 inline void SetEventID(const char* value) { m_eventIDHasBeenSet = true; m_eventID.assign(value); }
54 inline Record& WithEventID(const Aws::String& value) { SetEventID(value); return *this;}
55 inline Record& WithEventID(Aws::String&& value) { SetEventID(std::move(value)); return *this;}
56 inline Record& WithEventID(const char* value) { SetEventID(value); return *this;}
58
60
67 inline const OperationType& GetEventName() const{ return m_eventName; }
68 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
69 inline void SetEventName(const OperationType& value) { m_eventNameHasBeenSet = true; m_eventName = value; }
70 inline void SetEventName(OperationType&& value) { m_eventNameHasBeenSet = true; m_eventName = std::move(value); }
71 inline Record& WithEventName(const OperationType& value) { SetEventName(value); return *this;}
72 inline Record& WithEventName(OperationType&& value) { SetEventName(std::move(value)); return *this;}
74
76
84 inline const Aws::String& GetEventVersion() const{ return m_eventVersion; }
85 inline bool EventVersionHasBeenSet() const { return m_eventVersionHasBeenSet; }
86 inline void SetEventVersion(const Aws::String& value) { m_eventVersionHasBeenSet = true; m_eventVersion = value; }
87 inline void SetEventVersion(Aws::String&& value) { m_eventVersionHasBeenSet = true; m_eventVersion = std::move(value); }
88 inline void SetEventVersion(const char* value) { m_eventVersionHasBeenSet = true; m_eventVersion.assign(value); }
89 inline Record& WithEventVersion(const Aws::String& value) { SetEventVersion(value); return *this;}
90 inline Record& WithEventVersion(Aws::String&& value) { SetEventVersion(std::move(value)); return *this;}
91 inline Record& WithEventVersion(const char* value) { SetEventVersion(value); return *this;}
93
95
99 inline const Aws::String& GetEventSource() const{ return m_eventSource; }
100 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
101 inline void SetEventSource(const Aws::String& value) { m_eventSourceHasBeenSet = true; m_eventSource = value; }
102 inline void SetEventSource(Aws::String&& value) { m_eventSourceHasBeenSet = true; m_eventSource = std::move(value); }
103 inline void SetEventSource(const char* value) { m_eventSourceHasBeenSet = true; m_eventSource.assign(value); }
104 inline Record& WithEventSource(const Aws::String& value) { SetEventSource(value); return *this;}
105 inline Record& WithEventSource(Aws::String&& value) { SetEventSource(std::move(value)); return *this;}
106 inline Record& WithEventSource(const char* value) { SetEventSource(value); return *this;}
108
110
113 inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
114 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
115 inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
116 inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
117 inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
118 inline Record& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
119 inline Record& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
120 inline Record& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
122
124
128 inline const StreamRecord& GetDynamodb() const{ return m_dynamodb; }
129 inline bool DynamodbHasBeenSet() const { return m_dynamodbHasBeenSet; }
130 inline void SetDynamodb(const StreamRecord& value) { m_dynamodbHasBeenSet = true; m_dynamodb = value; }
131 inline void SetDynamodb(StreamRecord&& value) { m_dynamodbHasBeenSet = true; m_dynamodb = std::move(value); }
132 inline Record& WithDynamodb(const StreamRecord& value) { SetDynamodb(value); return *this;}
133 inline Record& WithDynamodb(StreamRecord&& value) { SetDynamodb(std::move(value)); return *this;}
135
137
143 inline const Identity& GetUserIdentity() const{ return m_userIdentity; }
144 inline bool UserIdentityHasBeenSet() const { return m_userIdentityHasBeenSet; }
145 inline void SetUserIdentity(const Identity& value) { m_userIdentityHasBeenSet = true; m_userIdentity = value; }
146 inline void SetUserIdentity(Identity&& value) { m_userIdentityHasBeenSet = true; m_userIdentity = std::move(value); }
147 inline Record& WithUserIdentity(const Identity& value) { SetUserIdentity(value); return *this;}
148 inline Record& WithUserIdentity(Identity&& value) { SetUserIdentity(std::move(value)); return *this;}
150 private:
151
152 Aws::String m_eventID;
153 bool m_eventIDHasBeenSet = false;
154
155 OperationType m_eventName;
156 bool m_eventNameHasBeenSet = false;
157
158 Aws::String m_eventVersion;
159 bool m_eventVersionHasBeenSet = false;
160
161 Aws::String m_eventSource;
162 bool m_eventSourceHasBeenSet = false;
163
164 Aws::String m_awsRegion;
165 bool m_awsRegionHasBeenSet = false;
166
167 StreamRecord m_dynamodb;
168 bool m_dynamodbHasBeenSet = false;
169
170 Identity m_userIdentity;
171 bool m_userIdentityHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace DynamoDBStreams
176} // namespace Aws
void SetAwsRegion(const Aws::String &value)
Definition Record.h:115
void SetEventVersion(Aws::String &&value)
Definition Record.h:87
Record & WithEventVersion(const char *value)
Definition Record.h:91
void SetEventSource(const char *value)
Definition Record.h:103
Record & WithAwsRegion(Aws::String &&value)
Definition Record.h:119
void SetEventID(const char *value)
Definition Record.h:53
Record & WithEventVersion(Aws::String &&value)
Definition Record.h:90
const OperationType & GetEventName() const
Definition Record.h:67
void SetEventSource(const Aws::String &value)
Definition Record.h:101
void SetEventVersion(const Aws::String &value)
Definition Record.h:86
void SetDynamodb(StreamRecord &&value)
Definition Record.h:131
void SetUserIdentity(const Identity &value)
Definition Record.h:145
Record & WithEventName(OperationType &&value)
Definition Record.h:72
Record & WithEventSource(const Aws::String &value)
Definition Record.h:104
const Aws::String & GetAwsRegion() const
Definition Record.h:113
Record & WithEventID(Aws::String &&value)
Definition Record.h:55
void SetEventSource(Aws::String &&value)
Definition Record.h:102
const Aws::String & GetEventSource() const
Definition Record.h:99
void SetEventID(Aws::String &&value)
Definition Record.h:52
Record & WithUserIdentity(const Identity &value)
Definition Record.h:147
Record & WithDynamodb(const StreamRecord &value)
Definition Record.h:132
const Identity & GetUserIdentity() const
Definition Record.h:143
Record & WithAwsRegion(const Aws::String &value)
Definition Record.h:118
AWS_DYNAMODBSTREAMS_API Record()
void SetAwsRegion(Aws::String &&value)
Definition Record.h:116
Record & WithEventName(const OperationType &value)
Definition Record.h:71
Record & WithEventSource(const char *value)
Definition Record.h:106
Record & WithEventID(const Aws::String &value)
Definition Record.h:54
Record & WithEventSource(Aws::String &&value)
Definition Record.h:105
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDynamodb(const StreamRecord &value)
Definition Record.h:130
const Aws::String & GetEventVersion() const
Definition Record.h:84
const Aws::String & GetEventID() const
Definition Record.h:49
void SetEventName(const OperationType &value)
Definition Record.h:69
Record & WithEventVersion(const Aws::String &value)
Definition Record.h:89
const StreamRecord & GetDynamodb() const
Definition Record.h:128
AWS_DYNAMODBSTREAMS_API Record(Aws::Utils::Json::JsonView jsonValue)
Record & WithUserIdentity(Identity &&value)
Definition Record.h:148
void SetEventVersion(const char *value)
Definition Record.h:88
void SetUserIdentity(Identity &&value)
Definition Record.h:146
AWS_DYNAMODBSTREAMS_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
Record & WithAwsRegion(const char *value)
Definition Record.h:120
Record & WithDynamodb(StreamRecord &&value)
Definition Record.h:133
void SetAwsRegion(const char *value)
Definition Record.h:117
void SetEventName(OperationType &&value)
Definition Record.h:70
Record & WithEventID(const char *value)
Definition Record.h:56
void SetEventID(const Aws::String &value)
Definition Record.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue