AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetStreamResult.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/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
11#include <aws/keyspacesstreams/model/Shard.h>
12#include <aws/keyspacesstreams/model/StreamStatus.h>
13#include <aws/keyspacesstreams/model/StreamViewType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace KeyspacesStreams {
27namespace Model {
29 public:
30 AWS_KEYSPACESSTREAMS_API GetStreamResult() = default;
33
35
40 inline const Aws::String& GetStreamArn() const { return m_streamArn; }
41 template <typename StreamArnT = Aws::String>
42 void SetStreamArn(StreamArnT&& value) {
43 m_streamArnHasBeenSet = true;
44 m_streamArn = std::forward<StreamArnT>(value);
45 }
46 template <typename StreamArnT = Aws::String>
47 GetStreamResult& WithStreamArn(StreamArnT&& value) {
48 SetStreamArn(std::forward<StreamArnT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetStreamLabel() const { return m_streamLabel; }
60 template <typename StreamLabelT = Aws::String>
61 void SetStreamLabel(StreamLabelT&& value) {
62 m_streamLabelHasBeenSet = true;
63 m_streamLabel = std::forward<StreamLabelT>(value);
64 }
65 template <typename StreamLabelT = Aws::String>
66 GetStreamResult& WithStreamLabel(StreamLabelT&& value) {
67 SetStreamLabel(std::forward<StreamLabelT>(value));
68 return *this;
69 }
71
73
78 inline StreamStatus GetStreamStatus() const { return m_streamStatus; }
79 inline void SetStreamStatus(StreamStatus value) {
80 m_streamStatusHasBeenSet = true;
81 m_streamStatus = value;
82 }
84 SetStreamStatus(value);
85 return *this;
86 }
88
90
99 inline StreamViewType GetStreamViewType() const { return m_streamViewType; }
101 m_streamViewTypeHasBeenSet = true;
102 m_streamViewType = value;
103 }
105 SetStreamViewType(value);
106 return *this;
107 }
109
111
115 inline const Aws::Utils::DateTime& GetCreationRequestDateTime() const { return m_creationRequestDateTime; }
116 template <typename CreationRequestDateTimeT = Aws::Utils::DateTime>
117 void SetCreationRequestDateTime(CreationRequestDateTimeT&& value) {
118 m_creationRequestDateTimeHasBeenSet = true;
119 m_creationRequestDateTime = std::forward<CreationRequestDateTimeT>(value);
120 }
121 template <typename CreationRequestDateTimeT = Aws::Utils::DateTime>
122 GetStreamResult& WithCreationRequestDateTime(CreationRequestDateTimeT&& value) {
123 SetCreationRequestDateTime(std::forward<CreationRequestDateTimeT>(value));
124 return *this;
125 }
127
129
134 inline const Aws::String& GetKeyspaceName() const { return m_keyspaceName; }
135 template <typename KeyspaceNameT = Aws::String>
136 void SetKeyspaceName(KeyspaceNameT&& value) {
137 m_keyspaceNameHasBeenSet = true;
138 m_keyspaceName = std::forward<KeyspaceNameT>(value);
139 }
140 template <typename KeyspaceNameT = Aws::String>
141 GetStreamResult& WithKeyspaceName(KeyspaceNameT&& value) {
142 SetKeyspaceName(std::forward<KeyspaceNameT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetTableName() const { return m_tableName; }
153 template <typename TableNameT = Aws::String>
154 void SetTableName(TableNameT&& value) {
155 m_tableNameHasBeenSet = true;
156 m_tableName = std::forward<TableNameT>(value);
157 }
158 template <typename TableNameT = Aws::String>
159 GetStreamResult& WithTableName(TableNameT&& value) {
160 SetTableName(std::forward<TableNameT>(value));
161 return *this;
162 }
164
166
171 inline const Aws::Vector<Shard>& GetShards() const { return m_shards; }
172 template <typename ShardsT = Aws::Vector<Shard>>
173 void SetShards(ShardsT&& value) {
174 m_shardsHasBeenSet = true;
175 m_shards = std::forward<ShardsT>(value);
176 }
177 template <typename ShardsT = Aws::Vector<Shard>>
178 GetStreamResult& WithShards(ShardsT&& value) {
179 SetShards(std::forward<ShardsT>(value));
180 return *this;
181 }
182 template <typename ShardsT = Shard>
183 GetStreamResult& AddShards(ShardsT&& value) {
184 m_shardsHasBeenSet = true;
185 m_shards.emplace_back(std::forward<ShardsT>(value));
186 return *this;
187 }
189
191
196 inline const Aws::String& GetNextToken() const { return m_nextToken; }
197 template <typename NextTokenT = Aws::String>
198 void SetNextToken(NextTokenT&& value) {
199 m_nextTokenHasBeenSet = true;
200 m_nextToken = std::forward<NextTokenT>(value);
201 }
202 template <typename NextTokenT = Aws::String>
203 GetStreamResult& WithNextToken(NextTokenT&& value) {
204 SetNextToken(std::forward<NextTokenT>(value));
205 return *this;
206 }
208
210
211 inline const Aws::String& GetRequestId() const { return m_requestId; }
212 template <typename RequestIdT = Aws::String>
213 void SetRequestId(RequestIdT&& value) {
214 m_requestIdHasBeenSet = true;
215 m_requestId = std::forward<RequestIdT>(value);
216 }
217 template <typename RequestIdT = Aws::String>
218 GetStreamResult& WithRequestId(RequestIdT&& value) {
219 SetRequestId(std::forward<RequestIdT>(value));
220 return *this;
221 }
223 private:
224 Aws::String m_streamArn;
225
226 Aws::String m_streamLabel;
227
228 StreamStatus m_streamStatus{StreamStatus::NOT_SET};
229
230 StreamViewType m_streamViewType{StreamViewType::NOT_SET};
231
232 Aws::Utils::DateTime m_creationRequestDateTime{};
233
234 Aws::String m_keyspaceName;
235
236 Aws::String m_tableName;
237
238 Aws::Vector<Shard> m_shards;
239
240 Aws::String m_nextToken;
241
242 Aws::String m_requestId;
243 bool m_streamArnHasBeenSet = false;
244 bool m_streamLabelHasBeenSet = false;
245 bool m_streamStatusHasBeenSet = false;
246 bool m_streamViewTypeHasBeenSet = false;
247 bool m_creationRequestDateTimeHasBeenSet = false;
248 bool m_keyspaceNameHasBeenSet = false;
249 bool m_tableNameHasBeenSet = false;
250 bool m_shardsHasBeenSet = false;
251 bool m_nextTokenHasBeenSet = false;
252 bool m_requestIdHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace KeyspacesStreams
257} // namespace Aws
GetStreamResult & WithShards(ShardsT &&value)
GetStreamResult & WithStreamStatus(StreamStatus value)
GetStreamResult & WithRequestId(RequestIdT &&value)
AWS_KEYSPACESSTREAMS_API GetStreamResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetStreamResult & WithNextToken(NextTokenT &&value)
GetStreamResult & WithCreationRequestDateTime(CreationRequestDateTimeT &&value)
GetStreamResult & WithStreamLabel(StreamLabelT &&value)
void SetCreationRequestDateTime(CreationRequestDateTimeT &&value)
GetStreamResult & WithKeyspaceName(KeyspaceNameT &&value)
GetStreamResult & WithTableName(TableNameT &&value)
AWS_KEYSPACESSTREAMS_API GetStreamResult()=default
GetStreamResult & WithStreamViewType(StreamViewType value)
AWS_KEYSPACESSTREAMS_API GetStreamResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetStreamResult & AddShards(ShardsT &&value)
GetStreamResult & WithStreamArn(StreamArnT &&value)
const Aws::Vector< Shard > & GetShards() const
const Aws::Utils::DateTime & GetCreationRequestDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue