/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies a target that uses Amazon Redshift.See Also:
AWS
* API Reference
The name of the data target.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the data target.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the data target.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the data target.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the data target.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the data target.
*/ inline RedshiftTarget& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the data target.
*/ inline RedshiftTarget& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the data target.
*/ inline RedshiftTarget& WithName(const char* value) { SetName(value); return *this;} /** *The nodes that are inputs to the data target.
*/ inline const Aws::VectorThe nodes that are inputs to the data target.
*/ inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; } /** *The nodes that are inputs to the data target.
*/ inline void SetInputs(const Aws::VectorThe nodes that are inputs to the data target.
*/ inline void SetInputs(Aws::VectorThe nodes that are inputs to the data target.
*/ inline RedshiftTarget& WithInputs(const Aws::VectorThe nodes that are inputs to the data target.
*/ inline RedshiftTarget& WithInputs(Aws::VectorThe nodes that are inputs to the data target.
*/ inline RedshiftTarget& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *The nodes that are inputs to the data target.
*/ inline RedshiftTarget& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; } /** *The nodes that are inputs to the data target.
*/ inline RedshiftTarget& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *The name of the database to write to.
*/ inline const Aws::String& GetDatabase() const{ return m_database; } /** *The name of the database to write to.
*/ inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; } /** *The name of the database to write to.
*/ inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; } /** *The name of the database to write to.
*/ inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); } /** *The name of the database to write to.
*/ inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); } /** *The name of the database to write to.
*/ inline RedshiftTarget& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;} /** *The name of the database to write to.
*/ inline RedshiftTarget& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;} /** *The name of the database to write to.
*/ inline RedshiftTarget& WithDatabase(const char* value) { SetDatabase(value); return *this;} /** *The name of the table in the database to write to.
*/ inline const Aws::String& GetTable() const{ return m_table; } /** *The name of the table in the database to write to.
*/ inline bool TableHasBeenSet() const { return m_tableHasBeenSet; } /** *The name of the table in the database to write to.
*/ inline void SetTable(const Aws::String& value) { m_tableHasBeenSet = true; m_table = value; } /** *The name of the table in the database to write to.
*/ inline void SetTable(Aws::String&& value) { m_tableHasBeenSet = true; m_table = std::move(value); } /** *The name of the table in the database to write to.
*/ inline void SetTable(const char* value) { m_tableHasBeenSet = true; m_table.assign(value); } /** *The name of the table in the database to write to.
*/ inline RedshiftTarget& WithTable(const Aws::String& value) { SetTable(value); return *this;} /** *The name of the table in the database to write to.
*/ inline RedshiftTarget& WithTable(Aws::String&& value) { SetTable(std::move(value)); return *this;} /** *The name of the table in the database to write to.
*/ inline RedshiftTarget& WithTable(const char* value) { SetTable(value); return *this;} /** *The Amazon S3 path where temporary data can be staged when copying out of the * database.
*/ inline const Aws::String& GetRedshiftTmpDir() const{ return m_redshiftTmpDir; } /** *The Amazon S3 path where temporary data can be staged when copying out of the * database.
*/ inline bool RedshiftTmpDirHasBeenSet() const { return m_redshiftTmpDirHasBeenSet; } /** *The Amazon S3 path where temporary data can be staged when copying out of the * database.
*/ inline void SetRedshiftTmpDir(const Aws::String& value) { m_redshiftTmpDirHasBeenSet = true; m_redshiftTmpDir = value; } /** *The Amazon S3 path where temporary data can be staged when copying out of the * database.
*/ inline void SetRedshiftTmpDir(Aws::String&& value) { m_redshiftTmpDirHasBeenSet = true; m_redshiftTmpDir = std::move(value); } /** *The Amazon S3 path where temporary data can be staged when copying out of the * database.
*/ inline void SetRedshiftTmpDir(const char* value) { m_redshiftTmpDirHasBeenSet = true; m_redshiftTmpDir.assign(value); } /** *The Amazon S3 path where temporary data can be staged when copying out of the * database.
*/ inline RedshiftTarget& WithRedshiftTmpDir(const Aws::String& value) { SetRedshiftTmpDir(value); return *this;} /** *The Amazon S3 path where temporary data can be staged when copying out of the * database.
*/ inline RedshiftTarget& WithRedshiftTmpDir(Aws::String&& value) { SetRedshiftTmpDir(std::move(value)); return *this;} /** *The Amazon S3 path where temporary data can be staged when copying out of the * database.
*/ inline RedshiftTarget& WithRedshiftTmpDir(const char* value) { SetRedshiftTmpDir(value); return *this;} /** *The IAM role with permissions.
*/ inline const Aws::String& GetTmpDirIAMRole() const{ return m_tmpDirIAMRole; } /** *The IAM role with permissions.
*/ inline bool TmpDirIAMRoleHasBeenSet() const { return m_tmpDirIAMRoleHasBeenSet; } /** *The IAM role with permissions.
*/ inline void SetTmpDirIAMRole(const Aws::String& value) { m_tmpDirIAMRoleHasBeenSet = true; m_tmpDirIAMRole = value; } /** *The IAM role with permissions.
*/ inline void SetTmpDirIAMRole(Aws::String&& value) { m_tmpDirIAMRoleHasBeenSet = true; m_tmpDirIAMRole = std::move(value); } /** *The IAM role with permissions.
*/ inline void SetTmpDirIAMRole(const char* value) { m_tmpDirIAMRoleHasBeenSet = true; m_tmpDirIAMRole.assign(value); } /** *The IAM role with permissions.
*/ inline RedshiftTarget& WithTmpDirIAMRole(const Aws::String& value) { SetTmpDirIAMRole(value); return *this;} /** *The IAM role with permissions.
*/ inline RedshiftTarget& WithTmpDirIAMRole(Aws::String&& value) { SetTmpDirIAMRole(std::move(value)); return *this;} /** *The IAM role with permissions.
*/ inline RedshiftTarget& WithTmpDirIAMRole(const char* value) { SetTmpDirIAMRole(value); return *this;} /** *The set of options to configure an upsert operation when writing to a * Redshift target.
*/ inline const UpsertRedshiftTargetOptions& GetUpsertRedshiftOptions() const{ return m_upsertRedshiftOptions; } /** *The set of options to configure an upsert operation when writing to a * Redshift target.
*/ inline bool UpsertRedshiftOptionsHasBeenSet() const { return m_upsertRedshiftOptionsHasBeenSet; } /** *The set of options to configure an upsert operation when writing to a * Redshift target.
*/ inline void SetUpsertRedshiftOptions(const UpsertRedshiftTargetOptions& value) { m_upsertRedshiftOptionsHasBeenSet = true; m_upsertRedshiftOptions = value; } /** *The set of options to configure an upsert operation when writing to a * Redshift target.
*/ inline void SetUpsertRedshiftOptions(UpsertRedshiftTargetOptions&& value) { m_upsertRedshiftOptionsHasBeenSet = true; m_upsertRedshiftOptions = std::move(value); } /** *The set of options to configure an upsert operation when writing to a * Redshift target.
*/ inline RedshiftTarget& WithUpsertRedshiftOptions(const UpsertRedshiftTargetOptions& value) { SetUpsertRedshiftOptions(value); return *this;} /** *The set of options to configure an upsert operation when writing to a * Redshift target.
*/ inline RedshiftTarget& WithUpsertRedshiftOptions(UpsertRedshiftTargetOptions&& value) { SetUpsertRedshiftOptions(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector