AWS SDK for C++

AWS SDK for C++ Version 1.11.907

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/FederatedTable.h>
14#include <aws/glue/model/StorageDescriptor.h>
15#include <aws/glue/model/TableIdentifier.h>
16#include <aws/glue/model/ViewDefinitionInput.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Glue {
28namespace Model {
29
36 public:
37 AWS_GLUE_API TableInput() = default;
38 AWS_GLUE_API TableInput(Aws::Utils::Json::JsonView jsonValue);
41
43
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 TableInput& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template <typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) {
69 m_descriptionHasBeenSet = true;
70 m_description = std::forward<DescriptionT>(value);
71 }
72 template <typename DescriptionT = Aws::String>
73 TableInput& WithDescription(DescriptionT&& value) {
74 SetDescription(std::forward<DescriptionT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetOwner() const { return m_owner; }
85 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
86 template <typename OwnerT = Aws::String>
87 void SetOwner(OwnerT&& value) {
88 m_ownerHasBeenSet = true;
89 m_owner = std::forward<OwnerT>(value);
90 }
91 template <typename OwnerT = Aws::String>
92 TableInput& WithOwner(OwnerT&& value) {
93 SetOwner(std::forward<OwnerT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Utils::DateTime& GetLastAccessTime() const { return m_lastAccessTime; }
103 inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; }
104 template <typename LastAccessTimeT = Aws::Utils::DateTime>
105 void SetLastAccessTime(LastAccessTimeT&& value) {
106 m_lastAccessTimeHasBeenSet = true;
107 m_lastAccessTime = std::forward<LastAccessTimeT>(value);
108 }
109 template <typename LastAccessTimeT = Aws::Utils::DateTime>
110 TableInput& WithLastAccessTime(LastAccessTimeT&& value) {
111 SetLastAccessTime(std::forward<LastAccessTimeT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetLastAnalyzedTime() const { return m_lastAnalyzedTime; }
121 inline bool LastAnalyzedTimeHasBeenSet() const { return m_lastAnalyzedTimeHasBeenSet; }
122 template <typename LastAnalyzedTimeT = Aws::Utils::DateTime>
123 void SetLastAnalyzedTime(LastAnalyzedTimeT&& value) {
124 m_lastAnalyzedTimeHasBeenSet = true;
125 m_lastAnalyzedTime = std::forward<LastAnalyzedTimeT>(value);
126 }
127 template <typename LastAnalyzedTimeT = Aws::Utils::DateTime>
128 TableInput& WithLastAnalyzedTime(LastAnalyzedTimeT&& value) {
129 SetLastAnalyzedTime(std::forward<LastAnalyzedTimeT>(value));
130 return *this;
131 }
133
135
138 inline int GetRetention() const { return m_retention; }
139 inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; }
140 inline void SetRetention(int value) {
141 m_retentionHasBeenSet = true;
142 m_retention = value;
143 }
144 inline TableInput& WithRetention(int value) {
145 SetRetention(value);
146 return *this;
147 }
149
151
155 inline const StorageDescriptor& GetStorageDescriptor() const { return m_storageDescriptor; }
156 inline bool StorageDescriptorHasBeenSet() const { return m_storageDescriptorHasBeenSet; }
157 template <typename StorageDescriptorT = StorageDescriptor>
158 void SetStorageDescriptor(StorageDescriptorT&& value) {
159 m_storageDescriptorHasBeenSet = true;
160 m_storageDescriptor = std::forward<StorageDescriptorT>(value);
161 }
162 template <typename StorageDescriptorT = StorageDescriptor>
163 TableInput& WithStorageDescriptor(StorageDescriptorT&& value) {
164 SetStorageDescriptor(std::forward<StorageDescriptorT>(value));
165 return *this;
166 }
168
170
177 inline const Aws::Vector<Column>& GetPartitionKeys() const { return m_partitionKeys; }
178 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
179 template <typename PartitionKeysT = Aws::Vector<Column>>
180 void SetPartitionKeys(PartitionKeysT&& value) {
181 m_partitionKeysHasBeenSet = true;
182 m_partitionKeys = std::forward<PartitionKeysT>(value);
183 }
184 template <typename PartitionKeysT = Aws::Vector<Column>>
185 TableInput& WithPartitionKeys(PartitionKeysT&& value) {
186 SetPartitionKeys(std::forward<PartitionKeysT>(value));
187 return *this;
188 }
189 template <typename PartitionKeysT = Column>
190 TableInput& AddPartitionKeys(PartitionKeysT&& value) {
191 m_partitionKeysHasBeenSet = true;
192 m_partitionKeys.emplace_back(std::forward<PartitionKeysT>(value));
193 return *this;
194 }
196
198
203 inline const Aws::String& GetViewOriginalText() const { return m_viewOriginalText; }
204 inline bool ViewOriginalTextHasBeenSet() const { return m_viewOriginalTextHasBeenSet; }
205 template <typename ViewOriginalTextT = Aws::String>
206 void SetViewOriginalText(ViewOriginalTextT&& value) {
207 m_viewOriginalTextHasBeenSet = true;
208 m_viewOriginalText = std::forward<ViewOriginalTextT>(value);
209 }
210 template <typename ViewOriginalTextT = Aws::String>
211 TableInput& WithViewOriginalText(ViewOriginalTextT&& value) {
212 SetViewOriginalText(std::forward<ViewOriginalTextT>(value));
213 return *this;
214 }
216
218
222 inline const Aws::String& GetViewExpandedText() const { return m_viewExpandedText; }
223 inline bool ViewExpandedTextHasBeenSet() const { return m_viewExpandedTextHasBeenSet; }
224 template <typename ViewExpandedTextT = Aws::String>
225 void SetViewExpandedText(ViewExpandedTextT&& value) {
226 m_viewExpandedTextHasBeenSet = true;
227 m_viewExpandedText = std::forward<ViewExpandedTextT>(value);
228 }
229 template <typename ViewExpandedTextT = Aws::String>
230 TableInput& WithViewExpandedText(ViewExpandedTextT&& value) {
231 SetViewExpandedText(std::forward<ViewExpandedTextT>(value));
232 return *this;
233 }
235
237
245 inline const Aws::String& GetTableType() const { return m_tableType; }
246 inline bool TableTypeHasBeenSet() const { return m_tableTypeHasBeenSet; }
247 template <typename TableTypeT = Aws::String>
248 void SetTableType(TableTypeT&& value) {
249 m_tableTypeHasBeenSet = true;
250 m_tableType = std::forward<TableTypeT>(value);
251 }
252 template <typename TableTypeT = Aws::String>
253 TableInput& WithTableType(TableTypeT&& value) {
254 SetTableType(std::forward<TableTypeT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
264 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
265 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
266 void SetParameters(ParametersT&& value) {
267 m_parametersHasBeenSet = true;
268 m_parameters = std::forward<ParametersT>(value);
269 }
270 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
271 TableInput& WithParameters(ParametersT&& value) {
272 SetParameters(std::forward<ParametersT>(value));
273 return *this;
274 }
275 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
276 TableInput& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
277 m_parametersHasBeenSet = true;
278 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
279 return *this;
280 }
282
284
288 inline const TableIdentifier& GetTargetTable() const { return m_targetTable; }
289 inline bool TargetTableHasBeenSet() const { return m_targetTableHasBeenSet; }
290 template <typename TargetTableT = TableIdentifier>
291 void SetTargetTable(TargetTableT&& value) {
292 m_targetTableHasBeenSet = true;
293 m_targetTable = std::forward<TargetTableT>(value);
294 }
295 template <typename TargetTableT = TableIdentifier>
296 TableInput& WithTargetTable(TargetTableT&& value) {
297 SetTargetTable(std::forward<TargetTableT>(value));
298 return *this;
299 }
301
303
309 inline const FederatedTable& GetFederatedTable() const { return m_federatedTable; }
310 inline bool FederatedTableHasBeenSet() const { return m_federatedTableHasBeenSet; }
311 template <typename FederatedTableT = FederatedTable>
312 void SetFederatedTable(FederatedTableT&& value) {
313 m_federatedTableHasBeenSet = true;
314 m_federatedTable = std::forward<FederatedTableT>(value);
315 }
316 template <typename FederatedTableT = FederatedTable>
317 TableInput& WithFederatedTable(FederatedTableT&& value) {
318 SetFederatedTable(std::forward<FederatedTableT>(value));
319 return *this;
320 }
322
324
328 inline const ViewDefinitionInput& GetViewDefinition() const { return m_viewDefinition; }
329 inline bool ViewDefinitionHasBeenSet() const { return m_viewDefinitionHasBeenSet; }
330 template <typename ViewDefinitionT = ViewDefinitionInput>
331 void SetViewDefinition(ViewDefinitionT&& value) {
332 m_viewDefinitionHasBeenSet = true;
333 m_viewDefinition = std::forward<ViewDefinitionT>(value);
334 }
335 template <typename ViewDefinitionT = ViewDefinitionInput>
336 TableInput& WithViewDefinition(ViewDefinitionT&& value) {
337 SetViewDefinition(std::forward<ViewDefinitionT>(value));
338 return *this;
339 }
341 private:
342 Aws::String m_name;
343
344 Aws::String m_description;
345
346 Aws::String m_owner;
347
348 Aws::Utils::DateTime m_lastAccessTime{};
349
350 Aws::Utils::DateTime m_lastAnalyzedTime{};
351
352 int m_retention{0};
353
354 StorageDescriptor m_storageDescriptor;
355
356 Aws::Vector<Column> m_partitionKeys;
357
358 Aws::String m_viewOriginalText;
359
360 Aws::String m_viewExpandedText;
361
362 Aws::String m_tableType;
363
365
366 TableIdentifier m_targetTable;
367
368 FederatedTable m_federatedTable;
369
370 ViewDefinitionInput m_viewDefinition;
371 bool m_nameHasBeenSet = false;
372 bool m_descriptionHasBeenSet = false;
373 bool m_ownerHasBeenSet = false;
374 bool m_lastAccessTimeHasBeenSet = false;
375 bool m_lastAnalyzedTimeHasBeenSet = false;
376 bool m_retentionHasBeenSet = false;
377 bool m_storageDescriptorHasBeenSet = false;
378 bool m_partitionKeysHasBeenSet = false;
379 bool m_viewOriginalTextHasBeenSet = false;
380 bool m_viewExpandedTextHasBeenSet = false;
381 bool m_tableTypeHasBeenSet = false;
382 bool m_parametersHasBeenSet = false;
383 bool m_targetTableHasBeenSet = false;
384 bool m_federatedTableHasBeenSet = false;
385 bool m_viewDefinitionHasBeenSet = false;
386};
387
388} // namespace Model
389} // namespace Glue
390} // namespace Aws
TableInput & WithPartitionKeys(PartitionKeysT &&value)
Definition TableInput.h:185
void SetLastAnalyzedTime(LastAnalyzedTimeT &&value)
Definition TableInput.h:123
const Aws::Vector< Column > & GetPartitionKeys() const
Definition TableInput.h:177
TableInput & WithName(NameT &&value)
Definition TableInput.h:55
void SetTargetTable(TargetTableT &&value)
Definition TableInput.h:291
bool ViewDefinitionHasBeenSet() const
Definition TableInput.h:329
TableInput & WithViewDefinition(ViewDefinitionT &&value)
Definition TableInput.h:336
void SetParameters(ParametersT &&value)
Definition TableInput.h:266
const Aws::String & GetViewOriginalText() const
Definition TableInput.h:203
TableInput & WithViewOriginalText(ViewOriginalTextT &&value)
Definition TableInput.h:211
const Aws::Utils::DateTime & GetLastAccessTime() const
Definition TableInput.h:102
const Aws::String & GetOwner() const
Definition TableInput.h:84
bool FederatedTableHasBeenSet() const
Definition TableInput.h:310
AWS_GLUE_API TableInput(Aws::Utils::Json::JsonView jsonValue)
const StorageDescriptor & GetStorageDescriptor() const
Definition TableInput.h:155
AWS_GLUE_API TableInput & operator=(Aws::Utils::Json::JsonView jsonValue)
TableInput & WithTargetTable(TargetTableT &&value)
Definition TableInput.h:296
const TableIdentifier & GetTargetTable() const
Definition TableInput.h:288
void SetStorageDescriptor(StorageDescriptorT &&value)
Definition TableInput.h:158
const ViewDefinitionInput & GetViewDefinition() const
Definition TableInput.h:328
const Aws::String & GetTableType() const
Definition TableInput.h:245
void SetViewOriginalText(ViewOriginalTextT &&value)
Definition TableInput.h:206
TableInput & WithViewExpandedText(ViewExpandedTextT &&value)
Definition TableInput.h:230
void SetViewExpandedText(ViewExpandedTextT &&value)
Definition TableInput.h:225
bool DescriptionHasBeenSet() const
Definition TableInput.h:66
void SetDescription(DescriptionT &&value)
Definition TableInput.h:68
const FederatedTable & GetFederatedTable() const
Definition TableInput.h:309
TableInput & WithRetention(int value)
Definition TableInput.h:144
TableInput & WithFederatedTable(FederatedTableT &&value)
Definition TableInput.h:317
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition TableInput.h:263
TableInput & WithDescription(DescriptionT &&value)
Definition TableInput.h:73
void SetTableType(TableTypeT &&value)
Definition TableInput.h:248
void SetFederatedTable(FederatedTableT &&value)
Definition TableInput.h:312
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastAccessTime(LastAccessTimeT &&value)
Definition TableInput.h:105
bool LastAccessTimeHasBeenSet() const
Definition TableInput.h:103
void SetViewDefinition(ViewDefinitionT &&value)
Definition TableInput.h:331
bool PartitionKeysHasBeenSet() const
Definition TableInput.h:178
bool ViewOriginalTextHasBeenSet() const
Definition TableInput.h:204
bool TargetTableHasBeenSet() const
Definition TableInput.h:289
bool ParametersHasBeenSet() const
Definition TableInput.h:264
const Aws::String & GetDescription() const
Definition TableInput.h:65
bool ViewExpandedTextHasBeenSet() const
Definition TableInput.h:223
TableInput & WithOwner(OwnerT &&value)
Definition TableInput.h:92
TableInput & AddPartitionKeys(PartitionKeysT &&value)
Definition TableInput.h:190
TableInput & WithStorageDescriptor(StorageDescriptorT &&value)
Definition TableInput.h:163
bool LastAnalyzedTimeHasBeenSet() const
Definition TableInput.h:121
TableInput & WithLastAnalyzedTime(LastAnalyzedTimeT &&value)
Definition TableInput.h:128
AWS_GLUE_API TableInput()=default
void SetName(NameT &&value)
Definition TableInput.h:50
void SetPartitionKeys(PartitionKeysT &&value)
Definition TableInput.h:180
TableInput & WithLastAccessTime(LastAccessTimeT &&value)
Definition TableInput.h:110
const Aws::String & GetName() const
Definition TableInput.h:47
TableInput & WithTableType(TableTypeT &&value)
Definition TableInput.h:253
void SetOwner(OwnerT &&value)
Definition TableInput.h:87
const Aws::Utils::DateTime & GetLastAnalyzedTime() const
Definition TableInput.h:120
const Aws::String & GetViewExpandedText() const
Definition TableInput.h:222
TableInput & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition TableInput.h:276
void SetRetention(int value)
Definition TableInput.h:140
bool StorageDescriptorHasBeenSet() const
Definition TableInput.h:156
TableInput & WithParameters(ParametersT &&value)
Definition TableInput.h:271
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