AWS SDK for C++  0.14.3
AWS SDK for C++
RedshiftDestinationUpdate.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:
45  RedshiftDestinationUpdate& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
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 RedshiftDestinationUpdate& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
72 
76  inline RedshiftDestinationUpdate& WithRoleARN(Aws::String&& value) { SetRoleARN(value); return *this;}
77 
81  inline RedshiftDestinationUpdate& 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 RedshiftDestinationUpdate& WithClusterJDBCURL(const Aws::String& value) { SetClusterJDBCURL(value); return *this;}
107 
111  inline RedshiftDestinationUpdate& WithClusterJDBCURL(Aws::String&& value) { SetClusterJDBCURL(value); return *this;}
112 
116  inline RedshiftDestinationUpdate& 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 RedshiftDestinationUpdate& WithCopyCommand(const CopyCommand& value) { SetCopyCommand(value); return *this;}
137 
141  inline RedshiftDestinationUpdate& 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 RedshiftDestinationUpdate& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
167 
171  inline RedshiftDestinationUpdate& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
172 
176  inline RedshiftDestinationUpdate& 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 RedshiftDestinationUpdate& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
202 
206  inline RedshiftDestinationUpdate& WithPassword(Aws::String&& value) { SetPassword(value); return *this;}
207 
211  inline RedshiftDestinationUpdate& 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 RedshiftDestinationUpdate& WithRetryOptions(const RedshiftRetryOptions& value) { SetRetryOptions(value); return *this;}
236 
241  inline RedshiftDestinationUpdate& WithRetryOptions(RedshiftRetryOptions&& value) { SetRetryOptions(value); return *this;}
242 
250  inline const S3DestinationUpdate& GetS3Update() const{ return m_s3Update; }
251 
259  inline void SetS3Update(const S3DestinationUpdate& value) { m_s3UpdateHasBeenSet = true; m_s3Update = value; }
260 
268  inline void SetS3Update(S3DestinationUpdate&& value) { m_s3UpdateHasBeenSet = true; m_s3Update = value; }
269 
277  inline RedshiftDestinationUpdate& WithS3Update(const S3DestinationUpdate& value) { SetS3Update(value); return *this;}
278 
286  inline RedshiftDestinationUpdate& WithS3Update(S3DestinationUpdate&& value) { SetS3Update(value); return *this;}
287 
291  inline const CloudWatchLoggingOptions& GetCloudWatchLoggingOptions() const{ return m_cloudWatchLoggingOptions; }
292 
296  inline void SetCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; }
297 
301  inline void SetCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; }
302 
306  inline RedshiftDestinationUpdate& WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { SetCloudWatchLoggingOptions(value); return *this;}
307 
311  inline RedshiftDestinationUpdate& WithCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { SetCloudWatchLoggingOptions(value); return *this;}
312 
313  private:
314  Aws::String m_roleARN;
315  bool m_roleARNHasBeenSet;
316  Aws::String m_clusterJDBCURL;
317  bool m_clusterJDBCURLHasBeenSet;
318  CopyCommand m_copyCommand;
319  bool m_copyCommandHasBeenSet;
320  Aws::String m_username;
321  bool m_usernameHasBeenSet;
322  Aws::String m_password;
323  bool m_passwordHasBeenSet;
324  RedshiftRetryOptions m_retryOptions;
325  bool m_retryOptionsHasBeenSet;
326  S3DestinationUpdate m_s3Update;
327  bool m_s3UpdateHasBeenSet;
328  CloudWatchLoggingOptions m_cloudWatchLoggingOptions;
329  bool m_cloudWatchLoggingOptionsHasBeenSet;
330  };
331 
332 } // namespace Model
333 } // namespace Firehose
334 } // namespace Aws
RedshiftDestinationUpdate & WithUsername(const Aws::String &value)
RedshiftDestinationUpdate & WithRetryOptions(const RedshiftRetryOptions &value)
RedshiftDestinationUpdate & WithClusterJDBCURL(Aws::String &&value)
void SetRetryOptions(const RedshiftRetryOptions &value)
RedshiftDestinationUpdate & WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions &value)
RedshiftDestinationUpdate & WithCopyCommand(CopyCommand &&value)
RedshiftDestinationUpdate & WithPassword(Aws::String &&value)
void SetCloudWatchLoggingOptions(CloudWatchLoggingOptions &&value)
RedshiftDestinationUpdate & WithCloudWatchLoggingOptions(CloudWatchLoggingOptions &&value)
RedshiftDestinationUpdate & WithRetryOptions(RedshiftRetryOptions &&value)
#define AWS_FIREHOSE_API
RedshiftDestinationUpdate & WithClusterJDBCURL(const char *value)
RedshiftDestinationUpdate & WithPassword(const Aws::String &value)
const CloudWatchLoggingOptions & GetCloudWatchLoggingOptions() const
RedshiftDestinationUpdate & WithRoleARN(const char *value)
RedshiftDestinationUpdate & WithRoleARN(Aws::String &&value)
void SetCloudWatchLoggingOptions(const CloudWatchLoggingOptions &value)
const RedshiftRetryOptions & GetRetryOptions() const
RedshiftDestinationUpdate & WithRoleARN(const Aws::String &value)
RedshiftDestinationUpdate & WithCopyCommand(const CopyCommand &value)
RedshiftDestinationUpdate & WithUsername(const char *value)
void SetS3Update(const S3DestinationUpdate &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RedshiftDestinationUpdate & WithS3Update(const S3DestinationUpdate &value)
RedshiftDestinationUpdate & WithPassword(const char *value)
RedshiftDestinationUpdate & WithS3Update(S3DestinationUpdate &&value)
JSON (JavaScript Object Notation).
RedshiftDestinationUpdate & WithUsername(Aws::String &&value)
RedshiftDestinationUpdate & WithClusterJDBCURL(const Aws::String &value)