AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetStreamResult.h
1
6#pragma once
7#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/keyspacesstreams/model/StreamStatus.h>
10#include <aws/keyspacesstreams/model/StreamViewType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/keyspacesstreams/model/Shard.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace KeyspacesStreams
29{
30namespace Model
31{
33 {
34 public:
35 AWS_KEYSPACESSTREAMS_API GetStreamResult() = default;
38
39
41
46 inline const Aws::String& GetStreamArn() const { return m_streamArn; }
47 template<typename StreamArnT = Aws::String>
48 void SetStreamArn(StreamArnT&& value) { m_streamArnHasBeenSet = true; m_streamArn = std::forward<StreamArnT>(value); }
49 template<typename StreamArnT = Aws::String>
50 GetStreamResult& WithStreamArn(StreamArnT&& value) { SetStreamArn(std::forward<StreamArnT>(value)); return *this;}
52
54
59 inline const Aws::String& GetStreamLabel() const { return m_streamLabel; }
60 template<typename StreamLabelT = Aws::String>
61 void SetStreamLabel(StreamLabelT&& value) { m_streamLabelHasBeenSet = true; m_streamLabel = std::forward<StreamLabelT>(value); }
62 template<typename StreamLabelT = Aws::String>
63 GetStreamResult& WithStreamLabel(StreamLabelT&& value) { SetStreamLabel(std::forward<StreamLabelT>(value)); return *this;}
65
67
72 inline StreamStatus GetStreamStatus() const { return m_streamStatus; }
73 inline void SetStreamStatus(StreamStatus value) { m_streamStatusHasBeenSet = true; m_streamStatus = value; }
74 inline GetStreamResult& WithStreamStatus(StreamStatus value) { SetStreamStatus(value); return *this;}
76
78
87 inline StreamViewType GetStreamViewType() const { return m_streamViewType; }
88 inline void SetStreamViewType(StreamViewType value) { m_streamViewTypeHasBeenSet = true; m_streamViewType = value; }
91
93
97 inline const Aws::Utils::DateTime& GetCreationRequestDateTime() const { return m_creationRequestDateTime; }
98 template<typename CreationRequestDateTimeT = Aws::Utils::DateTime>
99 void SetCreationRequestDateTime(CreationRequestDateTimeT&& value) { m_creationRequestDateTimeHasBeenSet = true; m_creationRequestDateTime = std::forward<CreationRequestDateTimeT>(value); }
100 template<typename CreationRequestDateTimeT = Aws::Utils::DateTime>
101 GetStreamResult& WithCreationRequestDateTime(CreationRequestDateTimeT&& value) { SetCreationRequestDateTime(std::forward<CreationRequestDateTimeT>(value)); return *this;}
103
105
110 inline const Aws::String& GetKeyspaceName() const { return m_keyspaceName; }
111 template<typename KeyspaceNameT = Aws::String>
112 void SetKeyspaceName(KeyspaceNameT&& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = std::forward<KeyspaceNameT>(value); }
113 template<typename KeyspaceNameT = Aws::String>
114 GetStreamResult& WithKeyspaceName(KeyspaceNameT&& value) { SetKeyspaceName(std::forward<KeyspaceNameT>(value)); return *this;}
116
118
122 inline const Aws::String& GetTableName() const { return m_tableName; }
123 template<typename TableNameT = Aws::String>
124 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
125 template<typename TableNameT = Aws::String>
126 GetStreamResult& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
128
130
135 inline const Aws::Vector<Shard>& GetShards() const { return m_shards; }
136 template<typename ShardsT = Aws::Vector<Shard>>
137 void SetShards(ShardsT&& value) { m_shardsHasBeenSet = true; m_shards = std::forward<ShardsT>(value); }
138 template<typename ShardsT = Aws::Vector<Shard>>
139 GetStreamResult& WithShards(ShardsT&& value) { SetShards(std::forward<ShardsT>(value)); return *this;}
140 template<typename ShardsT = Shard>
141 GetStreamResult& AddShards(ShardsT&& value) { m_shardsHasBeenSet = true; m_shards.emplace_back(std::forward<ShardsT>(value)); return *this; }
143
145
150 inline const Aws::String& GetNextToken() const { return m_nextToken; }
151 template<typename NextTokenT = Aws::String>
152 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
153 template<typename NextTokenT = Aws::String>
154 GetStreamResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
156
158
159 inline const Aws::String& GetRequestId() const { return m_requestId; }
160 template<typename RequestIdT = Aws::String>
161 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
162 template<typename RequestIdT = Aws::String>
163 GetStreamResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
165 private:
166
167 Aws::String m_streamArn;
168 bool m_streamArnHasBeenSet = false;
169
170 Aws::String m_streamLabel;
171 bool m_streamLabelHasBeenSet = false;
172
173 StreamStatus m_streamStatus{StreamStatus::NOT_SET};
174 bool m_streamStatusHasBeenSet = false;
175
176 StreamViewType m_streamViewType{StreamViewType::NOT_SET};
177 bool m_streamViewTypeHasBeenSet = false;
178
179 Aws::Utils::DateTime m_creationRequestDateTime{};
180 bool m_creationRequestDateTimeHasBeenSet = false;
181
182 Aws::String m_keyspaceName;
183 bool m_keyspaceNameHasBeenSet = false;
184
185 Aws::String m_tableName;
186 bool m_tableNameHasBeenSet = false;
187
188 Aws::Vector<Shard> m_shards;
189 bool m_shardsHasBeenSet = false;
190
191 Aws::String m_nextToken;
192 bool m_nextTokenHasBeenSet = false;
193
194 Aws::String m_requestId;
195 bool m_requestIdHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace KeyspacesStreams
200} // 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