AWS SDK for C++

AWS SDK for C++ Version 1.11.905

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
134 inline const S3TablesDestinationConfiguration& GetS3TablesDestinationConfiguration() const { return m_s3TablesDestinationConfiguration; }
135 inline bool S3TablesDestinationConfigurationHasBeenSet() const { return m_s3TablesDestinationConfigurationHasBeenSet; }
136 template <typename S3TablesDestinationConfigurationT = S3TablesDestinationConfiguration>
137 void SetS3TablesDestinationConfiguration(S3TablesDestinationConfigurationT&& value) {
138 m_s3TablesDestinationConfigurationHasBeenSet = true;
139 m_s3TablesDestinationConfiguration = std::forward<S3TablesDestinationConfigurationT>(value);
140 }
141 template <typename S3TablesDestinationConfigurationT = S3TablesDestinationConfiguration>
142 CreateChannelRequest& WithS3TablesDestinationConfiguration(S3TablesDestinationConfigurationT&& value) {
143 SetS3TablesDestinationConfiguration(std::forward<S3TablesDestinationConfigurationT>(value));
144 return *this;
145 }
147
149
153 inline const ChannelEncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
154 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
155 template <typename EncryptionConfigurationT = ChannelEncryptionConfiguration>
156 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
157 m_encryptionConfigurationHasBeenSet = true;
158 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
159 }
160 template <typename EncryptionConfigurationT = ChannelEncryptionConfiguration>
161 CreateChannelRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
162 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
163 return *this;
164 }
166
168
172 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 void SetTags(TagsT&& value) {
176 m_tagsHasBeenSet = true;
177 m_tags = std::forward<TagsT>(value);
178 }
179 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 SetTags(std::forward<TagsT>(value));
182 return *this;
183 }
184 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
185 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
186 m_tagsHasBeenSet = true;
187 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
188 return *this;
189 }
191
193
196 inline const ChannelLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
197 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
198 template <typename LoggingConfigurationT = ChannelLoggingConfiguration>
199 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
200 m_loggingConfigurationHasBeenSet = true;
201 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
202 }
203 template <typename LoggingConfigurationT = ChannelLoggingConfiguration>
204 CreateChannelRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
205 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
206 return *this;
207 }
209 private:
210 Aws::String m_channelName;
211
212 Aws::String m_serviceExecutionRoleARN;
213
214 Aws::Vector<ChannelStreamConfiguration> m_streamConfigurationList;
215
216 S3DestinationConfiguration m_s3DestinationConfiguration;
217
218 S3TablesDestinationConfiguration m_s3TablesDestinationConfiguration;
219
220 ChannelEncryptionConfiguration m_encryptionConfiguration;
221
223
224 ChannelLoggingConfiguration m_loggingConfiguration;
225 bool m_channelNameHasBeenSet = false;
226 bool m_serviceExecutionRoleARNHasBeenSet = false;
227 bool m_streamConfigurationListHasBeenSet = false;
228 bool m_s3DestinationConfigurationHasBeenSet = false;
229 bool m_s3TablesDestinationConfigurationHasBeenSet = false;
230 bool m_encryptionConfigurationHasBeenSet = false;
231 bool m_tagsHasBeenSet = false;
232 bool m_loggingConfigurationHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace Kinesis
237} // 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