AWS SDK for C++  0.12.9
AWS SDK for C++
RedshiftDataSpec.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 Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace MachineLearning
31 {
32 namespace Model
33 {
34 
40  {
41  public:
44  RedshiftDataSpec& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
51  inline const RedshiftDatabase& GetDatabaseInformation() const{ return m_databaseInformation; }
52 
57  inline void SetDatabaseInformation(const RedshiftDatabase& value) { m_databaseInformationHasBeenSet = true; m_databaseInformation = value; }
58 
63  inline void SetDatabaseInformation(RedshiftDatabase&& value) { m_databaseInformationHasBeenSet = true; m_databaseInformation = value; }
64 
69  inline RedshiftDataSpec& WithDatabaseInformation(const RedshiftDatabase& value) { SetDatabaseInformation(value); return *this;}
70 
75  inline RedshiftDataSpec& WithDatabaseInformation(RedshiftDatabase&& value) { SetDatabaseInformation(value); return *this;}
76 
81  inline const Aws::String& GetSelectSqlQuery() const{ return m_selectSqlQuery; }
82 
87  inline void SetSelectSqlQuery(const Aws::String& value) { m_selectSqlQueryHasBeenSet = true; m_selectSqlQuery = value; }
88 
93  inline void SetSelectSqlQuery(Aws::String&& value) { m_selectSqlQueryHasBeenSet = true; m_selectSqlQuery = value; }
94 
99  inline void SetSelectSqlQuery(const char* value) { m_selectSqlQueryHasBeenSet = true; m_selectSqlQuery.assign(value); }
100 
105  inline RedshiftDataSpec& WithSelectSqlQuery(const Aws::String& value) { SetSelectSqlQuery(value); return *this;}
106 
111  inline RedshiftDataSpec& WithSelectSqlQuery(Aws::String&& value) { SetSelectSqlQuery(value); return *this;}
112 
117  inline RedshiftDataSpec& WithSelectSqlQuery(const char* value) { SetSelectSqlQuery(value); return *this;}
118 
123  inline const RedshiftDatabaseCredentials& GetDatabaseCredentials() const{ return m_databaseCredentials; }
124 
129  inline void SetDatabaseCredentials(const RedshiftDatabaseCredentials& value) { m_databaseCredentialsHasBeenSet = true; m_databaseCredentials = value; }
130 
135  inline void SetDatabaseCredentials(RedshiftDatabaseCredentials&& value) { m_databaseCredentialsHasBeenSet = true; m_databaseCredentials = value; }
136 
141  inline RedshiftDataSpec& WithDatabaseCredentials(const RedshiftDatabaseCredentials& value) { SetDatabaseCredentials(value); return *this;}
142 
147  inline RedshiftDataSpec& WithDatabaseCredentials(RedshiftDatabaseCredentials&& value) { SetDatabaseCredentials(value); return *this;}
148 
153  inline const Aws::String& GetS3StagingLocation() const{ return m_s3StagingLocation; }
154 
159  inline void SetS3StagingLocation(const Aws::String& value) { m_s3StagingLocationHasBeenSet = true; m_s3StagingLocation = value; }
160 
165  inline void SetS3StagingLocation(Aws::String&& value) { m_s3StagingLocationHasBeenSet = true; m_s3StagingLocation = value; }
166 
171  inline void SetS3StagingLocation(const char* value) { m_s3StagingLocationHasBeenSet = true; m_s3StagingLocation.assign(value); }
172 
177  inline RedshiftDataSpec& WithS3StagingLocation(const Aws::String& value) { SetS3StagingLocation(value); return *this;}
178 
183  inline RedshiftDataSpec& WithS3StagingLocation(Aws::String&& value) { SetS3StagingLocation(value); return *this;}
184 
189  inline RedshiftDataSpec& WithS3StagingLocation(const char* value) { SetS3StagingLocation(value); return *this;}
190 
252  inline const Aws::String& GetDataRearrangement() const{ return m_dataRearrangement; }
253 
315  inline void SetDataRearrangement(const Aws::String& value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement = value; }
316 
378  inline void SetDataRearrangement(Aws::String&& value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement = value; }
379 
441  inline void SetDataRearrangement(const char* value) { m_dataRearrangementHasBeenSet = true; m_dataRearrangement.assign(value); }
442 
504  inline RedshiftDataSpec& WithDataRearrangement(const Aws::String& value) { SetDataRearrangement(value); return *this;}
505 
567  inline RedshiftDataSpec& WithDataRearrangement(Aws::String&& value) { SetDataRearrangement(value); return *this;}
568 
630  inline RedshiftDataSpec& WithDataRearrangement(const char* value) { SetDataRearrangement(value); return *this;}
631 
652  inline const Aws::String& GetDataSchema() const{ return m_dataSchema; }
653 
674  inline void SetDataSchema(const Aws::String& value) { m_dataSchemaHasBeenSet = true; m_dataSchema = value; }
675 
696  inline void SetDataSchema(Aws::String&& value) { m_dataSchemaHasBeenSet = true; m_dataSchema = value; }
697 
718  inline void SetDataSchema(const char* value) { m_dataSchemaHasBeenSet = true; m_dataSchema.assign(value); }
719 
740  inline RedshiftDataSpec& WithDataSchema(const Aws::String& value) { SetDataSchema(value); return *this;}
741 
762  inline RedshiftDataSpec& WithDataSchema(Aws::String&& value) { SetDataSchema(value); return *this;}
763 
784  inline RedshiftDataSpec& WithDataSchema(const char* value) { SetDataSchema(value); return *this;}
785 
790  inline const Aws::String& GetDataSchemaUri() const{ return m_dataSchemaUri; }
791 
796  inline void SetDataSchemaUri(const Aws::String& value) { m_dataSchemaUriHasBeenSet = true; m_dataSchemaUri = value; }
797 
802  inline void SetDataSchemaUri(Aws::String&& value) { m_dataSchemaUriHasBeenSet = true; m_dataSchemaUri = value; }
803 
808  inline void SetDataSchemaUri(const char* value) { m_dataSchemaUriHasBeenSet = true; m_dataSchemaUri.assign(value); }
809 
814  inline RedshiftDataSpec& WithDataSchemaUri(const Aws::String& value) { SetDataSchemaUri(value); return *this;}
815 
820  inline RedshiftDataSpec& WithDataSchemaUri(Aws::String&& value) { SetDataSchemaUri(value); return *this;}
821 
826  inline RedshiftDataSpec& WithDataSchemaUri(const char* value) { SetDataSchemaUri(value); return *this;}
827 
828  private:
829  RedshiftDatabase m_databaseInformation;
830  bool m_databaseInformationHasBeenSet;
831  Aws::String m_selectSqlQuery;
832  bool m_selectSqlQueryHasBeenSet;
833  RedshiftDatabaseCredentials m_databaseCredentials;
834  bool m_databaseCredentialsHasBeenSet;
835  Aws::String m_s3StagingLocation;
836  bool m_s3StagingLocationHasBeenSet;
837  Aws::String m_dataRearrangement;
838  bool m_dataRearrangementHasBeenSet;
839  Aws::String m_dataSchema;
840  bool m_dataSchemaHasBeenSet;
841  Aws::String m_dataSchemaUri;
842  bool m_dataSchemaUriHasBeenSet;
843  };
844 
845 } // namespace Model
846 } // namespace MachineLearning
847 } // namespace Aws
void SetDataSchema(const Aws::String &value)
const Aws::String & GetSelectSqlQuery() const
void SetDataRearrangement(const Aws::String &value)
RedshiftDataSpec & WithDatabaseInformation(const RedshiftDatabase &value)
RedshiftDataSpec & WithS3StagingLocation(const char *value)
RedshiftDataSpec & WithS3StagingLocation(Aws::String &&value)
RedshiftDataSpec & WithDataSchema(const char *value)
RedshiftDataSpec & WithDataSchemaUri(const char *value)
RedshiftDataSpec & WithSelectSqlQuery(const char *value)
RedshiftDataSpec & WithDataSchema(Aws::String &&value)
void SetS3StagingLocation(const Aws::String &value)
const Aws::String & GetDataRearrangement() const
RedshiftDataSpec & WithS3StagingLocation(const Aws::String &value)
const RedshiftDatabase & GetDatabaseInformation() const
RedshiftDataSpec & WithDataSchema(const Aws::String &value)
void SetDataSchemaUri(const Aws::String &value)
RedshiftDataSpec & WithDatabaseCredentials(const RedshiftDatabaseCredentials &value)
RedshiftDataSpec & WithDataRearrangement(Aws::String &&value)
RedshiftDataSpec & WithDataSchemaUri(const Aws::String &value)
RedshiftDataSpec & WithDataSchemaUri(Aws::String &&value)
const Aws::String & GetS3StagingLocation() const
void SetDatabaseCredentials(const RedshiftDatabaseCredentials &value)
void SetDatabaseInformation(const RedshiftDatabase &value)
RedshiftDataSpec & WithDatabaseCredentials(RedshiftDatabaseCredentials &&value)
RedshiftDataSpec & WithDataRearrangement(const Aws::String &value)
void SetDatabaseInformation(RedshiftDatabase &&value)
const Aws::String & GetDataSchemaUri() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSelectSqlQuery(const Aws::String &value)
RedshiftDataSpec & WithDataRearrangement(const char *value)
const RedshiftDatabaseCredentials & GetDatabaseCredentials() const
RedshiftDataSpec & WithDatabaseInformation(RedshiftDatabase &&value)
void SetDatabaseCredentials(RedshiftDatabaseCredentials &&value)
RedshiftDataSpec & WithSelectSqlQuery(Aws::String &&value)
#define AWS_MACHINELEARNING_API
JSON (JavaScript Object Notation).
RedshiftDataSpec & WithSelectSqlQuery(const Aws::String &value)