AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TableInput.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/DateTime.h>
10#include <aws/glue/model/StorageDescriptor.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/glue/model/TableIdentifier.h>
14#include <aws/glue/model/ViewDefinitionInput.h>
15#include <aws/glue/model/Column.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Glue
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_GLUE_API TableInput();
42 AWS_GLUE_API TableInput(Aws::Utils::Json::JsonView jsonValue);
45
46
48
52 inline const Aws::String& GetName() const{ return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline TableInput& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline TableInput& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline TableInput& WithName(const char* value) { SetName(value); return *this;}
61
63
66 inline const Aws::String& GetDescription() const{ return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
69 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
70 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
71 inline TableInput& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 inline TableInput& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
73 inline TableInput& WithDescription(const char* value) { SetDescription(value); return *this;}
75
77
81 inline const Aws::String& GetOwner() const{ return m_owner; }
82 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
83 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
84 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
85 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
86 inline TableInput& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
87 inline TableInput& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
88 inline TableInput& WithOwner(const char* value) { SetOwner(value); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetLastAccessTime() const{ return m_lastAccessTime; }
96 inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; }
97 inline void SetLastAccessTime(const Aws::Utils::DateTime& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = value; }
98 inline void SetLastAccessTime(Aws::Utils::DateTime&& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = std::move(value); }
99 inline TableInput& WithLastAccessTime(const Aws::Utils::DateTime& value) { SetLastAccessTime(value); return *this;}
100 inline TableInput& WithLastAccessTime(Aws::Utils::DateTime&& value) { SetLastAccessTime(std::move(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetLastAnalyzedTime() const{ return m_lastAnalyzedTime; }
108 inline bool LastAnalyzedTimeHasBeenSet() const { return m_lastAnalyzedTimeHasBeenSet; }
109 inline void SetLastAnalyzedTime(const Aws::Utils::DateTime& value) { m_lastAnalyzedTimeHasBeenSet = true; m_lastAnalyzedTime = value; }
110 inline void SetLastAnalyzedTime(Aws::Utils::DateTime&& value) { m_lastAnalyzedTimeHasBeenSet = true; m_lastAnalyzedTime = std::move(value); }
111 inline TableInput& WithLastAnalyzedTime(const Aws::Utils::DateTime& value) { SetLastAnalyzedTime(value); return *this;}
112 inline TableInput& WithLastAnalyzedTime(Aws::Utils::DateTime&& value) { SetLastAnalyzedTime(std::move(value)); return *this;}
114
116
119 inline int GetRetention() const{ return m_retention; }
120 inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; }
121 inline void SetRetention(int value) { m_retentionHasBeenSet = true; m_retention = value; }
122 inline TableInput& WithRetention(int value) { SetRetention(value); return *this;}
124
126
130 inline const StorageDescriptor& GetStorageDescriptor() const{ return m_storageDescriptor; }
131 inline bool StorageDescriptorHasBeenSet() const { return m_storageDescriptorHasBeenSet; }
132 inline void SetStorageDescriptor(const StorageDescriptor& value) { m_storageDescriptorHasBeenSet = true; m_storageDescriptor = value; }
133 inline void SetStorageDescriptor(StorageDescriptor&& value) { m_storageDescriptorHasBeenSet = true; m_storageDescriptor = std::move(value); }
134 inline TableInput& WithStorageDescriptor(const StorageDescriptor& value) { SetStorageDescriptor(value); return *this;}
135 inline TableInput& WithStorageDescriptor(StorageDescriptor&& value) { SetStorageDescriptor(std::move(value)); return *this;}
137
139
146 inline const Aws::Vector<Column>& GetPartitionKeys() const{ return m_partitionKeys; }
147 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
148 inline void SetPartitionKeys(const Aws::Vector<Column>& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = value; }
149 inline void SetPartitionKeys(Aws::Vector<Column>&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::move(value); }
150 inline TableInput& WithPartitionKeys(const Aws::Vector<Column>& value) { SetPartitionKeys(value); return *this;}
151 inline TableInput& WithPartitionKeys(Aws::Vector<Column>&& value) { SetPartitionKeys(std::move(value)); return *this;}
152 inline TableInput& AddPartitionKeys(const Column& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(value); return *this; }
153 inline TableInput& AddPartitionKeys(Column&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(std::move(value)); return *this; }
155
157
162 inline const Aws::String& GetViewOriginalText() const{ return m_viewOriginalText; }
163 inline bool ViewOriginalTextHasBeenSet() const { return m_viewOriginalTextHasBeenSet; }
164 inline void SetViewOriginalText(const Aws::String& value) { m_viewOriginalTextHasBeenSet = true; m_viewOriginalText = value; }
165 inline void SetViewOriginalText(Aws::String&& value) { m_viewOriginalTextHasBeenSet = true; m_viewOriginalText = std::move(value); }
166 inline void SetViewOriginalText(const char* value) { m_viewOriginalTextHasBeenSet = true; m_viewOriginalText.assign(value); }
167 inline TableInput& WithViewOriginalText(const Aws::String& value) { SetViewOriginalText(value); return *this;}
168 inline TableInput& WithViewOriginalText(Aws::String&& value) { SetViewOriginalText(std::move(value)); return *this;}
169 inline TableInput& WithViewOriginalText(const char* value) { SetViewOriginalText(value); return *this;}
171
173
177 inline const Aws::String& GetViewExpandedText() const{ return m_viewExpandedText; }
178 inline bool ViewExpandedTextHasBeenSet() const { return m_viewExpandedTextHasBeenSet; }
179 inline void SetViewExpandedText(const Aws::String& value) { m_viewExpandedTextHasBeenSet = true; m_viewExpandedText = value; }
180 inline void SetViewExpandedText(Aws::String&& value) { m_viewExpandedTextHasBeenSet = true; m_viewExpandedText = std::move(value); }
181 inline void SetViewExpandedText(const char* value) { m_viewExpandedTextHasBeenSet = true; m_viewExpandedText.assign(value); }
182 inline TableInput& WithViewExpandedText(const Aws::String& value) { SetViewExpandedText(value); return *this;}
183 inline TableInput& WithViewExpandedText(Aws::String&& value) { SetViewExpandedText(std::move(value)); return *this;}
184 inline TableInput& WithViewExpandedText(const char* value) { SetViewExpandedText(value); return *this;}
186
188
196 inline const Aws::String& GetTableType() const{ return m_tableType; }
197 inline bool TableTypeHasBeenSet() const { return m_tableTypeHasBeenSet; }
198 inline void SetTableType(const Aws::String& value) { m_tableTypeHasBeenSet = true; m_tableType = value; }
199 inline void SetTableType(Aws::String&& value) { m_tableTypeHasBeenSet = true; m_tableType = std::move(value); }
200 inline void SetTableType(const char* value) { m_tableTypeHasBeenSet = true; m_tableType.assign(value); }
201 inline TableInput& WithTableType(const Aws::String& value) { SetTableType(value); return *this;}
202 inline TableInput& WithTableType(Aws::String&& value) { SetTableType(std::move(value)); return *this;}
203 inline TableInput& WithTableType(const char* value) { SetTableType(value); return *this;}
205
207
210 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
211 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
212 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
213 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
214 inline TableInput& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
215 inline TableInput& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
216 inline TableInput& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
217 inline TableInput& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
218 inline TableInput& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
219 inline TableInput& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
220 inline TableInput& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
221 inline TableInput& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
222 inline TableInput& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
224
226
230 inline const TableIdentifier& GetTargetTable() const{ return m_targetTable; }
231 inline bool TargetTableHasBeenSet() const { return m_targetTableHasBeenSet; }
232 inline void SetTargetTable(const TableIdentifier& value) { m_targetTableHasBeenSet = true; m_targetTable = value; }
233 inline void SetTargetTable(TableIdentifier&& value) { m_targetTableHasBeenSet = true; m_targetTable = std::move(value); }
234 inline TableInput& WithTargetTable(const TableIdentifier& value) { SetTargetTable(value); return *this;}
235 inline TableInput& WithTargetTable(TableIdentifier&& value) { SetTargetTable(std::move(value)); return *this;}
237
239
243 inline const ViewDefinitionInput& GetViewDefinition() const{ return m_viewDefinition; }
244 inline bool ViewDefinitionHasBeenSet() const { return m_viewDefinitionHasBeenSet; }
245 inline void SetViewDefinition(const ViewDefinitionInput& value) { m_viewDefinitionHasBeenSet = true; m_viewDefinition = value; }
246 inline void SetViewDefinition(ViewDefinitionInput&& value) { m_viewDefinitionHasBeenSet = true; m_viewDefinition = std::move(value); }
247 inline TableInput& WithViewDefinition(const ViewDefinitionInput& value) { SetViewDefinition(value); return *this;}
248 inline TableInput& WithViewDefinition(ViewDefinitionInput&& value) { SetViewDefinition(std::move(value)); return *this;}
250 private:
251
252 Aws::String m_name;
253 bool m_nameHasBeenSet = false;
254
255 Aws::String m_description;
256 bool m_descriptionHasBeenSet = false;
257
258 Aws::String m_owner;
259 bool m_ownerHasBeenSet = false;
260
261 Aws::Utils::DateTime m_lastAccessTime;
262 bool m_lastAccessTimeHasBeenSet = false;
263
264 Aws::Utils::DateTime m_lastAnalyzedTime;
265 bool m_lastAnalyzedTimeHasBeenSet = false;
266
267 int m_retention;
268 bool m_retentionHasBeenSet = false;
269
270 StorageDescriptor m_storageDescriptor;
271 bool m_storageDescriptorHasBeenSet = false;
272
273 Aws::Vector<Column> m_partitionKeys;
274 bool m_partitionKeysHasBeenSet = false;
275
276 Aws::String m_viewOriginalText;
277 bool m_viewOriginalTextHasBeenSet = false;
278
279 Aws::String m_viewExpandedText;
280 bool m_viewExpandedTextHasBeenSet = false;
281
282 Aws::String m_tableType;
283 bool m_tableTypeHasBeenSet = false;
284
286 bool m_parametersHasBeenSet = false;
287
288 TableIdentifier m_targetTable;
289 bool m_targetTableHasBeenSet = false;
290
291 ViewDefinitionInput m_viewDefinition;
292 bool m_viewDefinitionHasBeenSet = false;
293 };
294
295} // namespace Model
296} // namespace Glue
297} // namespace Aws
void SetStorageDescriptor(const StorageDescriptor &value)
Definition TableInput.h:132
const Aws::Vector< Column > & GetPartitionKeys() const
Definition TableInput.h:146
void SetOwner(const Aws::String &value)
Definition TableInput.h:83
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition TableInput.h:212
TableInput & WithTableType(const Aws::String &value)
Definition TableInput.h:201
TableInput & WithViewExpandedText(Aws::String &&value)
Definition TableInput.h:183
TableInput & WithDescription(Aws::String &&value)
Definition TableInput.h:72
void SetViewOriginalText(const Aws::String &value)
Definition TableInput.h:164
TableInput & WithLastAccessTime(Aws::Utils::DateTime &&value)
Definition TableInput.h:100
bool ViewDefinitionHasBeenSet() const
Definition TableInput.h:244
TableInput & WithDescription(const Aws::String &value)
Definition TableInput.h:71
void SetDescription(const Aws::String &value)
Definition TableInput.h:68
const Aws::String & GetViewOriginalText() const
Definition TableInput.h:162
void SetLastAnalyzedTime(const Aws::Utils::DateTime &value)
Definition TableInput.h:109
const Aws::Utils::DateTime & GetLastAccessTime() const
Definition TableInput.h:95
void SetViewDefinition(const ViewDefinitionInput &value)
Definition TableInput.h:245
void SetOwner(Aws::String &&value)
Definition TableInput.h:84
const Aws::String & GetOwner() const
Definition TableInput.h:81
TableInput & WithLastAccessTime(const Aws::Utils::DateTime &value)
Definition TableInput.h:99
TableInput & WithStorageDescriptor(const StorageDescriptor &value)
Definition TableInput.h:134
AWS_GLUE_API TableInput(Aws::Utils::Json::JsonView jsonValue)
const StorageDescriptor & GetStorageDescriptor() const
Definition TableInput.h:130
TableInput & WithName(Aws::String &&value)
Definition TableInput.h:58
AWS_GLUE_API TableInput & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOwner(const char *value)
Definition TableInput.h:85
TableInput & AddParameters(const char *key, Aws::String &&value)
Definition TableInput.h:220
TableInput & AddParameters(const Aws::String &key, const Aws::String &value)
Definition TableInput.h:216
TableInput & WithTargetTable(TableIdentifier &&value)
Definition TableInput.h:235
const TableIdentifier & GetTargetTable() const
Definition TableInput.h:230
TableInput & AddParameters(Aws::String &&key, Aws::String &&value)
Definition TableInput.h:219
void SetPartitionKeys(Aws::Vector< Column > &&value)
Definition TableInput.h:149
const ViewDefinitionInput & GetViewDefinition() const
Definition TableInput.h:243
void SetTargetTable(const TableIdentifier &value)
Definition TableInput.h:232
const Aws::String & GetTableType() const
Definition TableInput.h:196
TableInput & WithLastAnalyzedTime(Aws::Utils::DateTime &&value)
Definition TableInput.h:112
void SetDescription(const char *value)
Definition TableInput.h:70
void SetViewDefinition(ViewDefinitionInput &&value)
Definition TableInput.h:246
bool DescriptionHasBeenSet() const
Definition TableInput.h:67
void SetTableType(const Aws::String &value)
Definition TableInput.h:198
TableInput & AddParameters(const char *key, const char *value)
Definition TableInput.h:222
TableInput & WithRetention(int value)
Definition TableInput.h:122
void SetName(const char *value)
Definition TableInput.h:56
void SetLastAccessTime(Aws::Utils::DateTime &&value)
Definition TableInput.h:98
TableInput & AddPartitionKeys(const Column &value)
Definition TableInput.h:152
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition TableInput.h:210
TableInput & WithTableType(Aws::String &&value)
Definition TableInput.h:202
void SetPartitionKeys(const Aws::Vector< Column > &value)
Definition TableInput.h:148
void SetDescription(Aws::String &&value)
Definition TableInput.h:69
TableInput & WithViewExpandedText(const char *value)
Definition TableInput.h:184
TableInput & WithOwner(Aws::String &&value)
Definition TableInput.h:87
TableInput & WithLastAnalyzedTime(const Aws::Utils::DateTime &value)
Definition TableInput.h:111
TableInput & WithOwner(const Aws::String &value)
Definition TableInput.h:86
TableInput & WithStorageDescriptor(StorageDescriptor &&value)
Definition TableInput.h:135
TableInput & WithTargetTable(const TableIdentifier &value)
Definition TableInput.h:234
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
TableInput & AddParameters(Aws::String &&key, const Aws::String &value)
Definition TableInput.h:217
TableInput & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition TableInput.h:214
bool LastAccessTimeHasBeenSet() const
Definition TableInput.h:96
bool PartitionKeysHasBeenSet() const
Definition TableInput.h:147
bool ViewOriginalTextHasBeenSet() const
Definition TableInput.h:163
TableInput & WithPartitionKeys(const Aws::Vector< Column > &value)
Definition TableInput.h:150
bool TargetTableHasBeenSet() const
Definition TableInput.h:231
TableInput & AddParameters(Aws::String &&key, const char *value)
Definition TableInput.h:221
bool ParametersHasBeenSet() const
Definition TableInput.h:211
void SetLastAccessTime(const Aws::Utils::DateTime &value)
Definition TableInput.h:97
TableInput & WithDescription(const char *value)
Definition TableInput.h:73
const Aws::String & GetDescription() const
Definition TableInput.h:66
void SetViewOriginalText(const char *value)
Definition TableInput.h:166
bool ViewExpandedTextHasBeenSet() const
Definition TableInput.h:178
TableInput & AddPartitionKeys(Column &&value)
Definition TableInput.h:153
void SetStorageDescriptor(StorageDescriptor &&value)
Definition TableInput.h:133
TableInput & WithViewOriginalText(Aws::String &&value)
Definition TableInput.h:168
void SetTargetTable(TableIdentifier &&value)
Definition TableInput.h:233
void SetViewExpandedText(Aws::String &&value)
Definition TableInput.h:180
bool LastAnalyzedTimeHasBeenSet() const
Definition TableInput.h:108
void SetName(const Aws::String &value)
Definition TableInput.h:54
TableInput & WithTableType(const char *value)
Definition TableInput.h:203
void SetViewExpandedText(const char *value)
Definition TableInput.h:181
TableInput & WithViewDefinition(const ViewDefinitionInput &value)
Definition TableInput.h:247
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition TableInput.h:213
TableInput & WithName(const Aws::String &value)
Definition TableInput.h:57
TableInput & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition TableInput.h:215
void SetTableType(Aws::String &&value)
Definition TableInput.h:199
const Aws::String & GetName() const
Definition TableInput.h:52
void SetViewOriginalText(Aws::String &&value)
Definition TableInput.h:165
void SetTableType(const char *value)
Definition TableInput.h:200
TableInput & WithOwner(const char *value)
Definition TableInput.h:88
TableInput & WithViewExpandedText(const Aws::String &value)
Definition TableInput.h:182
TableInput & WithViewDefinition(ViewDefinitionInput &&value)
Definition TableInput.h:248
const Aws::Utils::DateTime & GetLastAnalyzedTime() const
Definition TableInput.h:107
const Aws::String & GetViewExpandedText() const
Definition TableInput.h:177
TableInput & AddParameters(const Aws::String &key, Aws::String &&value)
Definition TableInput.h:218
TableInput & WithPartitionKeys(Aws::Vector< Column > &&value)
Definition TableInput.h:151
void SetViewExpandedText(const Aws::String &value)
Definition TableInput.h:179
TableInput & WithViewOriginalText(const char *value)
Definition TableInput.h:169
void SetName(Aws::String &&value)
Definition TableInput.h:55
TableInput & WithViewOriginalText(const Aws::String &value)
Definition TableInput.h:167
void SetRetention(int value)
Definition TableInput.h:121
bool StorageDescriptorHasBeenSet() const
Definition TableInput.h:131
void SetLastAnalyzedTime(Aws::Utils::DateTime &&value)
Definition TableInput.h:110
TableInput & WithName(const char *value)
Definition TableInput.h:59
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