AWS SDK for C++  0.14.3
AWS SDK for C++
RedshiftDestinationConfiguration.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace Firehose
33 {
34 namespace Model
35 {
36 
41  {
42  public:
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
52 
56  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
57 
61  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
62 
66  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
67 
71  inline RedshiftDestinationConfiguration& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
72 
76  inline RedshiftDestinationConfiguration& WithRoleARN(Aws::String&& value) { SetRoleARN(value); return *this;}
77 
81  inline RedshiftDestinationConfiguration& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
82 
86  inline const Aws::String& GetClusterJDBCURL() const{ return m_clusterJDBCURL; }
87 
91  inline void SetClusterJDBCURL(const Aws::String& value) { m_clusterJDBCURLHasBeenSet = true; m_clusterJDBCURL = value; }
92 
96  inline void SetClusterJDBCURL(Aws::String&& value) { m_clusterJDBCURLHasBeenSet = true; m_clusterJDBCURL = value; }
97 
101  inline void SetClusterJDBCURL(const char* value) { m_clusterJDBCURLHasBeenSet = true; m_clusterJDBCURL.assign(value); }
102 
106  inline RedshiftDestinationConfiguration& WithClusterJDBCURL(const Aws::String& value) { SetClusterJDBCURL(value); return *this;}
107 
111  inline RedshiftDestinationConfiguration& WithClusterJDBCURL(Aws::String&& value) { SetClusterJDBCURL(value); return *this;}
112 
116  inline RedshiftDestinationConfiguration& WithClusterJDBCURL(const char* value) { SetClusterJDBCURL(value); return *this;}
117 
121  inline const CopyCommand& GetCopyCommand() const{ return m_copyCommand; }
122 
126  inline void SetCopyCommand(const CopyCommand& value) { m_copyCommandHasBeenSet = true; m_copyCommand = value; }
127 
131  inline void SetCopyCommand(CopyCommand&& value) { m_copyCommandHasBeenSet = true; m_copyCommand = value; }
132 
136  inline RedshiftDestinationConfiguration& WithCopyCommand(const CopyCommand& value) { SetCopyCommand(value); return *this;}
137 
141  inline RedshiftDestinationConfiguration& WithCopyCommand(CopyCommand&& value) { SetCopyCommand(value); return *this;}
142 
146  inline const Aws::String& GetUsername() const{ return m_username; }
147 
151  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
152 
156  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = value; }
157 
161  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
162 
166  inline RedshiftDestinationConfiguration& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
167 
171  inline RedshiftDestinationConfiguration& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
172 
176  inline RedshiftDestinationConfiguration& WithUsername(const char* value) { SetUsername(value); return *this;}
177 
181  inline const Aws::String& GetPassword() const{ return m_password; }
182 
186  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
187 
191  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = value; }
192 
196  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
197 
201  inline RedshiftDestinationConfiguration& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
202 
206  inline RedshiftDestinationConfiguration& WithPassword(Aws::String&& value) { SetPassword(value); return *this;}
207 
211  inline RedshiftDestinationConfiguration& WithPassword(const char* value) { SetPassword(value); return *this;}
212 
217  inline const RedshiftRetryOptions& GetRetryOptions() const{ return m_retryOptions; }
218 
223  inline void SetRetryOptions(const RedshiftRetryOptions& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = value; }
224 
229  inline void SetRetryOptions(RedshiftRetryOptions&& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = value; }
230 
235  inline RedshiftDestinationConfiguration& WithRetryOptions(const RedshiftRetryOptions& value) { SetRetryOptions(value); return *this;}
236 
241  inline RedshiftDestinationConfiguration& WithRetryOptions(RedshiftRetryOptions&& value) { SetRetryOptions(value); return *this;}
242 
252  inline const S3DestinationConfiguration& GetS3Configuration() const{ return m_s3Configuration; }
253 
263  inline void SetS3Configuration(const S3DestinationConfiguration& value) { m_s3ConfigurationHasBeenSet = true; m_s3Configuration = value; }
264 
274  inline void SetS3Configuration(S3DestinationConfiguration&& value) { m_s3ConfigurationHasBeenSet = true; m_s3Configuration = value; }
275 
285  inline RedshiftDestinationConfiguration& WithS3Configuration(const S3DestinationConfiguration& value) { SetS3Configuration(value); return *this;}
286 
296  inline RedshiftDestinationConfiguration& WithS3Configuration(S3DestinationConfiguration&& value) { SetS3Configuration(value); return *this;}
297 
301  inline const CloudWatchLoggingOptions& GetCloudWatchLoggingOptions() const{ return m_cloudWatchLoggingOptions; }
302 
306  inline void SetCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; }
307 
311  inline void SetCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; }
312 
316  inline RedshiftDestinationConfiguration& WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { SetCloudWatchLoggingOptions(value); return *this;}
317 
321  inline RedshiftDestinationConfiguration& WithCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { SetCloudWatchLoggingOptions(value); return *this;}
322 
323  private:
324  Aws::String m_roleARN;
325  bool m_roleARNHasBeenSet;
326  Aws::String m_clusterJDBCURL;
327  bool m_clusterJDBCURLHasBeenSet;
328  CopyCommand m_copyCommand;
329  bool m_copyCommandHasBeenSet;
330  Aws::String m_username;
331  bool m_usernameHasBeenSet;
332  Aws::String m_password;
333  bool m_passwordHasBeenSet;
334  RedshiftRetryOptions m_retryOptions;
335  bool m_retryOptionsHasBeenSet;
336  S3DestinationConfiguration m_s3Configuration;
337  bool m_s3ConfigurationHasBeenSet;
338  CloudWatchLoggingOptions m_cloudWatchLoggingOptions;
339  bool m_cloudWatchLoggingOptionsHasBeenSet;
340  };
341 
342 } // namespace Model
343 } // namespace Firehose
344 } // namespace Aws
RedshiftDestinationConfiguration & WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions &value)
RedshiftDestinationConfiguration & WithS3Configuration(S3DestinationConfiguration &&value)
RedshiftDestinationConfiguration & WithRoleARN(const Aws::String &value)
RedshiftDestinationConfiguration & WithUsername(Aws::String &&value)
RedshiftDestinationConfiguration & WithCloudWatchLoggingOptions(CloudWatchLoggingOptions &&value)
#define AWS_FIREHOSE_API
RedshiftDestinationConfiguration & WithUsername(const Aws::String &value)
RedshiftDestinationConfiguration & WithRetryOptions(const RedshiftRetryOptions &value)
RedshiftDestinationConfiguration & WithCopyCommand(const CopyCommand &value)
RedshiftDestinationConfiguration & WithClusterJDBCURL(const char *value)
RedshiftDestinationConfiguration & WithPassword(const char *value)
const CloudWatchLoggingOptions & GetCloudWatchLoggingOptions() const
RedshiftDestinationConfiguration & WithCopyCommand(CopyCommand &&value)
RedshiftDestinationConfiguration & WithPassword(const Aws::String &value)
RedshiftDestinationConfiguration & WithRoleARN(Aws::String &&value)
RedshiftDestinationConfiguration & WithRetryOptions(RedshiftRetryOptions &&value)
RedshiftDestinationConfiguration & WithS3Configuration(const S3DestinationConfiguration &value)
RedshiftDestinationConfiguration & WithUsername(const char *value)
RedshiftDestinationConfiguration & WithClusterJDBCURL(Aws::String &&value)
RedshiftDestinationConfiguration & WithPassword(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCloudWatchLoggingOptions(const CloudWatchLoggingOptions &value)
RedshiftDestinationConfiguration & WithRoleARN(const char *value)
void SetS3Configuration(const S3DestinationConfiguration &value)
JSON (JavaScript Object Notation).
RedshiftDestinationConfiguration & WithClusterJDBCURL(const Aws::String &value)