AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
CreateChannelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kafka/KafkaRequest.h>
11#include <aws/kafka/Kafka_EXPORTS.h>
12#include <aws/kafka/model/ChannelLoggingInfo.h>
13#include <aws/kafka/model/EncryptionConfiguration.h>
14#include <aws/kafka/model/IcebergDestinationConfiguration.h>
15#include <aws/kafka/model/S3DestinationConfiguration.h>
16#include <aws/kafka/model/TopicConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Kafka {
22namespace Model {
23
31 public:
32 AWS_KAFKA_API CreateChannelRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
39
40 AWS_KAFKA_API Aws::String SerializePayload() const override;
41
43
46 inline const Aws::String& GetChannelName() const { return m_channelName; }
47 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
48 template <typename ChannelNameT = Aws::String>
49 void SetChannelName(ChannelNameT&& value) {
50 m_channelNameHasBeenSet = true;
51 m_channelName = std::forward<ChannelNameT>(value);
52 }
53 template <typename ChannelNameT = Aws::String>
54 CreateChannelRequest& WithChannelName(ChannelNameT&& value) {
55 SetChannelName(std::forward<ChannelNameT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
68 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
69 template <typename ClusterArnT = Aws::String>
70 void SetClusterArn(ClusterArnT&& value) {
71 m_clusterArnHasBeenSet = true;
72 m_clusterArn = std::forward<ClusterArnT>(value);
73 }
74 template <typename ClusterArnT = Aws::String>
75 CreateChannelRequest& WithClusterArn(ClusterArnT&& value) {
76 SetClusterArn(std::forward<ClusterArnT>(value));
77 return *this;
78 }
80
82
85 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
86 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
87 template <typename EncryptionConfigurationT = EncryptionConfiguration>
88 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
89 m_encryptionConfigurationHasBeenSet = true;
90 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
91 }
92 template <typename EncryptionConfigurationT = EncryptionConfiguration>
93 CreateChannelRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
94 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
95 return *this;
96 }
98
100
104 inline const IcebergDestinationConfiguration& GetIcebergDestinationConfiguration() const { return m_icebergDestinationConfiguration; }
105 inline bool IcebergDestinationConfigurationHasBeenSet() const { return m_icebergDestinationConfigurationHasBeenSet; }
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 CreateChannelRequest& WithIcebergDestinationConfiguration(IcebergDestinationConfigurationT&& value) {
113 SetIcebergDestinationConfiguration(std::forward<IcebergDestinationConfigurationT>(value));
114 return *this;
115 }
117
119
123 inline const S3DestinationConfiguration& GetS3DestinationConfiguration() const { return m_s3DestinationConfiguration; }
124 inline bool S3DestinationConfigurationHasBeenSet() const { return m_s3DestinationConfigurationHasBeenSet; }
125 template <typename S3DestinationConfigurationT = S3DestinationConfiguration>
126 void SetS3DestinationConfiguration(S3DestinationConfigurationT&& value) {
127 m_s3DestinationConfigurationHasBeenSet = true;
128 m_s3DestinationConfiguration = std::forward<S3DestinationConfigurationT>(value);
129 }
130 template <typename S3DestinationConfigurationT = S3DestinationConfiguration>
131 CreateChannelRequest& WithS3DestinationConfiguration(S3DestinationConfigurationT&& value) {
132 SetS3DestinationConfiguration(std::forward<S3DestinationConfigurationT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 void SetTags(TagsT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags = std::forward<TagsT>(value);
147 }
148 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 SetTags(std::forward<TagsT>(value));
151 return *this;
152 }
153 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
154 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
155 m_tagsHasBeenSet = true;
156 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::Vector<TopicConfiguration>& GetTopicConfigurationList() const { return m_topicConfigurationList; }
167 inline bool TopicConfigurationListHasBeenSet() const { return m_topicConfigurationListHasBeenSet; }
168 template <typename TopicConfigurationListT = Aws::Vector<TopicConfiguration>>
169 void SetTopicConfigurationList(TopicConfigurationListT&& value) {
170 m_topicConfigurationListHasBeenSet = true;
171 m_topicConfigurationList = std::forward<TopicConfigurationListT>(value);
172 }
173 template <typename TopicConfigurationListT = Aws::Vector<TopicConfiguration>>
174 CreateChannelRequest& WithTopicConfigurationList(TopicConfigurationListT&& value) {
175 SetTopicConfigurationList(std::forward<TopicConfigurationListT>(value));
176 return *this;
177 }
178 template <typename TopicConfigurationListT = TopicConfiguration>
179 CreateChannelRequest& AddTopicConfigurationList(TopicConfigurationListT&& value) {
180 m_topicConfigurationListHasBeenSet = true;
181 m_topicConfigurationList.emplace_back(std::forward<TopicConfigurationListT>(value));
182 return *this;
183 }
185
187
190 inline const ChannelLoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
191 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
192 template <typename LoggingInfoT = ChannelLoggingInfo>
193 void SetLoggingInfo(LoggingInfoT&& value) {
194 m_loggingInfoHasBeenSet = true;
195 m_loggingInfo = std::forward<LoggingInfoT>(value);
196 }
197 template <typename LoggingInfoT = ChannelLoggingInfo>
198 CreateChannelRequest& WithLoggingInfo(LoggingInfoT&& value) {
199 SetLoggingInfo(std::forward<LoggingInfoT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_channelName;
205
206 Aws::String m_clusterArn;
207
208 EncryptionConfiguration m_encryptionConfiguration;
209
210 IcebergDestinationConfiguration m_icebergDestinationConfiguration;
211
212 S3DestinationConfiguration m_s3DestinationConfiguration;
213
215
216 Aws::Vector<TopicConfiguration> m_topicConfigurationList;
217
218 ChannelLoggingInfo m_loggingInfo;
219 bool m_channelNameHasBeenSet = false;
220 bool m_clusterArnHasBeenSet = false;
221 bool m_encryptionConfigurationHasBeenSet = false;
222 bool m_icebergDestinationConfigurationHasBeenSet = false;
223 bool m_s3DestinationConfigurationHasBeenSet = false;
224 bool m_tagsHasBeenSet = false;
225 bool m_topicConfigurationListHasBeenSet = false;
226 bool m_loggingInfoHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace Kafka
231} // namespace Aws
AWS_KAFKA_API Aws::String SerializePayload() const override
CreateChannelRequest & AddTopicConfigurationList(TopicConfigurationListT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetS3DestinationConfiguration(S3DestinationConfigurationT &&value)
void SetIcebergDestinationConfiguration(IcebergDestinationConfigurationT &&value)
void SetTopicConfigurationList(TopicConfigurationListT &&value)
CreateChannelRequest & WithTags(TagsT &&value)
CreateChannelRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & WithIcebergDestinationConfiguration(IcebergDestinationConfigurationT &&value)
CreateChannelRequest & WithS3DestinationConfiguration(S3DestinationConfigurationT &&value)
CreateChannelRequest & WithTopicConfigurationList(TopicConfigurationListT &&value)
AWS_KAFKA_API CreateChannelRequest()=default
CreateChannelRequest & WithClusterArn(ClusterArnT &&value)
CreateChannelRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const S3DestinationConfiguration & GetS3DestinationConfiguration() const
CreateChannelRequest & WithLoggingInfo(LoggingInfoT &&value)
const Aws::Vector< TopicConfiguration > & GetTopicConfigurationList() const
const ChannelLoggingInfo & GetLoggingInfo() const
const IcebergDestinationConfiguration & GetIcebergDestinationConfiguration() const
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateChannelRequest & WithChannelName(ChannelNameT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() 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
std::vector< T, Aws::Allocator< T > > Vector