/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MachineLearning
{
namespace Model
{
/**
* Describes the DataSource
details specific to Amazon
* Redshift.
See Also:
AWS
* API Reference
*/
class RedshiftMetadata
{
public:
AWS_MACHINELEARNING_API RedshiftMetadata();
AWS_MACHINELEARNING_API RedshiftMetadata(Aws::Utils::Json::JsonView jsonValue);
AWS_MACHINELEARNING_API RedshiftMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const;
inline const RedshiftDatabase& GetRedshiftDatabase() const{ return m_redshiftDatabase; }
inline bool RedshiftDatabaseHasBeenSet() const { return m_redshiftDatabaseHasBeenSet; }
inline void SetRedshiftDatabase(const RedshiftDatabase& value) { m_redshiftDatabaseHasBeenSet = true; m_redshiftDatabase = value; }
inline void SetRedshiftDatabase(RedshiftDatabase&& value) { m_redshiftDatabaseHasBeenSet = true; m_redshiftDatabase = std::move(value); }
inline RedshiftMetadata& WithRedshiftDatabase(const RedshiftDatabase& value) { SetRedshiftDatabase(value); return *this;}
inline RedshiftMetadata& WithRedshiftDatabase(RedshiftDatabase&& value) { SetRedshiftDatabase(std::move(value)); return *this;}
inline const Aws::String& GetDatabaseUserName() const{ return m_databaseUserName; }
inline bool DatabaseUserNameHasBeenSet() const { return m_databaseUserNameHasBeenSet; }
inline void SetDatabaseUserName(const Aws::String& value) { m_databaseUserNameHasBeenSet = true; m_databaseUserName = value; }
inline void SetDatabaseUserName(Aws::String&& value) { m_databaseUserNameHasBeenSet = true; m_databaseUserName = std::move(value); }
inline void SetDatabaseUserName(const char* value) { m_databaseUserNameHasBeenSet = true; m_databaseUserName.assign(value); }
inline RedshiftMetadata& WithDatabaseUserName(const Aws::String& value) { SetDatabaseUserName(value); return *this;}
inline RedshiftMetadata& WithDatabaseUserName(Aws::String&& value) { SetDatabaseUserName(std::move(value)); return *this;}
inline RedshiftMetadata& WithDatabaseUserName(const char* value) { SetDatabaseUserName(value); return *this;}
/**
* The SQL query that is specified during CreateDataSourceFromRedshift.
* Returns only if Verbose
is true in GetDataSourceInput.
*/
inline const Aws::String& GetSelectSqlQuery() const{ return m_selectSqlQuery; }
/**
* The SQL query that is specified during CreateDataSourceFromRedshift.
* Returns only if Verbose
is true in GetDataSourceInput.
*/
inline bool SelectSqlQueryHasBeenSet() const { return m_selectSqlQueryHasBeenSet; }
/**
* The SQL query that is specified during CreateDataSourceFromRedshift.
* Returns only if Verbose
is true in GetDataSourceInput.
*/
inline void SetSelectSqlQuery(const Aws::String& value) { m_selectSqlQueryHasBeenSet = true; m_selectSqlQuery = value; }
/**
* The SQL query that is specified during CreateDataSourceFromRedshift.
* Returns only if Verbose
is true in GetDataSourceInput.
*/
inline void SetSelectSqlQuery(Aws::String&& value) { m_selectSqlQueryHasBeenSet = true; m_selectSqlQuery = std::move(value); }
/**
* The SQL query that is specified during CreateDataSourceFromRedshift.
* Returns only if Verbose
is true in GetDataSourceInput.
*/
inline void SetSelectSqlQuery(const char* value) { m_selectSqlQueryHasBeenSet = true; m_selectSqlQuery.assign(value); }
/**
* The SQL query that is specified during CreateDataSourceFromRedshift.
* Returns only if Verbose
is true in GetDataSourceInput.
*/
inline RedshiftMetadata& WithSelectSqlQuery(const Aws::String& value) { SetSelectSqlQuery(value); return *this;}
/**
* The SQL query that is specified during CreateDataSourceFromRedshift.
* Returns only if Verbose
is true in GetDataSourceInput.
*/
inline RedshiftMetadata& WithSelectSqlQuery(Aws::String&& value) { SetSelectSqlQuery(std::move(value)); return *this;}
/**
* The SQL query that is specified during CreateDataSourceFromRedshift.
* Returns only if Verbose
is true in GetDataSourceInput.
*/
inline RedshiftMetadata& WithSelectSqlQuery(const char* value) { SetSelectSqlQuery(value); return *this;}
private:
RedshiftDatabase m_redshiftDatabase;
bool m_redshiftDatabaseHasBeenSet = false;
Aws::String m_databaseUserName;
bool m_databaseUserNameHasBeenSet = false;
Aws::String m_selectSqlQuery;
bool m_selectSqlQueryHasBeenSet = false;
};
} // namespace Model
} // namespace MachineLearning
} // namespace Aws