AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TableInput.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/glue/Glue_EXPORTS.h>
12#include <aws/glue/model/Column.h>
13#include <aws/glue/model/StorageDescriptor.h>
14#include <aws/glue/model/TableIdentifier.h>
15#include <aws/glue/model/ViewDefinitionInput.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Glue {
27namespace Model {
28
35 public:
36 AWS_GLUE_API TableInput() = default;
37 AWS_GLUE_API TableInput(Aws::Utils::Json::JsonView jsonValue);
40
42
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) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
54 TableInput& WithName(NameT&& value) {
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
72 TableInput& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetOwner() const { return m_owner; }
84 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
85 template <typename OwnerT = Aws::String>
86 void SetOwner(OwnerT&& value) {
87 m_ownerHasBeenSet = true;
88 m_owner = std::forward<OwnerT>(value);
89 }
90 template <typename OwnerT = Aws::String>
91 TableInput& WithOwner(OwnerT&& value) {
92 SetOwner(std::forward<OwnerT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetLastAccessTime() const { return m_lastAccessTime; }
102 inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; }
103 template <typename LastAccessTimeT = Aws::Utils::DateTime>
104 void SetLastAccessTime(LastAccessTimeT&& value) {
105 m_lastAccessTimeHasBeenSet = true;
106 m_lastAccessTime = std::forward<LastAccessTimeT>(value);
107 }
108 template <typename LastAccessTimeT = Aws::Utils::DateTime>
109 TableInput& WithLastAccessTime(LastAccessTimeT&& value) {
110 SetLastAccessTime(std::forward<LastAccessTimeT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetLastAnalyzedTime() const { return m_lastAnalyzedTime; }
120 inline bool LastAnalyzedTimeHasBeenSet() const { return m_lastAnalyzedTimeHasBeenSet; }
121 template <typename LastAnalyzedTimeT = Aws::Utils::DateTime>
122 void SetLastAnalyzedTime(LastAnalyzedTimeT&& value) {
123 m_lastAnalyzedTimeHasBeenSet = true;
124 m_lastAnalyzedTime = std::forward<LastAnalyzedTimeT>(value);
125 }
126 template <typename LastAnalyzedTimeT = Aws::Utils::DateTime>
127 TableInput& WithLastAnalyzedTime(LastAnalyzedTimeT&& value) {
128 SetLastAnalyzedTime(std::forward<LastAnalyzedTimeT>(value));
129 return *this;
130 }
132
134
137 inline int GetRetention() const { return m_retention; }
138 inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; }
139 inline void SetRetention(int value) {
140 m_retentionHasBeenSet = true;
141 m_retention = value;
142 }
143 inline TableInput& WithRetention(int value) {
144 SetRetention(value);
145 return *this;
146 }
148
150
154 inline const StorageDescriptor& GetStorageDescriptor() const { return m_storageDescriptor; }
155 inline bool StorageDescriptorHasBeenSet() const { return m_storageDescriptorHasBeenSet; }
156 template <typename StorageDescriptorT = StorageDescriptor>
157 void SetStorageDescriptor(StorageDescriptorT&& value) {
158 m_storageDescriptorHasBeenSet = true;
159 m_storageDescriptor = std::forward<StorageDescriptorT>(value);
160 }
161 template <typename StorageDescriptorT = StorageDescriptor>
162 TableInput& WithStorageDescriptor(StorageDescriptorT&& value) {
163 SetStorageDescriptor(std::forward<StorageDescriptorT>(value));
164 return *this;
165 }
167
169
176 inline const Aws::Vector<Column>& GetPartitionKeys() const { return m_partitionKeys; }
177 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
178 template <typename PartitionKeysT = Aws::Vector<Column>>
179 void SetPartitionKeys(PartitionKeysT&& value) {
180 m_partitionKeysHasBeenSet = true;
181 m_partitionKeys = std::forward<PartitionKeysT>(value);
182 }
183 template <typename PartitionKeysT = Aws::Vector<Column>>
184 TableInput& WithPartitionKeys(PartitionKeysT&& value) {
185 SetPartitionKeys(std::forward<PartitionKeysT>(value));
186 return *this;
187 }
188 template <typename PartitionKeysT = Column>
189 TableInput& AddPartitionKeys(PartitionKeysT&& value) {
190 m_partitionKeysHasBeenSet = true;
191 m_partitionKeys.emplace_back(std::forward<PartitionKeysT>(value));
192 return *this;
193 }
195
197
202 inline const Aws::String& GetViewOriginalText() const { return m_viewOriginalText; }
203 inline bool ViewOriginalTextHasBeenSet() const { return m_viewOriginalTextHasBeenSet; }
204 template <typename ViewOriginalTextT = Aws::String>
205 void SetViewOriginalText(ViewOriginalTextT&& value) {
206 m_viewOriginalTextHasBeenSet = true;
207 m_viewOriginalText = std::forward<ViewOriginalTextT>(value);
208 }
209 template <typename ViewOriginalTextT = Aws::String>
210 TableInput& WithViewOriginalText(ViewOriginalTextT&& value) {
211 SetViewOriginalText(std::forward<ViewOriginalTextT>(value));
212 return *this;
213 }
215
217
221 inline const Aws::String& GetViewExpandedText() const { return m_viewExpandedText; }
222 inline bool ViewExpandedTextHasBeenSet() const { return m_viewExpandedTextHasBeenSet; }
223 template <typename ViewExpandedTextT = Aws::String>
224 void SetViewExpandedText(ViewExpandedTextT&& value) {
225 m_viewExpandedTextHasBeenSet = true;
226 m_viewExpandedText = std::forward<ViewExpandedTextT>(value);
227 }
228 template <typename ViewExpandedTextT = Aws::String>
229 TableInput& WithViewExpandedText(ViewExpandedTextT&& value) {
230 SetViewExpandedText(std::forward<ViewExpandedTextT>(value));
231 return *this;
232 }
234
236
244 inline const Aws::String& GetTableType() const { return m_tableType; }
245 inline bool TableTypeHasBeenSet() const { return m_tableTypeHasBeenSet; }
246 template <typename TableTypeT = Aws::String>
247 void SetTableType(TableTypeT&& value) {
248 m_tableTypeHasBeenSet = true;
249 m_tableType = std::forward<TableTypeT>(value);
250 }
251 template <typename TableTypeT = Aws::String>
252 TableInput& WithTableType(TableTypeT&& value) {
253 SetTableType(std::forward<TableTypeT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
263 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
264 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
265 void SetParameters(ParametersT&& value) {
266 m_parametersHasBeenSet = true;
267 m_parameters = std::forward<ParametersT>(value);
268 }
269 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
270 TableInput& WithParameters(ParametersT&& value) {
271 SetParameters(std::forward<ParametersT>(value));
272 return *this;
273 }
274 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
275 TableInput& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
276 m_parametersHasBeenSet = true;
277 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
278 return *this;
279 }
281
283
287 inline const TableIdentifier& GetTargetTable() const { return m_targetTable; }
288 inline bool TargetTableHasBeenSet() const { return m_targetTableHasBeenSet; }
289 template <typename TargetTableT = TableIdentifier>
290 void SetTargetTable(TargetTableT&& value) {
291 m_targetTableHasBeenSet = true;
292 m_targetTable = std::forward<TargetTableT>(value);
293 }
294 template <typename TargetTableT = TableIdentifier>
295 TableInput& WithTargetTable(TargetTableT&& value) {
296 SetTargetTable(std::forward<TargetTableT>(value));
297 return *this;
298 }
300
302
306 inline const ViewDefinitionInput& GetViewDefinition() const { return m_viewDefinition; }
307 inline bool ViewDefinitionHasBeenSet() const { return m_viewDefinitionHasBeenSet; }
308 template <typename ViewDefinitionT = ViewDefinitionInput>
309 void SetViewDefinition(ViewDefinitionT&& value) {
310 m_viewDefinitionHasBeenSet = true;
311 m_viewDefinition = std::forward<ViewDefinitionT>(value);
312 }
313 template <typename ViewDefinitionT = ViewDefinitionInput>
314 TableInput& WithViewDefinition(ViewDefinitionT&& value) {
315 SetViewDefinition(std::forward<ViewDefinitionT>(value));
316 return *this;
317 }
319 private:
320 Aws::String m_name;
321
322 Aws::String m_description;
323
324 Aws::String m_owner;
325
326 Aws::Utils::DateTime m_lastAccessTime{};
327
328 Aws::Utils::DateTime m_lastAnalyzedTime{};
329
330 int m_retention{0};
331
332 StorageDescriptor m_storageDescriptor;
333
334 Aws::Vector<Column> m_partitionKeys;
335
336 Aws::String m_viewOriginalText;
337
338 Aws::String m_viewExpandedText;
339
340 Aws::String m_tableType;
341
343
344 TableIdentifier m_targetTable;
345
346 ViewDefinitionInput m_viewDefinition;
347 bool m_nameHasBeenSet = false;
348 bool m_descriptionHasBeenSet = false;
349 bool m_ownerHasBeenSet = false;
350 bool m_lastAccessTimeHasBeenSet = false;
351 bool m_lastAnalyzedTimeHasBeenSet = false;
352 bool m_retentionHasBeenSet = false;
353 bool m_storageDescriptorHasBeenSet = false;
354 bool m_partitionKeysHasBeenSet = false;
355 bool m_viewOriginalTextHasBeenSet = false;
356 bool m_viewExpandedTextHasBeenSet = false;
357 bool m_tableTypeHasBeenSet = false;
358 bool m_parametersHasBeenSet = false;
359 bool m_targetTableHasBeenSet = false;
360 bool m_viewDefinitionHasBeenSet = false;
361};
362
363} // namespace Model
364} // namespace Glue
365} // namespace Aws
TableInput & WithPartitionKeys(PartitionKeysT &&value)
Definition TableInput.h:184
void SetLastAnalyzedTime(LastAnalyzedTimeT &&value)
Definition TableInput.h:122
const Aws::Vector< Column > & GetPartitionKeys() const
Definition TableInput.h:176
TableInput & WithName(NameT &&value)
Definition TableInput.h:54
void SetTargetTable(TargetTableT &&value)
Definition TableInput.h:290
bool ViewDefinitionHasBeenSet() const
Definition TableInput.h:307
TableInput & WithViewDefinition(ViewDefinitionT &&value)
Definition TableInput.h:314
void SetParameters(ParametersT &&value)
Definition TableInput.h:265
const Aws::String & GetViewOriginalText() const
Definition TableInput.h:202
TableInput & WithViewOriginalText(ViewOriginalTextT &&value)
Definition TableInput.h:210
const Aws::Utils::DateTime & GetLastAccessTime() const
Definition TableInput.h:101
const Aws::String & GetOwner() const
Definition TableInput.h:83
AWS_GLUE_API TableInput(Aws::Utils::Json::JsonView jsonValue)
const StorageDescriptor & GetStorageDescriptor() const
Definition TableInput.h:154
AWS_GLUE_API TableInput & operator=(Aws::Utils::Json::JsonView jsonValue)
TableInput & WithTargetTable(TargetTableT &&value)
Definition TableInput.h:295
const TableIdentifier & GetTargetTable() const
Definition TableInput.h:287
void SetStorageDescriptor(StorageDescriptorT &&value)
Definition TableInput.h:157
const ViewDefinitionInput & GetViewDefinition() const
Definition TableInput.h:306
const Aws::String & GetTableType() const
Definition TableInput.h:244
void SetViewOriginalText(ViewOriginalTextT &&value)
Definition TableInput.h:205
TableInput & WithViewExpandedText(ViewExpandedTextT &&value)
Definition TableInput.h:229
void SetViewExpandedText(ViewExpandedTextT &&value)
Definition TableInput.h:224
bool DescriptionHasBeenSet() const
Definition TableInput.h:65
void SetDescription(DescriptionT &&value)
Definition TableInput.h:67
TableInput & WithRetention(int value)
Definition TableInput.h:143
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition TableInput.h:262
TableInput & WithDescription(DescriptionT &&value)
Definition TableInput.h:72
void SetTableType(TableTypeT &&value)
Definition TableInput.h:247
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastAccessTime(LastAccessTimeT &&value)
Definition TableInput.h:104
bool LastAccessTimeHasBeenSet() const
Definition TableInput.h:102
void SetViewDefinition(ViewDefinitionT &&value)
Definition TableInput.h:309
bool PartitionKeysHasBeenSet() const
Definition TableInput.h:177
bool ViewOriginalTextHasBeenSet() const
Definition TableInput.h:203
bool TargetTableHasBeenSet() const
Definition TableInput.h:288
bool ParametersHasBeenSet() const
Definition TableInput.h:263
const Aws::String & GetDescription() const
Definition TableInput.h:64
bool ViewExpandedTextHasBeenSet() const
Definition TableInput.h:222
TableInput & WithOwner(OwnerT &&value)
Definition TableInput.h:91
TableInput & AddPartitionKeys(PartitionKeysT &&value)
Definition TableInput.h:189
TableInput & WithStorageDescriptor(StorageDescriptorT &&value)
Definition TableInput.h:162
bool LastAnalyzedTimeHasBeenSet() const
Definition TableInput.h:120
TableInput & WithLastAnalyzedTime(LastAnalyzedTimeT &&value)
Definition TableInput.h:127
AWS_GLUE_API TableInput()=default
void SetName(NameT &&value)
Definition TableInput.h:49
void SetPartitionKeys(PartitionKeysT &&value)
Definition TableInput.h:179
TableInput & WithLastAccessTime(LastAccessTimeT &&value)
Definition TableInput.h:109
const Aws::String & GetName() const
Definition TableInput.h:46
TableInput & WithTableType(TableTypeT &&value)
Definition TableInput.h:252
void SetOwner(OwnerT &&value)
Definition TableInput.h:86
const Aws::Utils::DateTime & GetLastAnalyzedTime() const
Definition TableInput.h:119
const Aws::String & GetViewExpandedText() const
Definition TableInput.h:221
TableInput & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition TableInput.h:275
void SetRetention(int value)
Definition TableInput.h:139
bool StorageDescriptorHasBeenSet() const
Definition TableInput.h:155
TableInput & WithParameters(ParametersT &&value)
Definition TableInput.h:270
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue