AWS SDK for C++

AWS SDK for C++ Version 1.11.890

Loading...
Searching...
No Matches
ChannelDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kinesis/Kinesis_EXPORTS.h>
11#include <aws/kinesis/model/ChannelEncryptionConfiguration.h>
12#include <aws/kinesis/model/ChannelLoggingConfiguration.h>
13#include <aws/kinesis/model/ChannelStatus.h>
14#include <aws/kinesis/model/ChannelStreamDescription.h>
15#include <aws/kinesis/model/S3DestinationDescription.h>
16#include <aws/kinesis/model/S3TablesDestinationDescription.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Kinesis {
28namespace Model {
29
37 public:
38 AWS_KINESIS_API ChannelDescription() = default;
41 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetChannelName() const { return m_channelName; }
48 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
49 template <typename ChannelNameT = Aws::String>
50 void SetChannelName(ChannelNameT&& value) {
51 m_channelNameHasBeenSet = true;
52 m_channelName = std::forward<ChannelNameT>(value);
53 }
54 template <typename ChannelNameT = Aws::String>
55 ChannelDescription& WithChannelName(ChannelNameT&& value) {
56 SetChannelName(std::forward<ChannelNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetChannelARN() const { return m_channelARN; }
66 inline bool ChannelARNHasBeenSet() const { return m_channelARNHasBeenSet; }
67 template <typename ChannelARNT = Aws::String>
68 void SetChannelARN(ChannelARNT&& value) {
69 m_channelARNHasBeenSet = true;
70 m_channelARN = std::forward<ChannelARNT>(value);
71 }
72 template <typename ChannelARNT = Aws::String>
73 ChannelDescription& WithChannelARN(ChannelARNT&& value) {
74 SetChannelARN(std::forward<ChannelARNT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetChannelId() const { return m_channelId; }
84 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
85 template <typename ChannelIdT = Aws::String>
86 void SetChannelId(ChannelIdT&& value) {
87 m_channelIdHasBeenSet = true;
88 m_channelId = std::forward<ChannelIdT>(value);
89 }
90 template <typename ChannelIdT = Aws::String>
91 ChannelDescription& WithChannelId(ChannelIdT&& value) {
92 SetChannelId(std::forward<ChannelIdT>(value));
93 return *this;
94 }
96
98
107 inline ChannelStatus GetChannelStatus() const { return m_channelStatus; }
108 inline bool ChannelStatusHasBeenSet() const { return m_channelStatusHasBeenSet; }
109 inline void SetChannelStatus(ChannelStatus value) {
110 m_channelStatusHasBeenSet = true;
111 m_channelStatus = value;
112 }
114 SetChannelStatus(value);
115 return *this;
116 }
118
120
123 inline const Aws::String& GetChannelStatusReason() const { return m_channelStatusReason; }
124 inline bool ChannelStatusReasonHasBeenSet() const { return m_channelStatusReasonHasBeenSet; }
125 template <typename ChannelStatusReasonT = Aws::String>
126 void SetChannelStatusReason(ChannelStatusReasonT&& value) {
127 m_channelStatusReasonHasBeenSet = true;
128 m_channelStatusReason = std::forward<ChannelStatusReasonT>(value);
129 }
130 template <typename ChannelStatusReasonT = Aws::String>
131 ChannelDescription& WithChannelStatusReason(ChannelStatusReasonT&& value) {
132 SetChannelStatusReason(std::forward<ChannelStatusReasonT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Utils::DateTime& GetChannelCreationTimestamp() const { return m_channelCreationTimestamp; }
142 inline bool ChannelCreationTimestampHasBeenSet() const { return m_channelCreationTimestampHasBeenSet; }
143 template <typename ChannelCreationTimestampT = Aws::Utils::DateTime>
144 void SetChannelCreationTimestamp(ChannelCreationTimestampT&& value) {
145 m_channelCreationTimestampHasBeenSet = true;
146 m_channelCreationTimestamp = std::forward<ChannelCreationTimestampT>(value);
147 }
148 template <typename ChannelCreationTimestampT = Aws::Utils::DateTime>
149 ChannelDescription& WithChannelCreationTimestamp(ChannelCreationTimestampT&& value) {
150 SetChannelCreationTimestamp(std::forward<ChannelCreationTimestampT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetServiceExecutionRoleARN() const { return m_serviceExecutionRoleARN; }
161 inline bool ServiceExecutionRoleARNHasBeenSet() const { return m_serviceExecutionRoleARNHasBeenSet; }
162 template <typename ServiceExecutionRoleARNT = Aws::String>
163 void SetServiceExecutionRoleARN(ServiceExecutionRoleARNT&& value) {
164 m_serviceExecutionRoleARNHasBeenSet = true;
165 m_serviceExecutionRoleARN = std::forward<ServiceExecutionRoleARNT>(value);
166 }
167 template <typename ServiceExecutionRoleARNT = Aws::String>
168 ChannelDescription& WithServiceExecutionRoleARN(ServiceExecutionRoleARNT&& value) {
169 SetServiceExecutionRoleARN(std::forward<ServiceExecutionRoleARNT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Vector<ChannelStreamDescription>& GetStreamConfigurationList() const { return m_streamConfigurationList; }
179 inline bool StreamConfigurationListHasBeenSet() const { return m_streamConfigurationListHasBeenSet; }
180 template <typename StreamConfigurationListT = Aws::Vector<ChannelStreamDescription>>
181 void SetStreamConfigurationList(StreamConfigurationListT&& value) {
182 m_streamConfigurationListHasBeenSet = true;
183 m_streamConfigurationList = std::forward<StreamConfigurationListT>(value);
184 }
185 template <typename StreamConfigurationListT = Aws::Vector<ChannelStreamDescription>>
186 ChannelDescription& WithStreamConfigurationList(StreamConfigurationListT&& value) {
187 SetStreamConfigurationList(std::forward<StreamConfigurationListT>(value));
188 return *this;
189 }
190 template <typename StreamConfigurationListT = ChannelStreamDescription>
191 ChannelDescription& AddStreamConfigurationList(StreamConfigurationListT&& value) {
192 m_streamConfigurationListHasBeenSet = true;
193 m_streamConfigurationList.emplace_back(std::forward<StreamConfigurationListT>(value));
194 return *this;
195 }
197
199
203 inline const S3DestinationDescription& GetS3DestinationConfiguration() const { return m_s3DestinationConfiguration; }
204 inline bool S3DestinationConfigurationHasBeenSet() const { return m_s3DestinationConfigurationHasBeenSet; }
205 template <typename S3DestinationConfigurationT = S3DestinationDescription>
206 void SetS3DestinationConfiguration(S3DestinationConfigurationT&& value) {
207 m_s3DestinationConfigurationHasBeenSet = true;
208 m_s3DestinationConfiguration = std::forward<S3DestinationConfigurationT>(value);
209 }
210 template <typename S3DestinationConfigurationT = S3DestinationDescription>
211 ChannelDescription& WithS3DestinationConfiguration(S3DestinationConfigurationT&& value) {
212 SetS3DestinationConfiguration(std::forward<S3DestinationConfigurationT>(value));
213 return *this;
214 }
216
218
223 inline const S3TablesDestinationDescription& GetS3TablesDestinationConfiguration() const { return m_s3TablesDestinationConfiguration; }
224 inline bool S3TablesDestinationConfigurationHasBeenSet() const { return m_s3TablesDestinationConfigurationHasBeenSet; }
225 template <typename S3TablesDestinationConfigurationT = S3TablesDestinationDescription>
226 void SetS3TablesDestinationConfiguration(S3TablesDestinationConfigurationT&& value) {
227 m_s3TablesDestinationConfigurationHasBeenSet = true;
228 m_s3TablesDestinationConfiguration = std::forward<S3TablesDestinationConfigurationT>(value);
229 }
230 template <typename S3TablesDestinationConfigurationT = S3TablesDestinationDescription>
231 ChannelDescription& WithS3TablesDestinationConfiguration(S3TablesDestinationConfigurationT&& value) {
232 SetS3TablesDestinationConfiguration(std::forward<S3TablesDestinationConfigurationT>(value));
233 return *this;
234 }
236
238
241 inline const ChannelEncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
242 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
243 template <typename EncryptionConfigurationT = ChannelEncryptionConfiguration>
244 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
245 m_encryptionConfigurationHasBeenSet = true;
246 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
247 }
248 template <typename EncryptionConfigurationT = ChannelEncryptionConfiguration>
249 ChannelDescription& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
250 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
251 return *this;
252 }
254
256
259 inline const ChannelLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
260 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
261 template <typename LoggingConfigurationT = ChannelLoggingConfiguration>
262 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
263 m_loggingConfigurationHasBeenSet = true;
264 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
265 }
266 template <typename LoggingConfigurationT = ChannelLoggingConfiguration>
267 ChannelDescription& WithLoggingConfiguration(LoggingConfigurationT&& value) {
268 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
269 return *this;
270 }
272 private:
273 Aws::String m_channelName;
274
275 Aws::String m_channelARN;
276
277 Aws::String m_channelId;
278
279 ChannelStatus m_channelStatus{ChannelStatus::NOT_SET};
280
281 Aws::String m_channelStatusReason;
282
283 Aws::Utils::DateTime m_channelCreationTimestamp{};
284
285 Aws::String m_serviceExecutionRoleARN;
286
287 Aws::Vector<ChannelStreamDescription> m_streamConfigurationList;
288
289 S3DestinationDescription m_s3DestinationConfiguration;
290
291 S3TablesDestinationDescription m_s3TablesDestinationConfiguration;
292
293 ChannelEncryptionConfiguration m_encryptionConfiguration;
294
295 ChannelLoggingConfiguration m_loggingConfiguration;
296 bool m_channelNameHasBeenSet = false;
297 bool m_channelARNHasBeenSet = false;
298 bool m_channelIdHasBeenSet = false;
299 bool m_channelStatusHasBeenSet = false;
300 bool m_channelStatusReasonHasBeenSet = false;
301 bool m_channelCreationTimestampHasBeenSet = false;
302 bool m_serviceExecutionRoleARNHasBeenSet = false;
303 bool m_streamConfigurationListHasBeenSet = false;
304 bool m_s3DestinationConfigurationHasBeenSet = false;
305 bool m_s3TablesDestinationConfigurationHasBeenSet = false;
306 bool m_encryptionConfigurationHasBeenSet = false;
307 bool m_loggingConfigurationHasBeenSet = false;
308};
309
310} // namespace Model
311} // namespace Kinesis
312} // namespace Aws
void SetLoggingConfiguration(LoggingConfigurationT &&value)
ChannelDescription & AddStreamConfigurationList(StreamConfigurationListT &&value)
void SetServiceExecutionRoleARN(ServiceExecutionRoleARNT &&value)
void SetS3DestinationConfiguration(S3DestinationConfigurationT &&value)
ChannelDescription & WithChannelCreationTimestamp(ChannelCreationTimestampT &&value)
AWS_KINESIS_API ChannelDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetChannelStatusReason() const
ChannelDescription & WithServiceExecutionRoleARN(ServiceExecutionRoleARNT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
AWS_KINESIS_API ChannelDescription(Aws::Utils::Json::JsonView jsonValue)
ChannelDescription & WithChannelStatus(ChannelStatus value)
const Aws::Utils::DateTime & GetChannelCreationTimestamp() const
ChannelDescription & WithChannelId(ChannelIdT &&value)
ChannelDescription & WithS3TablesDestinationConfiguration(S3TablesDestinationConfigurationT &&value)
ChannelDescription & WithChannelARN(ChannelARNT &&value)
void SetChannelCreationTimestamp(ChannelCreationTimestampT &&value)
const ChannelLoggingConfiguration & GetLoggingConfiguration() const
ChannelDescription & WithS3DestinationConfiguration(S3DestinationConfigurationT &&value)
ChannelDescription & WithChannelStatusReason(ChannelStatusReasonT &&value)
void SetChannelStatusReason(ChannelStatusReasonT &&value)
ChannelDescription & WithChannelName(ChannelNameT &&value)
const S3TablesDestinationDescription & GetS3TablesDestinationConfiguration() const
void SetStreamConfigurationList(StreamConfigurationListT &&value)
ChannelDescription & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
AWS_KINESIS_API ChannelDescription()=default
const Aws::Vector< ChannelStreamDescription > & GetStreamConfigurationList() const
const S3DestinationDescription & GetS3DestinationConfiguration() const
const Aws::String & GetServiceExecutionRoleARN() const
void SetChannelName(ChannelNameT &&value)
const Aws::String & GetChannelName() const
ChannelDescription & WithStreamConfigurationList(StreamConfigurationListT &&value)
const Aws::String & GetChannelId() const
void SetS3TablesDestinationConfiguration(S3TablesDestinationConfigurationT &&value)
ChannelDescription & WithLoggingConfiguration(LoggingConfigurationT &&value)
const Aws::String & GetChannelARN() const
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
const ChannelEncryptionConfiguration & GetEncryptionConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue