AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
DescribeChannelResult.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/kafka/Kafka_EXPORTS.h>
13#include <aws/kafka/model/ChannelDestinationType.h>
14#include <aws/kafka/model/ChannelLoggingInfo.h>
15#include <aws/kafka/model/ChannelStateInfo.h>
16#include <aws/kafka/model/ChannelStatus.h>
17#include <aws/kafka/model/EncryptionConfiguration.h>
18#include <aws/kafka/model/IcebergDestinationConfiguration.h>
19#include <aws/kafka/model/S3DestinationConfiguration.h>
20#include <aws/kafka/model/TopicConfiguration.h>
21
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils {
29namespace Json {
30class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace Kafka {
34namespace Model {
42 public:
43 AWS_KAFKA_API DescribeChannelResult() = default;
46
48
54 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
55 template <typename ChannelArnT = Aws::String>
56 void SetChannelArn(ChannelArnT&& value) {
57 m_channelArnHasBeenSet = true;
58 m_channelArn = std::forward<ChannelArnT>(value);
59 }
60 template <typename ChannelArnT = Aws::String>
61 DescribeChannelResult& WithChannelArn(ChannelArnT&& value) {
62 SetChannelArn(std::forward<ChannelArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetChannelName() const { return m_channelName; }
72 template <typename ChannelNameT = Aws::String>
73 void SetChannelName(ChannelNameT&& value) {
74 m_channelNameHasBeenSet = true;
75 m_channelName = std::forward<ChannelNameT>(value);
76 }
77 template <typename ChannelNameT = Aws::String>
78 DescribeChannelResult& WithChannelName(ChannelNameT&& value) {
79 SetChannelName(std::forward<ChannelNameT>(value));
80 return *this;
81 }
83
85
88 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
89 template <typename EncryptionConfigurationT = EncryptionConfiguration>
90 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
91 m_encryptionConfigurationHasBeenSet = true;
92 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
93 }
94 template <typename EncryptionConfigurationT = EncryptionConfiguration>
95 DescribeChannelResult& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
96 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
97 return *this;
98 }
100
102
105 inline const IcebergDestinationConfiguration& GetIcebergDestinationConfiguration() const { return m_icebergDestinationConfiguration; }
106 template <typename IcebergDestinationConfigurationT = IcebergDestinationConfiguration>
107 void SetIcebergDestinationConfiguration(IcebergDestinationConfigurationT&& value) {
108 m_icebergDestinationConfigurationHasBeenSet = true;
109 m_icebergDestinationConfiguration = std::forward<IcebergDestinationConfigurationT>(value);
110 }
111 template <typename IcebergDestinationConfigurationT = IcebergDestinationConfiguration>
112 DescribeChannelResult& WithIcebergDestinationConfiguration(IcebergDestinationConfigurationT&& value) {
113 SetIcebergDestinationConfiguration(std::forward<IcebergDestinationConfigurationT>(value));
114 return *this;
115 }
117
119
122 inline const S3DestinationConfiguration& GetS3DestinationConfiguration() const { return m_s3DestinationConfiguration; }
123 template <typename S3DestinationConfigurationT = S3DestinationConfiguration>
124 void SetS3DestinationConfiguration(S3DestinationConfigurationT&& value) {
125 m_s3DestinationConfigurationHasBeenSet = true;
126 m_s3DestinationConfiguration = std::forward<S3DestinationConfigurationT>(value);
127 }
128 template <typename S3DestinationConfigurationT = S3DestinationConfiguration>
129 DescribeChannelResult& WithS3DestinationConfiguration(S3DestinationConfigurationT&& value) {
130 SetS3DestinationConfiguration(std::forward<S3DestinationConfigurationT>(value));
131 return *this;
132 }
134
136
139 inline ChannelStatus GetStatus() const { return m_status; }
140 inline void SetStatus(ChannelStatus value) {
141 m_statusHasBeenSet = true;
142 m_status = value;
143 }
145 SetStatus(value);
146 return *this;
147 }
149
151
154 inline ChannelDestinationType GetDestinationType() const { return m_destinationType; }
156 m_destinationTypeHasBeenSet = true;
157 m_destinationType = value;
158 }
160 SetDestinationType(value);
161 return *this;
162 }
164
166
171 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
172 template <typename CreationTimeT = Aws::Utils::DateTime>
173 void SetCreationTime(CreationTimeT&& value) {
174 m_creationTimeHasBeenSet = true;
175 m_creationTime = std::forward<CreationTimeT>(value);
176 }
177 template <typename CreationTimeT = Aws::Utils::DateTime>
178 DescribeChannelResult& WithCreationTime(CreationTimeT&& value) {
179 SetCreationTime(std::forward<CreationTimeT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Vector<TopicConfiguration>& GetTopicConfigurationList() const { return m_topicConfigurationList; }
189 template <typename TopicConfigurationListT = Aws::Vector<TopicConfiguration>>
190 void SetTopicConfigurationList(TopicConfigurationListT&& value) {
191 m_topicConfigurationListHasBeenSet = true;
192 m_topicConfigurationList = std::forward<TopicConfigurationListT>(value);
193 }
194 template <typename TopicConfigurationListT = Aws::Vector<TopicConfiguration>>
195 DescribeChannelResult& WithTopicConfigurationList(TopicConfigurationListT&& value) {
196 SetTopicConfigurationList(std::forward<TopicConfigurationListT>(value));
197 return *this;
198 }
199 template <typename TopicConfigurationListT = TopicConfiguration>
200 DescribeChannelResult& AddTopicConfigurationList(TopicConfigurationListT&& value) {
201 m_topicConfigurationListHasBeenSet = true;
202 m_topicConfigurationList.emplace_back(std::forward<TopicConfigurationListT>(value));
203 return *this;
204 }
206
208
211 inline const ChannelLoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
212 template <typename LoggingInfoT = ChannelLoggingInfo>
213 void SetLoggingInfo(LoggingInfoT&& value) {
214 m_loggingInfoHasBeenSet = true;
215 m_loggingInfo = std::forward<LoggingInfoT>(value);
216 }
217 template <typename LoggingInfoT = ChannelLoggingInfo>
218 DescribeChannelResult& WithLoggingInfo(LoggingInfoT&& value) {
219 SetLoggingInfo(std::forward<LoggingInfoT>(value));
220 return *this;
221 }
223
225
229 inline const ChannelStateInfo& GetStateInfo() const { return m_stateInfo; }
230 template <typename StateInfoT = ChannelStateInfo>
231 void SetStateInfo(StateInfoT&& value) {
232 m_stateInfoHasBeenSet = true;
233 m_stateInfo = std::forward<StateInfoT>(value);
234 }
235 template <typename StateInfoT = ChannelStateInfo>
237 SetStateInfo(std::forward<StateInfoT>(value));
238 return *this;
239 }
241
243
247 inline const Aws::String& GetClusterOperationArn() const { return m_clusterOperationArn; }
248 template <typename ClusterOperationArnT = Aws::String>
249 void SetClusterOperationArn(ClusterOperationArnT&& value) {
250 m_clusterOperationArnHasBeenSet = true;
251 m_clusterOperationArn = std::forward<ClusterOperationArnT>(value);
252 }
253 template <typename ClusterOperationArnT = Aws::String>
254 DescribeChannelResult& WithClusterOperationArn(ClusterOperationArnT&& value) {
255 SetClusterOperationArn(std::forward<ClusterOperationArnT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
265 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
266 void SetTags(TagsT&& value) {
267 m_tagsHasBeenSet = true;
268 m_tags = std::forward<TagsT>(value);
269 }
270 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
272 SetTags(std::forward<TagsT>(value));
273 return *this;
274 }
275 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
276 DescribeChannelResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
277 m_tagsHasBeenSet = true;
278 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
279 return *this;
280 }
282
284
285 inline const Aws::String& GetRequestId() const { return m_requestId; }
286 template <typename RequestIdT = Aws::String>
287 void SetRequestId(RequestIdT&& value) {
288 m_requestIdHasBeenSet = true;
289 m_requestId = std::forward<RequestIdT>(value);
290 }
291 template <typename RequestIdT = Aws::String>
293 SetRequestId(std::forward<RequestIdT>(value));
294 return *this;
295 }
297 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
298
299 private:
300 Aws::String m_channelArn;
301
302 Aws::String m_channelName;
303
304 EncryptionConfiguration m_encryptionConfiguration;
305
306 IcebergDestinationConfiguration m_icebergDestinationConfiguration;
307
308 S3DestinationConfiguration m_s3DestinationConfiguration;
309
311
313
314 Aws::Utils::DateTime m_creationTime{};
315
316 Aws::Vector<TopicConfiguration> m_topicConfigurationList;
317
318 ChannelLoggingInfo m_loggingInfo;
319
320 ChannelStateInfo m_stateInfo;
321
322 Aws::String m_clusterOperationArn;
323
325
326 Aws::String m_requestId;
327 Aws::Http::HttpResponseCode m_HttpResponseCode;
328 bool m_channelArnHasBeenSet = false;
329 bool m_channelNameHasBeenSet = false;
330 bool m_encryptionConfigurationHasBeenSet = false;
331 bool m_icebergDestinationConfigurationHasBeenSet = false;
332 bool m_s3DestinationConfigurationHasBeenSet = false;
333 bool m_statusHasBeenSet = false;
334 bool m_destinationTypeHasBeenSet = false;
335 bool m_creationTimeHasBeenSet = false;
336 bool m_topicConfigurationListHasBeenSet = false;
337 bool m_loggingInfoHasBeenSet = false;
338 bool m_stateInfoHasBeenSet = false;
339 bool m_clusterOperationArnHasBeenSet = false;
340 bool m_tagsHasBeenSet = false;
341 bool m_requestIdHasBeenSet = false;
342};
343
344} // namespace Model
345} // namespace Kafka
346} // namespace Aws
DescribeChannelResult & AddTopicConfigurationList(TopicConfigurationListT &&value)
DescribeChannelResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
DescribeChannelResult & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
const Aws::Vector< TopicConfiguration > & GetTopicConfigurationList() const
const S3DestinationConfiguration & GetS3DestinationConfiguration() const
void SetTopicConfigurationList(TopicConfigurationListT &&value)
DescribeChannelResult & WithDestinationType(ChannelDestinationType value)
const ChannelStateInfo & GetStateInfo() const
DescribeChannelResult & WithChannelArn(ChannelArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetClusterOperationArn() const
DescribeChannelResult & WithTags(TagsT &&value)
DescribeChannelResult & WithClusterOperationArn(ClusterOperationArnT &&value)
DescribeChannelResult & WithStateInfo(StateInfoT &&value)
void SetIcebergDestinationConfiguration(IcebergDestinationConfigurationT &&value)
ChannelDestinationType GetDestinationType() const
DescribeChannelResult & WithLoggingInfo(LoggingInfoT &&value)
DescribeChannelResult & WithChannelName(ChannelNameT &&value)
DescribeChannelResult & WithIcebergDestinationConfiguration(IcebergDestinationConfigurationT &&value)
AWS_KAFKA_API DescribeChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KAFKA_API DescribeChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDestinationType(ChannelDestinationType value)
const IcebergDestinationConfiguration & GetIcebergDestinationConfiguration() const
void SetS3DestinationConfiguration(S3DestinationConfigurationT &&value)
const ChannelLoggingInfo & GetLoggingInfo() const
DescribeChannelResult & WithS3DestinationConfiguration(S3DestinationConfigurationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeChannelResult & WithRequestId(RequestIdT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
DescribeChannelResult & WithCreationTime(CreationTimeT &&value)
void SetClusterOperationArn(ClusterOperationArnT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
const Aws::Utils::DateTime & GetCreationTime() const
DescribeChannelResult & WithStatus(ChannelStatus value)
AWS_KAFKA_API DescribeChannelResult()=default
DescribeChannelResult & WithTopicConfigurationList(TopicConfigurationListT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue