AWS SDK for C++  0.12.9
AWS SDK for C++
RedshiftMetadata.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace MachineLearning
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  RedshiftMetadata& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
46 
47  inline const RedshiftDatabase& GetRedshiftDatabase() const{ return m_redshiftDatabase; }
48 
49 
50  inline void SetRedshiftDatabase(const RedshiftDatabase& value) { m_redshiftDatabaseHasBeenSet = true; m_redshiftDatabase = value; }
51 
52 
53  inline void SetRedshiftDatabase(RedshiftDatabase&& value) { m_redshiftDatabaseHasBeenSet = true; m_redshiftDatabase = value; }
54 
55 
56  inline RedshiftMetadata& WithRedshiftDatabase(const RedshiftDatabase& value) { SetRedshiftDatabase(value); return *this;}
57 
58 
59  inline RedshiftMetadata& WithRedshiftDatabase(RedshiftDatabase&& value) { SetRedshiftDatabase(value); return *this;}
60 
61 
62  inline const Aws::String& GetDatabaseUserName() const{ return m_databaseUserName; }
63 
64 
65  inline void SetDatabaseUserName(const Aws::String& value) { m_databaseUserNameHasBeenSet = true; m_databaseUserName = value; }
66 
67 
68  inline void SetDatabaseUserName(Aws::String&& value) { m_databaseUserNameHasBeenSet = true; m_databaseUserName = value; }
69 
70 
71  inline void SetDatabaseUserName(const char* value) { m_databaseUserNameHasBeenSet = true; m_databaseUserName.assign(value); }
72 
73 
74  inline RedshiftMetadata& WithDatabaseUserName(const Aws::String& value) { SetDatabaseUserName(value); return *this;}
75 
76 
77  inline RedshiftMetadata& WithDatabaseUserName(Aws::String&& value) { SetDatabaseUserName(value); return *this;}
78 
79 
80  inline RedshiftMetadata& WithDatabaseUserName(const char* value) { SetDatabaseUserName(value); return *this;}
81 
86  inline const Aws::String& GetSelectSqlQuery() const{ return m_selectSqlQuery; }
87 
92  inline void SetSelectSqlQuery(const Aws::String& value) { m_selectSqlQueryHasBeenSet = true; m_selectSqlQuery = value; }
93 
98  inline void SetSelectSqlQuery(Aws::String&& value) { m_selectSqlQueryHasBeenSet = true; m_selectSqlQuery = value; }
99 
104  inline void SetSelectSqlQuery(const char* value) { m_selectSqlQueryHasBeenSet = true; m_selectSqlQuery.assign(value); }
105 
110  inline RedshiftMetadata& WithSelectSqlQuery(const Aws::String& value) { SetSelectSqlQuery(value); return *this;}
111 
116  inline RedshiftMetadata& WithSelectSqlQuery(Aws::String&& value) { SetSelectSqlQuery(value); return *this;}
117 
122  inline RedshiftMetadata& WithSelectSqlQuery(const char* value) { SetSelectSqlQuery(value); return *this;}
123 
124  private:
125  RedshiftDatabase m_redshiftDatabase;
126  bool m_redshiftDatabaseHasBeenSet;
127  Aws::String m_databaseUserName;
128  bool m_databaseUserNameHasBeenSet;
129  Aws::String m_selectSqlQuery;
130  bool m_selectSqlQueryHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace MachineLearning
135 } // namespace Aws
RedshiftMetadata & WithRedshiftDatabase(const RedshiftDatabase &value)
void SetRedshiftDatabase(RedshiftDatabase &&value)
void SetSelectSqlQuery(const Aws::String &value)
void SetDatabaseUserName(const Aws::String &value)
const RedshiftDatabase & GetRedshiftDatabase() const
RedshiftMetadata & WithSelectSqlQuery(const char *value)
void SetRedshiftDatabase(const RedshiftDatabase &value)
const Aws::String & GetDatabaseUserName() const
RedshiftMetadata & WithDatabaseUserName(const Aws::String &value)
RedshiftMetadata & WithSelectSqlQuery(const Aws::String &value)
RedshiftMetadata & WithDatabaseUserName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetSelectSqlQuery() const
RedshiftMetadata & WithDatabaseUserName(const char *value)
RedshiftMetadata & WithSelectSqlQuery(Aws::String &&value)
#define AWS_MACHINELEARNING_API
RedshiftMetadata & WithRedshiftDatabase(RedshiftDatabase &&value)
JSON (JavaScript Object Notation).