AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RedshiftTarget.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/UpsertRedshiftTargetOptions.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
30 public:
31 AWS_GLUE_API RedshiftTarget() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 RedshiftTarget& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
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) {
62 m_inputsHasBeenSet = true;
63 m_inputs = std::forward<InputsT>(value);
64 }
65 template <typename InputsT = Aws::Vector<Aws::String>>
66 RedshiftTarget& WithInputs(InputsT&& value) {
67 SetInputs(std::forward<InputsT>(value));
68 return *this;
69 }
70 template <typename InputsT = Aws::String>
71 RedshiftTarget& AddInputs(InputsT&& value) {
72 m_inputsHasBeenSet = true;
73 m_inputs.emplace_back(std::forward<InputsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDatabase() const { return m_database; }
83 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
84 template <typename DatabaseT = Aws::String>
85 void SetDatabase(DatabaseT&& value) {
86 m_databaseHasBeenSet = true;
87 m_database = std::forward<DatabaseT>(value);
88 }
89 template <typename DatabaseT = Aws::String>
90 RedshiftTarget& WithDatabase(DatabaseT&& value) {
91 SetDatabase(std::forward<DatabaseT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetTable() const { return m_table; }
101 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
102 template <typename TableT = Aws::String>
103 void SetTable(TableT&& value) {
104 m_tableHasBeenSet = true;
105 m_table = std::forward<TableT>(value);
106 }
107 template <typename TableT = Aws::String>
108 RedshiftTarget& WithTable(TableT&& value) {
109 SetTable(std::forward<TableT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetRedshiftTmpDir() const { return m_redshiftTmpDir; }
120 inline bool RedshiftTmpDirHasBeenSet() const { return m_redshiftTmpDirHasBeenSet; }
121 template <typename RedshiftTmpDirT = Aws::String>
122 void SetRedshiftTmpDir(RedshiftTmpDirT&& value) {
123 m_redshiftTmpDirHasBeenSet = true;
124 m_redshiftTmpDir = std::forward<RedshiftTmpDirT>(value);
125 }
126 template <typename RedshiftTmpDirT = Aws::String>
127 RedshiftTarget& WithRedshiftTmpDir(RedshiftTmpDirT&& value) {
128 SetRedshiftTmpDir(std::forward<RedshiftTmpDirT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetTmpDirIAMRole() const { return m_tmpDirIAMRole; }
138 inline bool TmpDirIAMRoleHasBeenSet() const { return m_tmpDirIAMRoleHasBeenSet; }
139 template <typename TmpDirIAMRoleT = Aws::String>
140 void SetTmpDirIAMRole(TmpDirIAMRoleT&& value) {
141 m_tmpDirIAMRoleHasBeenSet = true;
142 m_tmpDirIAMRole = std::forward<TmpDirIAMRoleT>(value);
143 }
144 template <typename TmpDirIAMRoleT = Aws::String>
145 RedshiftTarget& WithTmpDirIAMRole(TmpDirIAMRoleT&& value) {
146 SetTmpDirIAMRole(std::forward<TmpDirIAMRoleT>(value));
147 return *this;
148 }
150
152
156 inline const UpsertRedshiftTargetOptions& GetUpsertRedshiftOptions() const { return m_upsertRedshiftOptions; }
157 inline bool UpsertRedshiftOptionsHasBeenSet() const { return m_upsertRedshiftOptionsHasBeenSet; }
158 template <typename UpsertRedshiftOptionsT = UpsertRedshiftTargetOptions>
159 void SetUpsertRedshiftOptions(UpsertRedshiftOptionsT&& value) {
160 m_upsertRedshiftOptionsHasBeenSet = true;
161 m_upsertRedshiftOptions = std::forward<UpsertRedshiftOptionsT>(value);
162 }
163 template <typename UpsertRedshiftOptionsT = UpsertRedshiftTargetOptions>
164 RedshiftTarget& WithUpsertRedshiftOptions(UpsertRedshiftOptionsT&& value) {
165 SetUpsertRedshiftOptions(std::forward<UpsertRedshiftOptionsT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_name;
171
173
174 Aws::String m_database;
175
176 Aws::String m_table;
177
178 Aws::String m_redshiftTmpDir;
179
180 Aws::String m_tmpDirIAMRole;
181
182 UpsertRedshiftTargetOptions m_upsertRedshiftOptions;
183 bool m_nameHasBeenSet = false;
184 bool m_inputsHasBeenSet = false;
185 bool m_databaseHasBeenSet = false;
186 bool m_tableHasBeenSet = false;
187 bool m_redshiftTmpDirHasBeenSet = false;
188 bool m_tmpDirIAMRoleHasBeenSet = false;
189 bool m_upsertRedshiftOptionsHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace Glue
194} // 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