AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RedshiftDestinationConfiguration.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/firehose/model/CopyCommand.h>
10#include <aws/firehose/model/RedshiftRetryOptions.h>
11#include <aws/firehose/model/S3DestinationConfiguration.h>
12#include <aws/firehose/model/ProcessingConfiguration.h>
13#include <aws/firehose/model/RedshiftS3BackupMode.h>
14#include <aws/firehose/model/CloudWatchLoggingOptions.h>
15#include <aws/firehose/model/SecretsManagerConfiguration.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Firehose
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_FIREHOSE_API RedshiftDestinationConfiguration() = default;
45 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
55 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
56 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
57 template<typename RoleARNT = Aws::String>
58 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
59 template<typename RoleARNT = Aws::String>
60 RedshiftDestinationConfiguration& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
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) { m_clusterJDBCURLHasBeenSet = true; m_clusterJDBCURL = std::forward<ClusterJDBCURLT>(value); }
71 template<typename ClusterJDBCURLT = Aws::String>
72 RedshiftDestinationConfiguration& WithClusterJDBCURL(ClusterJDBCURLT&& value) { SetClusterJDBCURL(std::forward<ClusterJDBCURLT>(value)); return *this;}
74
76
79 inline const CopyCommand& GetCopyCommand() const { return m_copyCommand; }
80 inline bool CopyCommandHasBeenSet() const { return m_copyCommandHasBeenSet; }
81 template<typename CopyCommandT = CopyCommand>
82 void SetCopyCommand(CopyCommandT&& value) { m_copyCommandHasBeenSet = true; m_copyCommand = std::forward<CopyCommandT>(value); }
83 template<typename CopyCommandT = CopyCommand>
84 RedshiftDestinationConfiguration& WithCopyCommand(CopyCommandT&& value) { SetCopyCommand(std::forward<CopyCommandT>(value)); return *this;}
86
88
91 inline const Aws::String& GetUsername() const { return m_username; }
92 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
93 template<typename UsernameT = Aws::String>
94 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
95 template<typename UsernameT = Aws::String>
96 RedshiftDestinationConfiguration& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
98
100
103 inline const Aws::String& GetPassword() const { return m_password; }
104 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
105 template<typename PasswordT = Aws::String>
106 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
107 template<typename PasswordT = Aws::String>
108 RedshiftDestinationConfiguration& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
110
112
116 inline const RedshiftRetryOptions& GetRetryOptions() const { return m_retryOptions; }
117 inline bool RetryOptionsHasBeenSet() const { return m_retryOptionsHasBeenSet; }
118 template<typename RetryOptionsT = RedshiftRetryOptions>
119 void SetRetryOptions(RetryOptionsT&& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = std::forward<RetryOptionsT>(value); }
120 template<typename RetryOptionsT = RedshiftRetryOptions>
121 RedshiftDestinationConfiguration& WithRetryOptions(RetryOptionsT&& value) { SetRetryOptions(std::forward<RetryOptionsT>(value)); return *this;}
123
125
134 inline const S3DestinationConfiguration& GetS3Configuration() const { return m_s3Configuration; }
135 inline bool S3ConfigurationHasBeenSet() const { return m_s3ConfigurationHasBeenSet; }
136 template<typename S3ConfigurationT = S3DestinationConfiguration>
137 void SetS3Configuration(S3ConfigurationT&& value) { m_s3ConfigurationHasBeenSet = true; m_s3Configuration = std::forward<S3ConfigurationT>(value); }
138 template<typename S3ConfigurationT = S3DestinationConfiguration>
139 RedshiftDestinationConfiguration& WithS3Configuration(S3ConfigurationT&& value) { SetS3Configuration(std::forward<S3ConfigurationT>(value)); return *this;}
141
143
146 inline const ProcessingConfiguration& GetProcessingConfiguration() const { return m_processingConfiguration; }
147 inline bool ProcessingConfigurationHasBeenSet() const { return m_processingConfigurationHasBeenSet; }
148 template<typename ProcessingConfigurationT = ProcessingConfiguration>
149 void SetProcessingConfiguration(ProcessingConfigurationT&& value) { m_processingConfigurationHasBeenSet = true; m_processingConfiguration = std::forward<ProcessingConfigurationT>(value); }
150 template<typename ProcessingConfigurationT = ProcessingConfiguration>
151 RedshiftDestinationConfiguration& WithProcessingConfiguration(ProcessingConfigurationT&& value) { SetProcessingConfiguration(std::forward<ProcessingConfigurationT>(value)); return *this;}
153
155
160 inline RedshiftS3BackupMode GetS3BackupMode() const { return m_s3BackupMode; }
161 inline bool S3BackupModeHasBeenSet() const { return m_s3BackupModeHasBeenSet; }
162 inline void SetS3BackupMode(RedshiftS3BackupMode value) { m_s3BackupModeHasBeenSet = true; m_s3BackupMode = value; }
165
167
170 inline const S3DestinationConfiguration& GetS3BackupConfiguration() const { return m_s3BackupConfiguration; }
171 inline bool S3BackupConfigurationHasBeenSet() const { return m_s3BackupConfigurationHasBeenSet; }
172 template<typename S3BackupConfigurationT = S3DestinationConfiguration>
173 void SetS3BackupConfiguration(S3BackupConfigurationT&& value) { m_s3BackupConfigurationHasBeenSet = true; m_s3BackupConfiguration = std::forward<S3BackupConfigurationT>(value); }
174 template<typename S3BackupConfigurationT = S3DestinationConfiguration>
175 RedshiftDestinationConfiguration& WithS3BackupConfiguration(S3BackupConfigurationT&& value) { SetS3BackupConfiguration(std::forward<S3BackupConfigurationT>(value)); return *this;}
177
179
182 inline const CloudWatchLoggingOptions& GetCloudWatchLoggingOptions() const { return m_cloudWatchLoggingOptions; }
183 inline bool CloudWatchLoggingOptionsHasBeenSet() const { return m_cloudWatchLoggingOptionsHasBeenSet; }
184 template<typename CloudWatchLoggingOptionsT = CloudWatchLoggingOptions>
185 void SetCloudWatchLoggingOptions(CloudWatchLoggingOptionsT&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = std::forward<CloudWatchLoggingOptionsT>(value); }
186 template<typename CloudWatchLoggingOptionsT = CloudWatchLoggingOptions>
187 RedshiftDestinationConfiguration& WithCloudWatchLoggingOptions(CloudWatchLoggingOptionsT&& value) { SetCloudWatchLoggingOptions(std::forward<CloudWatchLoggingOptionsT>(value)); return *this;}
189
191
195 inline const SecretsManagerConfiguration& GetSecretsManagerConfiguration() const { return m_secretsManagerConfiguration; }
196 inline bool SecretsManagerConfigurationHasBeenSet() const { return m_secretsManagerConfigurationHasBeenSet; }
197 template<typename SecretsManagerConfigurationT = SecretsManagerConfiguration>
198 void SetSecretsManagerConfiguration(SecretsManagerConfigurationT&& value) { m_secretsManagerConfigurationHasBeenSet = true; m_secretsManagerConfiguration = std::forward<SecretsManagerConfigurationT>(value); }
199 template<typename SecretsManagerConfigurationT = SecretsManagerConfiguration>
200 RedshiftDestinationConfiguration& WithSecretsManagerConfiguration(SecretsManagerConfigurationT&& value) { SetSecretsManagerConfiguration(std::forward<SecretsManagerConfigurationT>(value)); return *this;}
202 private:
203
204 Aws::String m_roleARN;
205 bool m_roleARNHasBeenSet = false;
206
207 Aws::String m_clusterJDBCURL;
208 bool m_clusterJDBCURLHasBeenSet = false;
209
210 CopyCommand m_copyCommand;
211 bool m_copyCommandHasBeenSet = false;
212
213 Aws::String m_username;
214 bool m_usernameHasBeenSet = false;
215
216 Aws::String m_password;
217 bool m_passwordHasBeenSet = false;
218
219 RedshiftRetryOptions m_retryOptions;
220 bool m_retryOptionsHasBeenSet = false;
221
222 S3DestinationConfiguration m_s3Configuration;
223 bool m_s3ConfigurationHasBeenSet = false;
224
225 ProcessingConfiguration m_processingConfiguration;
226 bool m_processingConfigurationHasBeenSet = false;
227
229 bool m_s3BackupModeHasBeenSet = false;
230
231 S3DestinationConfiguration m_s3BackupConfiguration;
232 bool m_s3BackupConfigurationHasBeenSet = false;
233
234 CloudWatchLoggingOptions m_cloudWatchLoggingOptions;
235 bool m_cloudWatchLoggingOptionsHasBeenSet = false;
236
237 SecretsManagerConfiguration m_secretsManagerConfiguration;
238 bool m_secretsManagerConfigurationHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace Firehose
243} // 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