AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RedshiftTarget.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/UpsertRedshiftTargetOptions.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_GLUE_API RedshiftTarget() = default;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 RedshiftTarget& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
59 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
60 template<typename InputsT = Aws::Vector<Aws::String>>
61 void SetInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
62 template<typename InputsT = Aws::Vector<Aws::String>>
63 RedshiftTarget& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
64 template<typename InputsT = Aws::String>
65 RedshiftTarget& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
67
69
72 inline const Aws::String& GetDatabase() const { return m_database; }
73 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
74 template<typename DatabaseT = Aws::String>
75 void SetDatabase(DatabaseT&& value) { m_databaseHasBeenSet = true; m_database = std::forward<DatabaseT>(value); }
76 template<typename DatabaseT = Aws::String>
77 RedshiftTarget& WithDatabase(DatabaseT&& value) { SetDatabase(std::forward<DatabaseT>(value)); return *this;}
79
81
84 inline const Aws::String& GetTable() const { return m_table; }
85 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
86 template<typename TableT = Aws::String>
87 void SetTable(TableT&& value) { m_tableHasBeenSet = true; m_table = std::forward<TableT>(value); }
88 template<typename TableT = Aws::String>
89 RedshiftTarget& WithTable(TableT&& value) { SetTable(std::forward<TableT>(value)); return *this;}
91
93
97 inline const Aws::String& GetRedshiftTmpDir() const { return m_redshiftTmpDir; }
98 inline bool RedshiftTmpDirHasBeenSet() const { return m_redshiftTmpDirHasBeenSet; }
99 template<typename RedshiftTmpDirT = Aws::String>
100 void SetRedshiftTmpDir(RedshiftTmpDirT&& value) { m_redshiftTmpDirHasBeenSet = true; m_redshiftTmpDir = std::forward<RedshiftTmpDirT>(value); }
101 template<typename RedshiftTmpDirT = Aws::String>
102 RedshiftTarget& WithRedshiftTmpDir(RedshiftTmpDirT&& value) { SetRedshiftTmpDir(std::forward<RedshiftTmpDirT>(value)); return *this;}
104
106
109 inline const Aws::String& GetTmpDirIAMRole() const { return m_tmpDirIAMRole; }
110 inline bool TmpDirIAMRoleHasBeenSet() const { return m_tmpDirIAMRoleHasBeenSet; }
111 template<typename TmpDirIAMRoleT = Aws::String>
112 void SetTmpDirIAMRole(TmpDirIAMRoleT&& value) { m_tmpDirIAMRoleHasBeenSet = true; m_tmpDirIAMRole = std::forward<TmpDirIAMRoleT>(value); }
113 template<typename TmpDirIAMRoleT = Aws::String>
114 RedshiftTarget& WithTmpDirIAMRole(TmpDirIAMRoleT&& value) { SetTmpDirIAMRole(std::forward<TmpDirIAMRoleT>(value)); return *this;}
116
118
122 inline const UpsertRedshiftTargetOptions& GetUpsertRedshiftOptions() const { return m_upsertRedshiftOptions; }
123 inline bool UpsertRedshiftOptionsHasBeenSet() const { return m_upsertRedshiftOptionsHasBeenSet; }
124 template<typename UpsertRedshiftOptionsT = UpsertRedshiftTargetOptions>
125 void SetUpsertRedshiftOptions(UpsertRedshiftOptionsT&& value) { m_upsertRedshiftOptionsHasBeenSet = true; m_upsertRedshiftOptions = std::forward<UpsertRedshiftOptionsT>(value); }
126 template<typename UpsertRedshiftOptionsT = UpsertRedshiftTargetOptions>
127 RedshiftTarget& WithUpsertRedshiftOptions(UpsertRedshiftOptionsT&& value) { SetUpsertRedshiftOptions(std::forward<UpsertRedshiftOptionsT>(value)); return *this;}
129 private:
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
135 bool m_inputsHasBeenSet = false;
136
137 Aws::String m_database;
138 bool m_databaseHasBeenSet = false;
139
140 Aws::String m_table;
141 bool m_tableHasBeenSet = false;
142
143 Aws::String m_redshiftTmpDir;
144 bool m_redshiftTmpDirHasBeenSet = false;
145
146 Aws::String m_tmpDirIAMRole;
147 bool m_tmpDirIAMRoleHasBeenSet = false;
148
149 UpsertRedshiftTargetOptions m_upsertRedshiftOptions;
150 bool m_upsertRedshiftOptionsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace Glue
155} // namespace Aws
const Aws::String & GetTmpDirIAMRole() const
RedshiftTarget & WithDatabase(DatabaseT &&value)
RedshiftTarget & WithName(NameT &&value)
void SetUpsertRedshiftOptions(UpsertRedshiftOptionsT &&value)
RedshiftTarget & WithInputs(InputsT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API RedshiftTarget()=default
const Aws::Vector< Aws::String > & GetInputs() const
const Aws::String & GetTable() const
RedshiftTarget & AddInputs(InputsT &&value)
AWS_GLUE_API RedshiftTarget(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
void SetInputs(InputsT &&value)
const Aws::String & GetDatabase() const
void SetTmpDirIAMRole(TmpDirIAMRoleT &&value)
const UpsertRedshiftTargetOptions & GetUpsertRedshiftOptions() const
const Aws::String & GetRedshiftTmpDir() const
AWS_GLUE_API RedshiftTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
RedshiftTarget & WithTmpDirIAMRole(TmpDirIAMRoleT &&value)
RedshiftTarget & WithUpsertRedshiftOptions(UpsertRedshiftOptionsT &&value)
RedshiftTarget & WithRedshiftTmpDir(RedshiftTmpDirT &&value)
RedshiftTarget & WithTable(TableT &&value)
void SetRedshiftTmpDir(RedshiftTmpDirT &&value)
void SetDatabase(DatabaseT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue