AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetStreamResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
12#include <aws/keyspacesstreams/model/Shard.h>
13#include <aws/keyspacesstreams/model/StreamStatus.h>
14#include <aws/keyspacesstreams/model/StreamViewType.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace KeyspacesStreams {
28namespace Model {
30 public:
31 AWS_KEYSPACESSTREAMS_API GetStreamResult() = default;
34
36
41 inline const Aws::String& GetStreamArn() const { return m_streamArn; }
42 template <typename StreamArnT = Aws::String>
43 void SetStreamArn(StreamArnT&& value) {
44 m_streamArnHasBeenSet = true;
45 m_streamArn = std::forward<StreamArnT>(value);
46 }
47 template <typename StreamArnT = Aws::String>
48 GetStreamResult& WithStreamArn(StreamArnT&& value) {
49 SetStreamArn(std::forward<StreamArnT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetStreamLabel() const { return m_streamLabel; }
61 template <typename StreamLabelT = Aws::String>
62 void SetStreamLabel(StreamLabelT&& value) {
63 m_streamLabelHasBeenSet = true;
64 m_streamLabel = std::forward<StreamLabelT>(value);
65 }
66 template <typename StreamLabelT = Aws::String>
67 GetStreamResult& WithStreamLabel(StreamLabelT&& value) {
68 SetStreamLabel(std::forward<StreamLabelT>(value));
69 return *this;
70 }
72
74
79 inline StreamStatus GetStreamStatus() const { return m_streamStatus; }
80 inline void SetStreamStatus(StreamStatus value) {
81 m_streamStatusHasBeenSet = true;
82 m_streamStatus = value;
83 }
85 SetStreamStatus(value);
86 return *this;
87 }
89
91
100 inline StreamViewType GetStreamViewType() const { return m_streamViewType; }
102 m_streamViewTypeHasBeenSet = true;
103 m_streamViewType = value;
104 }
106 SetStreamViewType(value);
107 return *this;
108 }
110
112
116 inline const Aws::Utils::DateTime& GetCreationRequestDateTime() const { return m_creationRequestDateTime; }
117 template <typename CreationRequestDateTimeT = Aws::Utils::DateTime>
118 void SetCreationRequestDateTime(CreationRequestDateTimeT&& value) {
119 m_creationRequestDateTimeHasBeenSet = true;
120 m_creationRequestDateTime = std::forward<CreationRequestDateTimeT>(value);
121 }
122 template <typename CreationRequestDateTimeT = Aws::Utils::DateTime>
123 GetStreamResult& WithCreationRequestDateTime(CreationRequestDateTimeT&& value) {
124 SetCreationRequestDateTime(std::forward<CreationRequestDateTimeT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::String& GetKeyspaceName() const { return m_keyspaceName; }
136 template <typename KeyspaceNameT = Aws::String>
137 void SetKeyspaceName(KeyspaceNameT&& value) {
138 m_keyspaceNameHasBeenSet = true;
139 m_keyspaceName = std::forward<KeyspaceNameT>(value);
140 }
141 template <typename KeyspaceNameT = Aws::String>
142 GetStreamResult& WithKeyspaceName(KeyspaceNameT&& value) {
143 SetKeyspaceName(std::forward<KeyspaceNameT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetTableName() const { return m_tableName; }
154 template <typename TableNameT = Aws::String>
155 void SetTableName(TableNameT&& value) {
156 m_tableNameHasBeenSet = true;
157 m_tableName = std::forward<TableNameT>(value);
158 }
159 template <typename TableNameT = Aws::String>
160 GetStreamResult& WithTableName(TableNameT&& value) {
161 SetTableName(std::forward<TableNameT>(value));
162 return *this;
163 }
165
167
172 inline const Aws::Vector<Shard>& GetShards() const { return m_shards; }
173 template <typename ShardsT = Aws::Vector<Shard>>
174 void SetShards(ShardsT&& value) {
175 m_shardsHasBeenSet = true;
176 m_shards = std::forward<ShardsT>(value);
177 }
178 template <typename ShardsT = Aws::Vector<Shard>>
179 GetStreamResult& WithShards(ShardsT&& value) {
180 SetShards(std::forward<ShardsT>(value));
181 return *this;
182 }
183 template <typename ShardsT = Shard>
184 GetStreamResult& AddShards(ShardsT&& value) {
185 m_shardsHasBeenSet = true;
186 m_shards.emplace_back(std::forward<ShardsT>(value));
187 return *this;
188 }
190
192
197 inline const Aws::String& GetNextToken() const { return m_nextToken; }
198 template <typename NextTokenT = Aws::String>
199 void SetNextToken(NextTokenT&& value) {
200 m_nextTokenHasBeenSet = true;
201 m_nextToken = std::forward<NextTokenT>(value);
202 }
203 template <typename NextTokenT = Aws::String>
204 GetStreamResult& WithNextToken(NextTokenT&& value) {
205 SetNextToken(std::forward<NextTokenT>(value));
206 return *this;
207 }
209
211
212 inline const Aws::String& GetRequestId() const { return m_requestId; }
213 template <typename RequestIdT = Aws::String>
214 void SetRequestId(RequestIdT&& value) {
215 m_requestIdHasBeenSet = true;
216 m_requestId = std::forward<RequestIdT>(value);
217 }
218 template <typename RequestIdT = Aws::String>
219 GetStreamResult& WithRequestId(RequestIdT&& value) {
220 SetRequestId(std::forward<RequestIdT>(value));
221 return *this;
222 }
224 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
225
226 private:
227 Aws::String m_streamArn;
228
229 Aws::String m_streamLabel;
230
231 StreamStatus m_streamStatus{StreamStatus::NOT_SET};
232
233 StreamViewType m_streamViewType{StreamViewType::NOT_SET};
234
235 Aws::Utils::DateTime m_creationRequestDateTime{};
236
237 Aws::String m_keyspaceName;
238
239 Aws::String m_tableName;
240
241 Aws::Vector<Shard> m_shards;
242
243 Aws::String m_nextToken;
244
245 Aws::String m_requestId;
246 Aws::Http::HttpResponseCode m_HttpResponseCode;
247 bool m_streamArnHasBeenSet = false;
248 bool m_streamLabelHasBeenSet = false;
249 bool m_streamStatusHasBeenSet = false;
250 bool m_streamViewTypeHasBeenSet = false;
251 bool m_creationRequestDateTimeHasBeenSet = false;
252 bool m_keyspaceNameHasBeenSet = false;
253 bool m_tableNameHasBeenSet = false;
254 bool m_shardsHasBeenSet = false;
255 bool m_nextTokenHasBeenSet = false;
256 bool m_requestIdHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace KeyspacesStreams
261} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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