AWS SDK for C++  0.12.9
AWS SDK for C++
CreateDataSourceFromRedshiftRequest.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
20 
21 namespace Aws
22 {
23 namespace MachineLearning
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
42 
46  inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
47 
51  inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
52 
56  inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
57 
61  inline CreateDataSourceFromRedshiftRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
62 
66  inline CreateDataSourceFromRedshiftRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(value); return *this;}
67 
71  inline CreateDataSourceFromRedshiftRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
72 
76  inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
77 
81  inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
82 
86  inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
87 
91  inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
92 
96  inline CreateDataSourceFromRedshiftRequest& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
97 
101  inline CreateDataSourceFromRedshiftRequest& WithDataSourceName(Aws::String&& value) { SetDataSourceName(value); return *this;}
102 
106  inline CreateDataSourceFromRedshiftRequest& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
107 
128  inline const RedshiftDataSpec& GetDataSpec() const{ return m_dataSpec; }
129 
150  inline void SetDataSpec(const RedshiftDataSpec& value) { m_dataSpecHasBeenSet = true; m_dataSpec = value; }
151 
172  inline void SetDataSpec(RedshiftDataSpec&& value) { m_dataSpecHasBeenSet = true; m_dataSpec = value; }
173 
194  inline CreateDataSourceFromRedshiftRequest& WithDataSpec(const RedshiftDataSpec& value) { SetDataSpec(value); return *this;}
195 
216  inline CreateDataSourceFromRedshiftRequest& WithDataSpec(RedshiftDataSpec&& value) { SetDataSpec(value); return *this;}
217 
226  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
227 
236  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
237 
246  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
247 
256  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
257 
266  inline CreateDataSourceFromRedshiftRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
267 
276  inline CreateDataSourceFromRedshiftRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(value); return *this;}
277 
286  inline CreateDataSourceFromRedshiftRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
287 
295  inline bool GetComputeStatistics() const{ return m_computeStatistics; }
296 
304  inline void SetComputeStatistics(bool value) { m_computeStatisticsHasBeenSet = true; m_computeStatistics = value; }
305 
313  inline CreateDataSourceFromRedshiftRequest& WithComputeStatistics(bool value) { SetComputeStatistics(value); return *this;}
314 
315  private:
316  Aws::String m_dataSourceId;
317  bool m_dataSourceIdHasBeenSet;
318  Aws::String m_dataSourceName;
319  bool m_dataSourceNameHasBeenSet;
320  RedshiftDataSpec m_dataSpec;
321  bool m_dataSpecHasBeenSet;
322  Aws::String m_roleARN;
323  bool m_roleARNHasBeenSet;
324  bool m_computeStatistics;
325  bool m_computeStatisticsHasBeenSet;
326  };
327 
328 } // namespace Model
329 } // namespace MachineLearning
330 } // namespace Aws
CreateDataSourceFromRedshiftRequest & WithDataSourceName(const Aws::String &value)
CreateDataSourceFromRedshiftRequest & WithDataSourceId(const char *value)
CreateDataSourceFromRedshiftRequest & WithDataSourceId(Aws::String &&value)
CreateDataSourceFromRedshiftRequest & WithDataSourceName(const char *value)
CreateDataSourceFromRedshiftRequest & WithRoleARN(const char *value)
CreateDataSourceFromRedshiftRequest & WithRoleARN(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateDataSourceFromRedshiftRequest & WithRoleARN(const Aws::String &value)
CreateDataSourceFromRedshiftRequest & WithDataSourceName(Aws::String &&value)
CreateDataSourceFromRedshiftRequest & WithDataSourceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDataSourceFromRedshiftRequest & WithDataSpec(RedshiftDataSpec &&value)
#define AWS_MACHINELEARNING_API
JSON (JavaScript Object Notation).
CreateDataSourceFromRedshiftRequest & WithDataSpec(const RedshiftDataSpec &value)