AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StreamDescription.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/StreamStatus.h>
10#include <aws/dynamodbstreams/model/StreamViewType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/dynamodbstreams/model/KeySchemaElement.h>
14#include <aws/dynamodbstreams/model/Shard.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DynamoDBStreams
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_DYNAMODBSTREAMS_API StreamDescription();
42 AWS_DYNAMODBSTREAMS_API StreamDescription(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DYNAMODBSTREAMS_API StreamDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetStreamArn() const{ return m_streamArn; }
52 inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
53 inline void SetStreamArn(const Aws::String& value) { m_streamArnHasBeenSet = true; m_streamArn = value; }
54 inline void SetStreamArn(Aws::String&& value) { m_streamArnHasBeenSet = true; m_streamArn = std::move(value); }
55 inline void SetStreamArn(const char* value) { m_streamArnHasBeenSet = true; m_streamArn.assign(value); }
56 inline StreamDescription& WithStreamArn(const Aws::String& value) { SetStreamArn(value); return *this;}
57 inline StreamDescription& WithStreamArn(Aws::String&& value) { SetStreamArn(std::move(value)); return *this;}
58 inline StreamDescription& WithStreamArn(const char* value) { SetStreamArn(value); return *this;}
60
62
71 inline const Aws::String& GetStreamLabel() const{ return m_streamLabel; }
72 inline bool StreamLabelHasBeenSet() const { return m_streamLabelHasBeenSet; }
73 inline void SetStreamLabel(const Aws::String& value) { m_streamLabelHasBeenSet = true; m_streamLabel = value; }
74 inline void SetStreamLabel(Aws::String&& value) { m_streamLabelHasBeenSet = true; m_streamLabel = std::move(value); }
75 inline void SetStreamLabel(const char* value) { m_streamLabelHasBeenSet = true; m_streamLabel.assign(value); }
76 inline StreamDescription& WithStreamLabel(const Aws::String& value) { SetStreamLabel(value); return *this;}
77 inline StreamDescription& WithStreamLabel(Aws::String&& value) { SetStreamLabel(std::move(value)); return *this;}
78 inline StreamDescription& WithStreamLabel(const char* value) { SetStreamLabel(value); return *this;}
80
82
90 inline const StreamStatus& GetStreamStatus() const{ return m_streamStatus; }
91 inline bool StreamStatusHasBeenSet() const { return m_streamStatusHasBeenSet; }
92 inline void SetStreamStatus(const StreamStatus& value) { m_streamStatusHasBeenSet = true; m_streamStatus = value; }
93 inline void SetStreamStatus(StreamStatus&& value) { m_streamStatusHasBeenSet = true; m_streamStatus = std::move(value); }
94 inline StreamDescription& WithStreamStatus(const StreamStatus& value) { SetStreamStatus(value); return *this;}
95 inline StreamDescription& WithStreamStatus(StreamStatus&& value) { SetStreamStatus(std::move(value)); return *this;}
97
99
108 inline const StreamViewType& GetStreamViewType() const{ return m_streamViewType; }
109 inline bool StreamViewTypeHasBeenSet() const { return m_streamViewTypeHasBeenSet; }
110 inline void SetStreamViewType(const StreamViewType& value) { m_streamViewTypeHasBeenSet = true; m_streamViewType = value; }
111 inline void SetStreamViewType(StreamViewType&& value) { m_streamViewTypeHasBeenSet = true; m_streamViewType = std::move(value); }
112 inline StreamDescription& WithStreamViewType(const StreamViewType& value) { SetStreamViewType(value); return *this;}
113 inline StreamDescription& WithStreamViewType(StreamViewType&& value) { SetStreamViewType(std::move(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetCreationRequestDateTime() const{ return m_creationRequestDateTime; }
121 inline bool CreationRequestDateTimeHasBeenSet() const { return m_creationRequestDateTimeHasBeenSet; }
122 inline void SetCreationRequestDateTime(const Aws::Utils::DateTime& value) { m_creationRequestDateTimeHasBeenSet = true; m_creationRequestDateTime = value; }
123 inline void SetCreationRequestDateTime(Aws::Utils::DateTime&& value) { m_creationRequestDateTimeHasBeenSet = true; m_creationRequestDateTime = std::move(value); }
127
129
132 inline const Aws::String& GetTableName() const{ return m_tableName; }
133 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
134 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
135 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
136 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
137 inline StreamDescription& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
138 inline StreamDescription& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
139 inline StreamDescription& WithTableName(const char* value) { SetTableName(value); return *this;}
141
143
146 inline const Aws::Vector<KeySchemaElement>& GetKeySchema() const{ return m_keySchema; }
147 inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; }
148 inline void SetKeySchema(const Aws::Vector<KeySchemaElement>& value) { m_keySchemaHasBeenSet = true; m_keySchema = value; }
149 inline void SetKeySchema(Aws::Vector<KeySchemaElement>&& value) { m_keySchemaHasBeenSet = true; m_keySchema = std::move(value); }
150 inline StreamDescription& WithKeySchema(const Aws::Vector<KeySchemaElement>& value) { SetKeySchema(value); return *this;}
151 inline StreamDescription& WithKeySchema(Aws::Vector<KeySchemaElement>&& value) { SetKeySchema(std::move(value)); return *this;}
152 inline StreamDescription& AddKeySchema(const KeySchemaElement& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(value); return *this; }
153 inline StreamDescription& AddKeySchema(KeySchemaElement&& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(std::move(value)); return *this; }
155
157
160 inline const Aws::Vector<Shard>& GetShards() const{ return m_shards; }
161 inline bool ShardsHasBeenSet() const { return m_shardsHasBeenSet; }
162 inline void SetShards(const Aws::Vector<Shard>& value) { m_shardsHasBeenSet = true; m_shards = value; }
163 inline void SetShards(Aws::Vector<Shard>&& value) { m_shardsHasBeenSet = true; m_shards = std::move(value); }
164 inline StreamDescription& WithShards(const Aws::Vector<Shard>& value) { SetShards(value); return *this;}
165 inline StreamDescription& WithShards(Aws::Vector<Shard>&& value) { SetShards(std::move(value)); return *this;}
166 inline StreamDescription& AddShards(const Shard& value) { m_shardsHasBeenSet = true; m_shards.push_back(value); return *this; }
167 inline StreamDescription& AddShards(Shard&& value) { m_shardsHasBeenSet = true; m_shards.push_back(std::move(value)); return *this; }
169
171
181 inline const Aws::String& GetLastEvaluatedShardId() const{ return m_lastEvaluatedShardId; }
182 inline bool LastEvaluatedShardIdHasBeenSet() const { return m_lastEvaluatedShardIdHasBeenSet; }
183 inline void SetLastEvaluatedShardId(const Aws::String& value) { m_lastEvaluatedShardIdHasBeenSet = true; m_lastEvaluatedShardId = value; }
184 inline void SetLastEvaluatedShardId(Aws::String&& value) { m_lastEvaluatedShardIdHasBeenSet = true; m_lastEvaluatedShardId = std::move(value); }
185 inline void SetLastEvaluatedShardId(const char* value) { m_lastEvaluatedShardIdHasBeenSet = true; m_lastEvaluatedShardId.assign(value); }
187 inline StreamDescription& WithLastEvaluatedShardId(Aws::String&& value) { SetLastEvaluatedShardId(std::move(value)); return *this;}
188 inline StreamDescription& WithLastEvaluatedShardId(const char* value) { SetLastEvaluatedShardId(value); return *this;}
190 private:
191
192 Aws::String m_streamArn;
193 bool m_streamArnHasBeenSet = false;
194
195 Aws::String m_streamLabel;
196 bool m_streamLabelHasBeenSet = false;
197
198 StreamStatus m_streamStatus;
199 bool m_streamStatusHasBeenSet = false;
200
201 StreamViewType m_streamViewType;
202 bool m_streamViewTypeHasBeenSet = false;
203
204 Aws::Utils::DateTime m_creationRequestDateTime;
205 bool m_creationRequestDateTimeHasBeenSet = false;
206
207 Aws::String m_tableName;
208 bool m_tableNameHasBeenSet = false;
209
211 bool m_keySchemaHasBeenSet = false;
212
213 Aws::Vector<Shard> m_shards;
214 bool m_shardsHasBeenSet = false;
215
216 Aws::String m_lastEvaluatedShardId;
217 bool m_lastEvaluatedShardIdHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace DynamoDBStreams
222} // namespace Aws
StreamDescription & WithKeySchema(const Aws::Vector< KeySchemaElement > &value)
StreamDescription & WithStreamArn(Aws::String &&value)
const StreamViewType & GetStreamViewType() const
const Aws::Utils::DateTime & GetCreationRequestDateTime() const
void SetStreamLabel(const Aws::String &value)
StreamDescription & WithKeySchema(Aws::Vector< KeySchemaElement > &&value)
StreamDescription & WithStreamLabel(Aws::String &&value)
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
StreamDescription & AddKeySchema(KeySchemaElement &&value)
StreamDescription & WithShards(const Aws::Vector< Shard > &value)
void SetStreamStatus(const StreamStatus &value)
StreamDescription & WithStreamStatus(StreamStatus &&value)
void SetCreationRequestDateTime(Aws::Utils::DateTime &&value)
StreamDescription & WithLastEvaluatedShardId(Aws::String &&value)
void SetShards(Aws::Vector< Shard > &&value)
StreamDescription & WithStreamViewType(const StreamViewType &value)
AWS_DYNAMODBSTREAMS_API StreamDescription(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< KeySchemaElement > & GetKeySchema() const
const Aws::Vector< Shard > & GetShards() const
StreamDescription & WithStreamLabel(const char *value)
StreamDescription & WithStreamStatus(const StreamStatus &value)
StreamDescription & AddShards(Shard &&value)
StreamDescription & WithLastEvaluatedShardId(const Aws::String &value)
void SetLastEvaluatedShardId(const Aws::String &value)
void SetCreationRequestDateTime(const Aws::Utils::DateTime &value)
StreamDescription & WithStreamLabel(const Aws::String &value)
StreamDescription & WithCreationRequestDateTime(const Aws::Utils::DateTime &value)
StreamDescription & WithTableName(const Aws::String &value)
StreamDescription & WithTableName(const char *value)
StreamDescription & AddShards(const Shard &value)
StreamDescription & WithLastEvaluatedShardId(const char *value)
void SetShards(const Aws::Vector< Shard > &value)
StreamDescription & AddKeySchema(const KeySchemaElement &value)
StreamDescription & WithCreationRequestDateTime(Aws::Utils::DateTime &&value)
StreamDescription & WithShards(Aws::Vector< Shard > &&value)
void SetStreamViewType(const StreamViewType &value)
StreamDescription & WithStreamViewType(StreamViewType &&value)
void SetKeySchema(Aws::Vector< KeySchemaElement > &&value)
AWS_DYNAMODBSTREAMS_API StreamDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamDescription & WithStreamArn(const char *value)
StreamDescription & WithTableName(Aws::String &&value)
void SetKeySchema(const Aws::Vector< KeySchemaElement > &value)
StreamDescription & WithStreamArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue