AWS SDK for C++

AWS SDK for C++ Version 1.11.945

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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dsql/DSQL_EXPORTS.h>
12#include <aws/dsql/model/StatusReason.h>
13#include <aws/dsql/model/StreamFormat.h>
14#include <aws/dsql/model/StreamOrdering.h>
15#include <aws/dsql/model/StreamStatus.h>
16#include <aws/dsql/model/TargetDefinition.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace DSQL {
30namespace Model {
37 public:
38 AWS_DSQL_API GetStreamResult() = default;
41
43
46 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
47 template <typename ClusterIdentifierT = Aws::String>
48 void SetClusterIdentifier(ClusterIdentifierT&& value) {
49 m_clusterIdentifierHasBeenSet = true;
50 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
51 }
52 template <typename ClusterIdentifierT = Aws::String>
53 GetStreamResult& WithClusterIdentifier(ClusterIdentifierT&& value) {
54 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetStreamIdentifier() const { return m_streamIdentifier; }
64 template <typename StreamIdentifierT = Aws::String>
65 void SetStreamIdentifier(StreamIdentifierT&& value) {
66 m_streamIdentifierHasBeenSet = true;
67 m_streamIdentifier = std::forward<StreamIdentifierT>(value);
68 }
69 template <typename StreamIdentifierT = Aws::String>
70 GetStreamResult& WithStreamIdentifier(StreamIdentifierT&& value) {
71 SetStreamIdentifier(std::forward<StreamIdentifierT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetArn() const { return m_arn; }
81 template <typename ArnT = Aws::String>
82 void SetArn(ArnT&& value) {
83 m_arnHasBeenSet = true;
84 m_arn = std::forward<ArnT>(value);
85 }
86 template <typename ArnT = Aws::String>
87 GetStreamResult& WithArn(ArnT&& value) {
88 SetArn(std::forward<ArnT>(value));
89 return *this;
90 }
92
94
97 inline StreamStatus GetStatus() const { return m_status; }
98 inline void SetStatus(StreamStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
113 template <typename CreationTimeT = Aws::Utils::DateTime>
114 void SetCreationTime(CreationTimeT&& value) {
115 m_creationTimeHasBeenSet = true;
116 m_creationTime = std::forward<CreationTimeT>(value);
117 }
118 template <typename CreationTimeT = Aws::Utils::DateTime>
119 GetStreamResult& WithCreationTime(CreationTimeT&& value) {
120 SetCreationTime(std::forward<CreationTimeT>(value));
121 return *this;
122 }
124
126
129 inline StreamOrdering GetOrdering() const { return m_ordering; }
130 inline void SetOrdering(StreamOrdering value) {
131 m_orderingHasBeenSet = true;
132 m_ordering = value;
133 }
135 SetOrdering(value);
136 return *this;
137 }
139
141
144 inline StreamFormat GetFormat() const { return m_format; }
145 inline void SetFormat(StreamFormat value) {
146 m_formatHasBeenSet = true;
147 m_format = value;
148 }
150 SetFormat(value);
151 return *this;
152 }
154
156
159 inline const TargetDefinition& GetTargetDefinition() const { return m_targetDefinition; }
160 template <typename TargetDefinitionT = TargetDefinition>
161 void SetTargetDefinition(TargetDefinitionT&& value) {
162 m_targetDefinitionHasBeenSet = true;
163 m_targetDefinition = std::forward<TargetDefinitionT>(value);
164 }
165 template <typename TargetDefinitionT = TargetDefinition>
166 GetStreamResult& WithTargetDefinition(TargetDefinitionT&& value) {
167 SetTargetDefinition(std::forward<TargetDefinitionT>(value));
168 return *this;
169 }
171
173
176 inline const StatusReason& GetStatusReason() const { return m_statusReason; }
177 template <typename StatusReasonT = StatusReason>
178 void SetStatusReason(StatusReasonT&& value) {
179 m_statusReasonHasBeenSet = true;
180 m_statusReason = std::forward<StatusReasonT>(value);
181 }
182 template <typename StatusReasonT = StatusReason>
183 GetStreamResult& WithStatusReason(StatusReasonT&& value) {
184 SetStatusReason(std::forward<StatusReasonT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
194 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
195 void SetTags(TagsT&& value) {
196 m_tagsHasBeenSet = true;
197 m_tags = std::forward<TagsT>(value);
198 }
199 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
200 GetStreamResult& WithTags(TagsT&& value) {
201 SetTags(std::forward<TagsT>(value));
202 return *this;
203 }
204 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
205 GetStreamResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
208 return *this;
209 }
211
213
214 inline const Aws::String& GetRequestId() const { return m_requestId; }
215 template <typename RequestIdT = Aws::String>
216 void SetRequestId(RequestIdT&& value) {
217 m_requestIdHasBeenSet = true;
218 m_requestId = std::forward<RequestIdT>(value);
219 }
220 template <typename RequestIdT = Aws::String>
221 GetStreamResult& WithRequestId(RequestIdT&& value) {
222 SetRequestId(std::forward<RequestIdT>(value));
223 return *this;
224 }
226 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
227
228 private:
229 Aws::String m_clusterIdentifier;
230
231 Aws::String m_streamIdentifier;
232
233 Aws::String m_arn;
234
236
237 Aws::Utils::DateTime m_creationTime{};
238
240
242
243 TargetDefinition m_targetDefinition;
244
245 StatusReason m_statusReason;
246
248
249 Aws::String m_requestId;
250 Aws::Http::HttpResponseCode m_HttpResponseCode;
251 bool m_clusterIdentifierHasBeenSet = false;
252 bool m_streamIdentifierHasBeenSet = false;
253 bool m_arnHasBeenSet = false;
254 bool m_statusHasBeenSet = false;
255 bool m_creationTimeHasBeenSet = false;
256 bool m_orderingHasBeenSet = false;
257 bool m_formatHasBeenSet = false;
258 bool m_targetDefinitionHasBeenSet = false;
259 bool m_statusReasonHasBeenSet = false;
260 bool m_tagsHasBeenSet = false;
261 bool m_requestIdHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace DSQL
266} // namespace Aws
void SetStatus(StreamStatus value)
AWS_DSQL_API GetStreamResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetStreamResult & WithRequestId(RequestIdT &&value)
void SetStatusReason(StatusReasonT &&value)
void SetStreamIdentifier(StreamIdentifierT &&value)
void SetRequestId(RequestIdT &&value)
GetStreamResult & WithTags(TagsT &&value)
void SetFormat(StreamFormat value)
GetStreamResult & WithStreamIdentifier(StreamIdentifierT &&value)
GetStreamResult & WithFormat(StreamFormat value)
const Aws::String & GetStreamIdentifier() const
GetStreamResult & WithArn(ArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const TargetDefinition & GetTargetDefinition() const
AWS_DSQL_API GetStreamResult()=default
GetStreamResult & WithOrdering(StreamOrdering value)
AWS_DSQL_API GetStreamResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetStreamResult & WithClusterIdentifier(ClusterIdentifierT &&value)
GetStreamResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetTargetDefinition(TargetDefinitionT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
GetStreamResult & WithStatusReason(StatusReasonT &&value)
const Aws::String & GetRequestId() const
void SetClusterIdentifier(ClusterIdentifierT &&value)
GetStreamResult & WithTargetDefinition(TargetDefinitionT &&value)
const StatusReason & GetStatusReason() const
const Aws::String & GetArn() const
void SetCreationTime(CreationTimeT &&value)
GetStreamResult & WithCreationTime(CreationTimeT &&value)
void SetOrdering(StreamOrdering value)
const Aws::String & GetClusterIdentifier() const
GetStreamResult & WithStatus(StreamStatus value)
StreamOrdering GetOrdering() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue