AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RedshiftDestinationConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/firehose/Firehose_EXPORTS.h>
9#include <aws/firehose/model/CloudWatchLoggingOptions.h>
10#include <aws/firehose/model/CopyCommand.h>
11#include <aws/firehose/model/ProcessingConfiguration.h>
12#include <aws/firehose/model/RedshiftRetryOptions.h>
13#include <aws/firehose/model/RedshiftS3BackupMode.h>
14#include <aws/firehose/model/S3DestinationConfiguration.h>
15#include <aws/firehose/model/SecretsManagerConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Firehose {
27namespace Model {
28
36 public:
37 AWS_FIREHOSE_API RedshiftDestinationConfiguration() = default;
40 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
49 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
50 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
51 template <typename RoleARNT = Aws::String>
52 void SetRoleARN(RoleARNT&& value) {
53 m_roleARNHasBeenSet = true;
54 m_roleARN = std::forward<RoleARNT>(value);
55 }
56 template <typename RoleARNT = Aws::String>
58 SetRoleARN(std::forward<RoleARNT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetClusterJDBCURL() const { return m_clusterJDBCURL; }
68 inline bool ClusterJDBCURLHasBeenSet() const { return m_clusterJDBCURLHasBeenSet; }
69 template <typename ClusterJDBCURLT = Aws::String>
70 void SetClusterJDBCURL(ClusterJDBCURLT&& value) {
71 m_clusterJDBCURLHasBeenSet = true;
72 m_clusterJDBCURL = std::forward<ClusterJDBCURLT>(value);
73 }
74 template <typename ClusterJDBCURLT = Aws::String>
76 SetClusterJDBCURL(std::forward<ClusterJDBCURLT>(value));
77 return *this;
78 }
80
82
85 inline const CopyCommand& GetCopyCommand() const { return m_copyCommand; }
86 inline bool CopyCommandHasBeenSet() const { return m_copyCommandHasBeenSet; }
87 template <typename CopyCommandT = CopyCommand>
88 void SetCopyCommand(CopyCommandT&& value) {
89 m_copyCommandHasBeenSet = true;
90 m_copyCommand = std::forward<CopyCommandT>(value);
91 }
92 template <typename CopyCommandT = CopyCommand>
94 SetCopyCommand(std::forward<CopyCommandT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetUsername() const { return m_username; }
104 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
105 template <typename UsernameT = Aws::String>
106 void SetUsername(UsernameT&& value) {
107 m_usernameHasBeenSet = true;
108 m_username = std::forward<UsernameT>(value);
109 }
110 template <typename UsernameT = Aws::String>
112 SetUsername(std::forward<UsernameT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetPassword() const { return m_password; }
122 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
123 template <typename PasswordT = Aws::String>
124 void SetPassword(PasswordT&& value) {
125 m_passwordHasBeenSet = true;
126 m_password = std::forward<PasswordT>(value);
127 }
128 template <typename PasswordT = Aws::String>
130 SetPassword(std::forward<PasswordT>(value));
131 return *this;
132 }
134
136
140 inline const RedshiftRetryOptions& GetRetryOptions() const { return m_retryOptions; }
141 inline bool RetryOptionsHasBeenSet() const { return m_retryOptionsHasBeenSet; }
142 template <typename RetryOptionsT = RedshiftRetryOptions>
143 void SetRetryOptions(RetryOptionsT&& value) {
144 m_retryOptionsHasBeenSet = true;
145 m_retryOptions = std::forward<RetryOptionsT>(value);
146 }
147 template <typename RetryOptionsT = RedshiftRetryOptions>
149 SetRetryOptions(std::forward<RetryOptionsT>(value));
150 return *this;
151 }
153
155
164 inline const S3DestinationConfiguration& GetS3Configuration() const { return m_s3Configuration; }
165 inline bool S3ConfigurationHasBeenSet() const { return m_s3ConfigurationHasBeenSet; }
166 template <typename S3ConfigurationT = S3DestinationConfiguration>
167 void SetS3Configuration(S3ConfigurationT&& value) {
168 m_s3ConfigurationHasBeenSet = true;
169 m_s3Configuration = std::forward<S3ConfigurationT>(value);
170 }
171 template <typename S3ConfigurationT = S3DestinationConfiguration>
173 SetS3Configuration(std::forward<S3ConfigurationT>(value));
174 return *this;
175 }
177
179
182 inline const ProcessingConfiguration& GetProcessingConfiguration() const { return m_processingConfiguration; }
183 inline bool ProcessingConfigurationHasBeenSet() const { return m_processingConfigurationHasBeenSet; }
184 template <typename ProcessingConfigurationT = ProcessingConfiguration>
185 void SetProcessingConfiguration(ProcessingConfigurationT&& value) {
186 m_processingConfigurationHasBeenSet = true;
187 m_processingConfiguration = std::forward<ProcessingConfigurationT>(value);
188 }
189 template <typename ProcessingConfigurationT = ProcessingConfiguration>
191 SetProcessingConfiguration(std::forward<ProcessingConfigurationT>(value));
192 return *this;
193 }
195
197
202 inline RedshiftS3BackupMode GetS3BackupMode() const { return m_s3BackupMode; }
203 inline bool S3BackupModeHasBeenSet() const { return m_s3BackupModeHasBeenSet; }
205 m_s3BackupModeHasBeenSet = true;
206 m_s3BackupMode = value;
207 }
209 SetS3BackupMode(value);
210 return *this;
211 }
213
215
218 inline const S3DestinationConfiguration& GetS3BackupConfiguration() const { return m_s3BackupConfiguration; }
219 inline bool S3BackupConfigurationHasBeenSet() const { return m_s3BackupConfigurationHasBeenSet; }
220 template <typename S3BackupConfigurationT = S3DestinationConfiguration>
221 void SetS3BackupConfiguration(S3BackupConfigurationT&& value) {
222 m_s3BackupConfigurationHasBeenSet = true;
223 m_s3BackupConfiguration = std::forward<S3BackupConfigurationT>(value);
224 }
225 template <typename S3BackupConfigurationT = S3DestinationConfiguration>
227 SetS3BackupConfiguration(std::forward<S3BackupConfigurationT>(value));
228 return *this;
229 }
231
233
236 inline const CloudWatchLoggingOptions& GetCloudWatchLoggingOptions() const { return m_cloudWatchLoggingOptions; }
237 inline bool CloudWatchLoggingOptionsHasBeenSet() const { return m_cloudWatchLoggingOptionsHasBeenSet; }
238 template <typename CloudWatchLoggingOptionsT = CloudWatchLoggingOptions>
239 void SetCloudWatchLoggingOptions(CloudWatchLoggingOptionsT&& value) {
240 m_cloudWatchLoggingOptionsHasBeenSet = true;
241 m_cloudWatchLoggingOptions = std::forward<CloudWatchLoggingOptionsT>(value);
242 }
243 template <typename CloudWatchLoggingOptionsT = CloudWatchLoggingOptions>
245 SetCloudWatchLoggingOptions(std::forward<CloudWatchLoggingOptionsT>(value));
246 return *this;
247 }
249
251
255 inline const SecretsManagerConfiguration& GetSecretsManagerConfiguration() const { return m_secretsManagerConfiguration; }
256 inline bool SecretsManagerConfigurationHasBeenSet() const { return m_secretsManagerConfigurationHasBeenSet; }
257 template <typename SecretsManagerConfigurationT = SecretsManagerConfiguration>
258 void SetSecretsManagerConfiguration(SecretsManagerConfigurationT&& value) {
259 m_secretsManagerConfigurationHasBeenSet = true;
260 m_secretsManagerConfiguration = std::forward<SecretsManagerConfigurationT>(value);
261 }
262 template <typename SecretsManagerConfigurationT = SecretsManagerConfiguration>
264 SetSecretsManagerConfiguration(std::forward<SecretsManagerConfigurationT>(value));
265 return *this;
266 }
268 private:
269 Aws::String m_roleARN;
270
271 Aws::String m_clusterJDBCURL;
272
273 CopyCommand m_copyCommand;
274
275 Aws::String m_username;
276
277 Aws::String m_password;
278
279 RedshiftRetryOptions m_retryOptions;
280
281 S3DestinationConfiguration m_s3Configuration;
282
283 ProcessingConfiguration m_processingConfiguration;
284
286
287 S3DestinationConfiguration m_s3BackupConfiguration;
288
289 CloudWatchLoggingOptions m_cloudWatchLoggingOptions;
290
291 SecretsManagerConfiguration m_secretsManagerConfiguration;
292 bool m_roleARNHasBeenSet = false;
293 bool m_clusterJDBCURLHasBeenSet = false;
294 bool m_copyCommandHasBeenSet = false;
295 bool m_usernameHasBeenSet = false;
296 bool m_passwordHasBeenSet = false;
297 bool m_retryOptionsHasBeenSet = false;
298 bool m_s3ConfigurationHasBeenSet = false;
299 bool m_processingConfigurationHasBeenSet = false;
300 bool m_s3BackupModeHasBeenSet = false;
301 bool m_s3BackupConfigurationHasBeenSet = false;
302 bool m_cloudWatchLoggingOptionsHasBeenSet = false;
303 bool m_secretsManagerConfigurationHasBeenSet = false;
304};
305
306} // namespace Model
307} // namespace Firehose
308} // namespace Aws
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
RedshiftDestinationConfiguration & WithS3BackupConfiguration(S3BackupConfigurationT &&value)
RedshiftDestinationConfiguration & WithUsername(UsernameT &&value)
RedshiftDestinationConfiguration & WithRetryOptions(RetryOptionsT &&value)
RedshiftDestinationConfiguration & WithSecretsManagerConfiguration(SecretsManagerConfigurationT &&value)
AWS_FIREHOSE_API RedshiftDestinationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const SecretsManagerConfiguration & GetSecretsManagerConfiguration() const
RedshiftDestinationConfiguration & WithProcessingConfiguration(ProcessingConfigurationT &&value)
RedshiftDestinationConfiguration & WithCloudWatchLoggingOptions(CloudWatchLoggingOptionsT &&value)
AWS_FIREHOSE_API RedshiftDestinationConfiguration()=default
RedshiftDestinationConfiguration & WithS3BackupMode(RedshiftS3BackupMode value)
RedshiftDestinationConfiguration & WithPassword(PasswordT &&value)
void SetSecretsManagerConfiguration(SecretsManagerConfigurationT &&value)
RedshiftDestinationConfiguration & WithS3Configuration(S3ConfigurationT &&value)
RedshiftDestinationConfiguration & WithClusterJDBCURL(ClusterJDBCURLT &&value)
AWS_FIREHOSE_API RedshiftDestinationConfiguration(Aws::Utils::Json::JsonView jsonValue)
RedshiftDestinationConfiguration & WithCopyCommand(CopyCommandT &&value)
RedshiftDestinationConfiguration & WithRoleARN(RoleARNT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue