AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename EventIDT = Aws::String>
52 void SetEventID(EventIDT&& value) { m_eventIDHasBeenSet = true; m_eventID = std::forward<EventIDT>(value); }
53 template<typename EventIDT = Aws::String>
54 Record& WithEventID(EventIDT&& value) { SetEventID(std::forward<EventIDT>(value)); return *this;}
56
58
65 inline OperationType GetEventName() const { return m_eventName; }
66 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
67 inline void SetEventName(OperationType value) { m_eventNameHasBeenSet = true; m_eventName = value; }
68 inline Record& WithEventName(OperationType value) { SetEventName(value); return *this;}
70
72
80 inline const Aws::String& GetEventVersion() const { return m_eventVersion; }
81 inline bool EventVersionHasBeenSet() const { return m_eventVersionHasBeenSet; }
82 template<typename EventVersionT = Aws::String>
83 void SetEventVersion(EventVersionT&& value) { m_eventVersionHasBeenSet = true; m_eventVersion = std::forward<EventVersionT>(value); }
84 template<typename EventVersionT = Aws::String>
85 Record& WithEventVersion(EventVersionT&& value) { SetEventVersion(std::forward<EventVersionT>(value)); return *this;}
87
89
93 inline const Aws::String& GetEventSource() const { return m_eventSource; }
94 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
95 template<typename EventSourceT = Aws::String>
96 void SetEventSource(EventSourceT&& value) { m_eventSourceHasBeenSet = true; m_eventSource = std::forward<EventSourceT>(value); }
97 template<typename EventSourceT = Aws::String>
98 Record& WithEventSource(EventSourceT&& value) { SetEventSource(std::forward<EventSourceT>(value)); return *this;}
100
102
105 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
106 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
107 template<typename AwsRegionT = Aws::String>
108 void SetAwsRegion(AwsRegionT&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::forward<AwsRegionT>(value); }
109 template<typename AwsRegionT = Aws::String>
110 Record& WithAwsRegion(AwsRegionT&& value) { SetAwsRegion(std::forward<AwsRegionT>(value)); return *this;}
112
114
118 inline const StreamRecord& GetDynamodb() const { return m_dynamodb; }
119 inline bool DynamodbHasBeenSet() const { return m_dynamodbHasBeenSet; }
120 template<typename DynamodbT = StreamRecord>
121 void SetDynamodb(DynamodbT&& value) { m_dynamodbHasBeenSet = true; m_dynamodb = std::forward<DynamodbT>(value); }
122 template<typename DynamodbT = StreamRecord>
123 Record& WithDynamodb(DynamodbT&& value) { SetDynamodb(std::forward<DynamodbT>(value)); return *this;}
125
127
133 inline const Identity& GetUserIdentity() const { return m_userIdentity; }
134 inline bool UserIdentityHasBeenSet() const { return m_userIdentityHasBeenSet; }
135 template<typename UserIdentityT = Identity>
136 void SetUserIdentity(UserIdentityT&& value) { m_userIdentityHasBeenSet = true; m_userIdentity = std::forward<UserIdentityT>(value); }
137 template<typename UserIdentityT = Identity>
138 Record& WithUserIdentity(UserIdentityT&& value) { SetUserIdentity(std::forward<UserIdentityT>(value)); return *this;}
140 private:
141
142 Aws::String m_eventID;
143 bool m_eventIDHasBeenSet = false;
144
146 bool m_eventNameHasBeenSet = false;
147
148 Aws::String m_eventVersion;
149 bool m_eventVersionHasBeenSet = false;
150
151 Aws::String m_eventSource;
152 bool m_eventSourceHasBeenSet = false;
153
154 Aws::String m_awsRegion;
155 bool m_awsRegionHasBeenSet = false;
156
157 StreamRecord m_dynamodb;
158 bool m_dynamodbHasBeenSet = false;
159
160 Identity m_userIdentity;
161 bool m_userIdentityHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace DynamoDBStreams
166} // namespace Aws
void SetEventID(EventIDT &&value)
Definition Record.h:52
AWS_DYNAMODBSTREAMS_API Record()=default
Record & WithDynamodb(DynamodbT &&value)
Definition Record.h:123
void SetEventName(OperationType value)
Definition Record.h:67
const Aws::String & GetAwsRegion() const
Definition Record.h:105
Record & WithEventName(OperationType value)
Definition Record.h:68
const Aws::String & GetEventSource() const
Definition Record.h:93
OperationType GetEventName() const
Definition Record.h:65
const Identity & GetUserIdentity() const
Definition Record.h:133
void SetUserIdentity(UserIdentityT &&value)
Definition Record.h:136
void SetEventVersion(EventVersionT &&value)
Definition Record.h:83
Record & WithAwsRegion(AwsRegionT &&value)
Definition Record.h:110
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDynamodb(DynamodbT &&value)
Definition Record.h:121
const Aws::String & GetEventVersion() const
Definition Record.h:80
const Aws::String & GetEventID() const
Definition Record.h:49
Record & WithEventVersion(EventVersionT &&value)
Definition Record.h:85
const StreamRecord & GetDynamodb() const
Definition Record.h:118
Record & WithEventSource(EventSourceT &&value)
Definition Record.h:98
AWS_DYNAMODBSTREAMS_API Record(Aws::Utils::Json::JsonView jsonValue)
Record & WithEventID(EventIDT &&value)
Definition Record.h:54
Record & WithUserIdentity(UserIdentityT &&value)
Definition Record.h:138
AWS_DYNAMODBSTREAMS_API Record & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAwsRegion(AwsRegionT &&value)
Definition Record.h:108
void SetEventSource(EventSourceT &&value)
Definition Record.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue