AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
StreamDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
11#include <aws/dynamodbstreams/model/KeySchemaElement.h>
12#include <aws/dynamodbstreams/model/Shard.h>
13#include <aws/dynamodbstreams/model/StreamStatus.h>
14#include <aws/dynamodbstreams/model/StreamViewType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DynamoDBStreams {
26namespace Model {
27
35 public:
36 AWS_DYNAMODBSTREAMS_API StreamDescription() = default;
37 AWS_DYNAMODBSTREAMS_API StreamDescription(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DYNAMODBSTREAMS_API StreamDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetStreamArn() const { return m_streamArn; }
46 inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
47 template <typename StreamArnT = Aws::String>
48 void SetStreamArn(StreamArnT&& value) {
49 m_streamArnHasBeenSet = true;
50 m_streamArn = std::forward<StreamArnT>(value);
51 }
52 template <typename StreamArnT = Aws::String>
53 StreamDescription& WithStreamArn(StreamArnT&& value) {
54 SetStreamArn(std::forward<StreamArnT>(value));
55 return *this;
56 }
58
60
69 inline const Aws::String& GetStreamLabel() const { return m_streamLabel; }
70 inline bool StreamLabelHasBeenSet() const { return m_streamLabelHasBeenSet; }
71 template <typename StreamLabelT = Aws::String>
72 void SetStreamLabel(StreamLabelT&& value) {
73 m_streamLabelHasBeenSet = true;
74 m_streamLabel = std::forward<StreamLabelT>(value);
75 }
76 template <typename StreamLabelT = Aws::String>
77 StreamDescription& WithStreamLabel(StreamLabelT&& value) {
78 SetStreamLabel(std::forward<StreamLabelT>(value));
79 return *this;
80 }
82
84
92 inline StreamStatus GetStreamStatus() const { return m_streamStatus; }
93 inline bool StreamStatusHasBeenSet() const { return m_streamStatusHasBeenSet; }
94 inline void SetStreamStatus(StreamStatus value) {
95 m_streamStatusHasBeenSet = true;
96 m_streamStatus = value;
97 }
99 SetStreamStatus(value);
100 return *this;
101 }
103
105
114 inline StreamViewType GetStreamViewType() const { return m_streamViewType; }
115 inline bool StreamViewTypeHasBeenSet() const { return m_streamViewTypeHasBeenSet; }
117 m_streamViewTypeHasBeenSet = true;
118 m_streamViewType = value;
119 }
121 SetStreamViewType(value);
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetCreationRequestDateTime() const { return m_creationRequestDateTime; }
131 inline bool CreationRequestDateTimeHasBeenSet() const { return m_creationRequestDateTimeHasBeenSet; }
132 template <typename CreationRequestDateTimeT = Aws::Utils::DateTime>
133 void SetCreationRequestDateTime(CreationRequestDateTimeT&& value) {
134 m_creationRequestDateTimeHasBeenSet = true;
135 m_creationRequestDateTime = std::forward<CreationRequestDateTimeT>(value);
136 }
137 template <typename CreationRequestDateTimeT = Aws::Utils::DateTime>
138 StreamDescription& WithCreationRequestDateTime(CreationRequestDateTimeT&& value) {
139 SetCreationRequestDateTime(std::forward<CreationRequestDateTimeT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetTableName() const { return m_tableName; }
149 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
150 template <typename TableNameT = Aws::String>
151 void SetTableName(TableNameT&& value) {
152 m_tableNameHasBeenSet = true;
153 m_tableName = std::forward<TableNameT>(value);
154 }
155 template <typename TableNameT = Aws::String>
156 StreamDescription& WithTableName(TableNameT&& value) {
157 SetTableName(std::forward<TableNameT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Vector<KeySchemaElement>& GetKeySchema() const { return m_keySchema; }
167 inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; }
168 template <typename KeySchemaT = Aws::Vector<KeySchemaElement>>
169 void SetKeySchema(KeySchemaT&& value) {
170 m_keySchemaHasBeenSet = true;
171 m_keySchema = std::forward<KeySchemaT>(value);
172 }
173 template <typename KeySchemaT = Aws::Vector<KeySchemaElement>>
174 StreamDescription& WithKeySchema(KeySchemaT&& value) {
175 SetKeySchema(std::forward<KeySchemaT>(value));
176 return *this;
177 }
178 template <typename KeySchemaT = KeySchemaElement>
179 StreamDescription& AddKeySchema(KeySchemaT&& value) {
180 m_keySchemaHasBeenSet = true;
181 m_keySchema.emplace_back(std::forward<KeySchemaT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::Vector<Shard>& GetShards() const { return m_shards; }
191 inline bool ShardsHasBeenSet() const { return m_shardsHasBeenSet; }
192 template <typename ShardsT = Aws::Vector<Shard>>
193 void SetShards(ShardsT&& value) {
194 m_shardsHasBeenSet = true;
195 m_shards = std::forward<ShardsT>(value);
196 }
197 template <typename ShardsT = Aws::Vector<Shard>>
198 StreamDescription& WithShards(ShardsT&& value) {
199 SetShards(std::forward<ShardsT>(value));
200 return *this;
201 }
202 template <typename ShardsT = Shard>
203 StreamDescription& AddShards(ShardsT&& value) {
204 m_shardsHasBeenSet = true;
205 m_shards.emplace_back(std::forward<ShardsT>(value));
206 return *this;
207 }
209
211
221 inline const Aws::String& GetLastEvaluatedShardId() const { return m_lastEvaluatedShardId; }
222 inline bool LastEvaluatedShardIdHasBeenSet() const { return m_lastEvaluatedShardIdHasBeenSet; }
223 template <typename LastEvaluatedShardIdT = Aws::String>
224 void SetLastEvaluatedShardId(LastEvaluatedShardIdT&& value) {
225 m_lastEvaluatedShardIdHasBeenSet = true;
226 m_lastEvaluatedShardId = std::forward<LastEvaluatedShardIdT>(value);
227 }
228 template <typename LastEvaluatedShardIdT = Aws::String>
229 StreamDescription& WithLastEvaluatedShardId(LastEvaluatedShardIdT&& value) {
230 SetLastEvaluatedShardId(std::forward<LastEvaluatedShardIdT>(value));
231 return *this;
232 }
234 private:
235 Aws::String m_streamArn;
236
237 Aws::String m_streamLabel;
238
239 StreamStatus m_streamStatus{StreamStatus::NOT_SET};
240
241 StreamViewType m_streamViewType{StreamViewType::NOT_SET};
242
243 Aws::Utils::DateTime m_creationRequestDateTime{};
244
245 Aws::String m_tableName;
246
248
249 Aws::Vector<Shard> m_shards;
250
251 Aws::String m_lastEvaluatedShardId;
252 bool m_streamArnHasBeenSet = false;
253 bool m_streamLabelHasBeenSet = false;
254 bool m_streamStatusHasBeenSet = false;
255 bool m_streamViewTypeHasBeenSet = false;
256 bool m_creationRequestDateTimeHasBeenSet = false;
257 bool m_tableNameHasBeenSet = false;
258 bool m_keySchemaHasBeenSet = false;
259 bool m_shardsHasBeenSet = false;
260 bool m_lastEvaluatedShardIdHasBeenSet = false;
261};
262
263} // namespace Model
264} // namespace DynamoDBStreams
265} // namespace Aws
StreamDescription & WithStreamArn(StreamArnT &&value)
const Aws::Utils::DateTime & GetCreationRequestDateTime() const
StreamDescription & WithCreationRequestDateTime(CreationRequestDateTimeT &&value)
void SetCreationRequestDateTime(CreationRequestDateTimeT &&value)
void SetLastEvaluatedShardId(LastEvaluatedShardIdT &&value)
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
StreamDescription & AddKeySchema(KeySchemaT &&value)
AWS_DYNAMODBSTREAMS_API StreamDescription(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< KeySchemaElement > & GetKeySchema() const
StreamDescription & WithKeySchema(KeySchemaT &&value)
StreamDescription & AddShards(ShardsT &&value)
const Aws::Vector< Shard > & GetShards() const
StreamDescription & WithLastEvaluatedShardId(LastEvaluatedShardIdT &&value)
StreamDescription & WithTableName(TableNameT &&value)
StreamDescription & WithStreamStatus(StreamStatus value)
StreamDescription & WithStreamLabel(StreamLabelT &&value)
StreamDescription & WithShards(ShardsT &&value)
StreamDescription & WithStreamViewType(StreamViewType value)
AWS_DYNAMODBSTREAMS_API StreamDescription()=default
AWS_DYNAMODBSTREAMS_API StreamDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue