AWS SDK for C++

AWS SDK for C++ Version 1.11.887

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/kinesis/KinesisRequest.h>
11#include <aws/kinesis/Kinesis_EXPORTS.h>
12#include <aws/kinesis/model/ChannelEncryptionConfiguration.h>
13#include <aws/kinesis/model/ChannelLoggingConfiguration.h>
14#include <aws/kinesis/model/ChannelStreamConfiguration.h>
15#include <aws/kinesis/model/S3DestinationConfiguration.h>
16#include <aws/kinesis/model/S3TablesDestinationConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Kinesis {
22namespace Model {
23
27 public:
28 AWS_KINESIS_API CreateChannelRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
35
36 AWS_KINESIS_API Aws::String SerializePayload() const override;
37
39
43 AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override;
44
46
50 inline const Aws::String& GetChannelName() const { return m_channelName; }
51 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
52 template <typename ChannelNameT = Aws::String>
53 void SetChannelName(ChannelNameT&& value) {
54 m_channelNameHasBeenSet = true;
55 m_channelName = std::forward<ChannelNameT>(value);
56 }
57 template <typename ChannelNameT = Aws::String>
58 CreateChannelRequest& WithChannelName(ChannelNameT&& value) {
59 SetChannelName(std::forward<ChannelNameT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetServiceExecutionRoleARN() const { return m_serviceExecutionRoleARN; }
70 inline bool ServiceExecutionRoleARNHasBeenSet() const { return m_serviceExecutionRoleARNHasBeenSet; }
71 template <typename ServiceExecutionRoleARNT = Aws::String>
72 void SetServiceExecutionRoleARN(ServiceExecutionRoleARNT&& value) {
73 m_serviceExecutionRoleARNHasBeenSet = true;
74 m_serviceExecutionRoleARN = std::forward<ServiceExecutionRoleARNT>(value);
75 }
76 template <typename ServiceExecutionRoleARNT = Aws::String>
77 CreateChannelRequest& WithServiceExecutionRoleARN(ServiceExecutionRoleARNT&& value) {
78 SetServiceExecutionRoleARN(std::forward<ServiceExecutionRoleARNT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::Vector<ChannelStreamConfiguration>& GetStreamConfigurationList() const { return m_streamConfigurationList; }
89 inline bool StreamConfigurationListHasBeenSet() const { return m_streamConfigurationListHasBeenSet; }
90 template <typename StreamConfigurationListT = Aws::Vector<ChannelStreamConfiguration>>
91 void SetStreamConfigurationList(StreamConfigurationListT&& value) {
92 m_streamConfigurationListHasBeenSet = true;
93 m_streamConfigurationList = std::forward<StreamConfigurationListT>(value);
94 }
95 template <typename StreamConfigurationListT = Aws::Vector<ChannelStreamConfiguration>>
96 CreateChannelRequest& WithStreamConfigurationList(StreamConfigurationListT&& value) {
97 SetStreamConfigurationList(std::forward<StreamConfigurationListT>(value));
98 return *this;
99 }
100 template <typename StreamConfigurationListT = ChannelStreamConfiguration>
101 CreateChannelRequest& AddStreamConfigurationList(StreamConfigurationListT&& value) {
102 m_streamConfigurationListHasBeenSet = true;
103 m_streamConfigurationList.emplace_back(std::forward<StreamConfigurationListT>(value));
104 return *this;
105 }
107
109
114 inline const S3DestinationConfiguration& GetS3DestinationConfiguration() const { return m_s3DestinationConfiguration; }
115 inline bool S3DestinationConfigurationHasBeenSet() const { return m_s3DestinationConfigurationHasBeenSet; }
116 template <typename S3DestinationConfigurationT = S3DestinationConfiguration>
117 void SetS3DestinationConfiguration(S3DestinationConfigurationT&& value) {
118 m_s3DestinationConfigurationHasBeenSet = true;
119 m_s3DestinationConfiguration = std::forward<S3DestinationConfigurationT>(value);
120 }
121 template <typename S3DestinationConfigurationT = S3DestinationConfiguration>
122 CreateChannelRequest& WithS3DestinationConfiguration(S3DestinationConfigurationT&& value) {
123 SetS3DestinationConfiguration(std::forward<S3DestinationConfigurationT>(value));
124 return *this;
125 }
127
129
135 inline const S3TablesDestinationConfiguration& GetS3TablesDestinationConfiguration() const { return m_s3TablesDestinationConfiguration; }
136 inline bool S3TablesDestinationConfigurationHasBeenSet() const { return m_s3TablesDestinationConfigurationHasBeenSet; }
137 template <typename S3TablesDestinationConfigurationT = S3TablesDestinationConfiguration>
138 void SetS3TablesDestinationConfiguration(S3TablesDestinationConfigurationT&& value) {
139 m_s3TablesDestinationConfigurationHasBeenSet = true;
140 m_s3TablesDestinationConfiguration = std::forward<S3TablesDestinationConfigurationT>(value);
141 }
142 template <typename S3TablesDestinationConfigurationT = S3TablesDestinationConfiguration>
143 CreateChannelRequest& WithS3TablesDestinationConfiguration(S3TablesDestinationConfigurationT&& value) {
144 SetS3TablesDestinationConfiguration(std::forward<S3TablesDestinationConfigurationT>(value));
145 return *this;
146 }
148
150
154 inline const ChannelEncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
155 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
156 template <typename EncryptionConfigurationT = ChannelEncryptionConfiguration>
157 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
158 m_encryptionConfigurationHasBeenSet = true;
159 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
160 }
161 template <typename EncryptionConfigurationT = ChannelEncryptionConfiguration>
162 CreateChannelRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
163 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
174 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 void SetTags(TagsT&& value) {
177 m_tagsHasBeenSet = true;
178 m_tags = std::forward<TagsT>(value);
179 }
180 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
182 SetTags(std::forward<TagsT>(value));
183 return *this;
184 }
185 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
186 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
187 m_tagsHasBeenSet = true;
188 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
189 return *this;
190 }
192
194
197 inline const ChannelLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
198 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
199 template <typename LoggingConfigurationT = ChannelLoggingConfiguration>
200 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
201 m_loggingConfigurationHasBeenSet = true;
202 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
203 }
204 template <typename LoggingConfigurationT = ChannelLoggingConfiguration>
205 CreateChannelRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
206 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_channelName;
212
213 Aws::String m_serviceExecutionRoleARN;
214
215 Aws::Vector<ChannelStreamConfiguration> m_streamConfigurationList;
216
217 S3DestinationConfiguration m_s3DestinationConfiguration;
218
219 S3TablesDestinationConfiguration m_s3TablesDestinationConfiguration;
220
221 ChannelEncryptionConfiguration m_encryptionConfiguration;
222
224
225 ChannelLoggingConfiguration m_loggingConfiguration;
226 bool m_channelNameHasBeenSet = false;
227 bool m_serviceExecutionRoleARNHasBeenSet = false;
228 bool m_streamConfigurationListHasBeenSet = false;
229 bool m_s3DestinationConfigurationHasBeenSet = false;
230 bool m_s3TablesDestinationConfigurationHasBeenSet = false;
231 bool m_encryptionConfigurationHasBeenSet = false;
232 bool m_tagsHasBeenSet = false;
233 bool m_loggingConfigurationHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace Kinesis
238} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
CreateChannelRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_KINESIS_API CreateChannelRequest()=default
CreateChannelRequest & AddStreamConfigurationList(StreamConfigurationListT &&value)
CreateChannelRequest & WithTags(TagsT &&value)
CreateChannelRequest & WithLoggingConfiguration(LoggingConfigurationT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
void SetS3TablesDestinationConfiguration(S3TablesDestinationConfigurationT &&value)
void SetS3DestinationConfiguration(S3DestinationConfigurationT &&value)
AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override
AWS_KINESIS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const ChannelEncryptionConfiguration & GetEncryptionConfiguration() const
const Aws::String & GetServiceExecutionRoleARN() const
AWS_KINESIS_API Aws::String SerializePayload() const override
CreateChannelRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
const Aws::Vector< ChannelStreamConfiguration > & GetStreamConfigurationList() const
const ChannelLoggingConfiguration & GetLoggingConfiguration() const
void SetServiceExecutionRoleARN(ServiceExecutionRoleARNT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const S3DestinationConfiguration & GetS3DestinationConfiguration() const
CreateChannelRequest & WithS3DestinationConfiguration(S3DestinationConfigurationT &&value)
CreateChannelRequest & WithChannelName(ChannelNameT &&value)
CreateChannelRequest & WithServiceExecutionRoleARN(ServiceExecutionRoleARNT &&value)
void SetLoggingConfiguration(LoggingConfigurationT &&value)
void SetStreamConfigurationList(StreamConfigurationListT &&value)
const S3TablesDestinationConfiguration & GetS3TablesDestinationConfiguration() const
CreateChannelRequest & WithS3TablesDestinationConfiguration(S3TablesDestinationConfigurationT &&value)
CreateChannelRequest & WithStreamConfigurationList(StreamConfigurationListT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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