AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 TableInput& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 TableInput& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
77 inline const Aws::String& GetOwner() const { return m_owner; }
78 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
79 template<typename OwnerT = Aws::String>
80 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
81 template<typename OwnerT = Aws::String>
82 TableInput& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetLastAccessTime() const { return m_lastAccessTime; }
90 inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; }
91 template<typename LastAccessTimeT = Aws::Utils::DateTime>
92 void SetLastAccessTime(LastAccessTimeT&& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = std::forward<LastAccessTimeT>(value); }
93 template<typename LastAccessTimeT = Aws::Utils::DateTime>
94 TableInput& WithLastAccessTime(LastAccessTimeT&& value) { SetLastAccessTime(std::forward<LastAccessTimeT>(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetLastAnalyzedTime() const { return m_lastAnalyzedTime; }
102 inline bool LastAnalyzedTimeHasBeenSet() const { return m_lastAnalyzedTimeHasBeenSet; }
103 template<typename LastAnalyzedTimeT = Aws::Utils::DateTime>
104 void SetLastAnalyzedTime(LastAnalyzedTimeT&& value) { m_lastAnalyzedTimeHasBeenSet = true; m_lastAnalyzedTime = std::forward<LastAnalyzedTimeT>(value); }
105 template<typename LastAnalyzedTimeT = Aws::Utils::DateTime>
106 TableInput& WithLastAnalyzedTime(LastAnalyzedTimeT&& value) { SetLastAnalyzedTime(std::forward<LastAnalyzedTimeT>(value)); return *this;}
108
110
113 inline int GetRetention() const { return m_retention; }
114 inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; }
115 inline void SetRetention(int value) { m_retentionHasBeenSet = true; m_retention = value; }
116 inline TableInput& WithRetention(int value) { SetRetention(value); return *this;}
118
120
124 inline const StorageDescriptor& GetStorageDescriptor() const { return m_storageDescriptor; }
125 inline bool StorageDescriptorHasBeenSet() const { return m_storageDescriptorHasBeenSet; }
126 template<typename StorageDescriptorT = StorageDescriptor>
127 void SetStorageDescriptor(StorageDescriptorT&& value) { m_storageDescriptorHasBeenSet = true; m_storageDescriptor = std::forward<StorageDescriptorT>(value); }
128 template<typename StorageDescriptorT = StorageDescriptor>
129 TableInput& WithStorageDescriptor(StorageDescriptorT&& value) { SetStorageDescriptor(std::forward<StorageDescriptorT>(value)); return *this;}
131
133
140 inline const Aws::Vector<Column>& GetPartitionKeys() const { return m_partitionKeys; }
141 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
142 template<typename PartitionKeysT = Aws::Vector<Column>>
143 void SetPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::forward<PartitionKeysT>(value); }
144 template<typename PartitionKeysT = Aws::Vector<Column>>
145 TableInput& WithPartitionKeys(PartitionKeysT&& value) { SetPartitionKeys(std::forward<PartitionKeysT>(value)); return *this;}
146 template<typename PartitionKeysT = Column>
147 TableInput& AddPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.emplace_back(std::forward<PartitionKeysT>(value)); return *this; }
149
151
156 inline const Aws::String& GetViewOriginalText() const { return m_viewOriginalText; }
157 inline bool ViewOriginalTextHasBeenSet() const { return m_viewOriginalTextHasBeenSet; }
158 template<typename ViewOriginalTextT = Aws::String>
159 void SetViewOriginalText(ViewOriginalTextT&& value) { m_viewOriginalTextHasBeenSet = true; m_viewOriginalText = std::forward<ViewOriginalTextT>(value); }
160 template<typename ViewOriginalTextT = Aws::String>
161 TableInput& WithViewOriginalText(ViewOriginalTextT&& value) { SetViewOriginalText(std::forward<ViewOriginalTextT>(value)); return *this;}
163
165
169 inline const Aws::String& GetViewExpandedText() const { return m_viewExpandedText; }
170 inline bool ViewExpandedTextHasBeenSet() const { return m_viewExpandedTextHasBeenSet; }
171 template<typename ViewExpandedTextT = Aws::String>
172 void SetViewExpandedText(ViewExpandedTextT&& value) { m_viewExpandedTextHasBeenSet = true; m_viewExpandedText = std::forward<ViewExpandedTextT>(value); }
173 template<typename ViewExpandedTextT = Aws::String>
174 TableInput& WithViewExpandedText(ViewExpandedTextT&& value) { SetViewExpandedText(std::forward<ViewExpandedTextT>(value)); return *this;}
176
178
186 inline const Aws::String& GetTableType() const { return m_tableType; }
187 inline bool TableTypeHasBeenSet() const { return m_tableTypeHasBeenSet; }
188 template<typename TableTypeT = Aws::String>
189 void SetTableType(TableTypeT&& value) { m_tableTypeHasBeenSet = true; m_tableType = std::forward<TableTypeT>(value); }
190 template<typename TableTypeT = Aws::String>
191 TableInput& WithTableType(TableTypeT&& value) { SetTableType(std::forward<TableTypeT>(value)); return *this;}
193
195
198 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
199 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
200 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
201 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
202 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
203 TableInput& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
204 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
205 TableInput& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
206 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
207 }
209
211
215 inline const TableIdentifier& GetTargetTable() const { return m_targetTable; }
216 inline bool TargetTableHasBeenSet() const { return m_targetTableHasBeenSet; }
217 template<typename TargetTableT = TableIdentifier>
218 void SetTargetTable(TargetTableT&& value) { m_targetTableHasBeenSet = true; m_targetTable = std::forward<TargetTableT>(value); }
219 template<typename TargetTableT = TableIdentifier>
220 TableInput& WithTargetTable(TargetTableT&& value) { SetTargetTable(std::forward<TargetTableT>(value)); return *this;}
222
224
228 inline const ViewDefinitionInput& GetViewDefinition() const { return m_viewDefinition; }
229 inline bool ViewDefinitionHasBeenSet() const { return m_viewDefinitionHasBeenSet; }
230 template<typename ViewDefinitionT = ViewDefinitionInput>
231 void SetViewDefinition(ViewDefinitionT&& value) { m_viewDefinitionHasBeenSet = true; m_viewDefinition = std::forward<ViewDefinitionT>(value); }
232 template<typename ViewDefinitionT = ViewDefinitionInput>
233 TableInput& WithViewDefinition(ViewDefinitionT&& value) { SetViewDefinition(std::forward<ViewDefinitionT>(value)); return *this;}
235 private:
236
237 Aws::String m_name;
238 bool m_nameHasBeenSet = false;
239
240 Aws::String m_description;
241 bool m_descriptionHasBeenSet = false;
242
243 Aws::String m_owner;
244 bool m_ownerHasBeenSet = false;
245
246 Aws::Utils::DateTime m_lastAccessTime{};
247 bool m_lastAccessTimeHasBeenSet = false;
248
249 Aws::Utils::DateTime m_lastAnalyzedTime{};
250 bool m_lastAnalyzedTimeHasBeenSet = false;
251
252 int m_retention{0};
253 bool m_retentionHasBeenSet = false;
254
255 StorageDescriptor m_storageDescriptor;
256 bool m_storageDescriptorHasBeenSet = false;
257
258 Aws::Vector<Column> m_partitionKeys;
259 bool m_partitionKeysHasBeenSet = false;
260
261 Aws::String m_viewOriginalText;
262 bool m_viewOriginalTextHasBeenSet = false;
263
264 Aws::String m_viewExpandedText;
265 bool m_viewExpandedTextHasBeenSet = false;
266
267 Aws::String m_tableType;
268 bool m_tableTypeHasBeenSet = false;
269
271 bool m_parametersHasBeenSet = false;
272
273 TableIdentifier m_targetTable;
274 bool m_targetTableHasBeenSet = false;
275
276 ViewDefinitionInput m_viewDefinition;
277 bool m_viewDefinitionHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace Glue
282} // namespace Aws
TableInput & WithPartitionKeys(PartitionKeysT &&value)
Definition TableInput.h:145
void SetLastAnalyzedTime(LastAnalyzedTimeT &&value)
Definition TableInput.h:104
const Aws::Vector< Column > & GetPartitionKeys() const
Definition TableInput.h:140
TableInput & WithName(NameT &&value)
Definition TableInput.h:57
void SetTargetTable(TargetTableT &&value)
Definition TableInput.h:218
bool ViewDefinitionHasBeenSet() const
Definition TableInput.h:229
TableInput & WithViewDefinition(ViewDefinitionT &&value)
Definition TableInput.h:233
void SetParameters(ParametersT &&value)
Definition TableInput.h:201
const Aws::String & GetViewOriginalText() const
Definition TableInput.h:156
TableInput & WithViewOriginalText(ViewOriginalTextT &&value)
Definition TableInput.h:161
const Aws::Utils::DateTime & GetLastAccessTime() const
Definition TableInput.h:89
const Aws::String & GetOwner() const
Definition TableInput.h:77
AWS_GLUE_API TableInput(Aws::Utils::Json::JsonView jsonValue)
const StorageDescriptor & GetStorageDescriptor() const
Definition TableInput.h:124
AWS_GLUE_API TableInput & operator=(Aws::Utils::Json::JsonView jsonValue)
TableInput & WithTargetTable(TargetTableT &&value)
Definition TableInput.h:220
const TableIdentifier & GetTargetTable() const
Definition TableInput.h:215
void SetStorageDescriptor(StorageDescriptorT &&value)
Definition TableInput.h:127
const ViewDefinitionInput & GetViewDefinition() const
Definition TableInput.h:228
const Aws::String & GetTableType() const
Definition TableInput.h:186
void SetViewOriginalText(ViewOriginalTextT &&value)
Definition TableInput.h:159
TableInput & WithViewExpandedText(ViewExpandedTextT &&value)
Definition TableInput.h:174
void SetViewExpandedText(ViewExpandedTextT &&value)
Definition TableInput.h:172
bool DescriptionHasBeenSet() const
Definition TableInput.h:65
void SetDescription(DescriptionT &&value)
Definition TableInput.h:67
TableInput & WithRetention(int value)
Definition TableInput.h:116
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition TableInput.h:198
TableInput & WithDescription(DescriptionT &&value)
Definition TableInput.h:69
void SetTableType(TableTypeT &&value)
Definition TableInput.h:189
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastAccessTime(LastAccessTimeT &&value)
Definition TableInput.h:92
bool LastAccessTimeHasBeenSet() const
Definition TableInput.h:90
void SetViewDefinition(ViewDefinitionT &&value)
Definition TableInput.h:231
bool PartitionKeysHasBeenSet() const
Definition TableInput.h:141
bool ViewOriginalTextHasBeenSet() const
Definition TableInput.h:157
bool TargetTableHasBeenSet() const
Definition TableInput.h:216
bool ParametersHasBeenSet() const
Definition TableInput.h:199
const Aws::String & GetDescription() const
Definition TableInput.h:64
bool ViewExpandedTextHasBeenSet() const
Definition TableInput.h:170
TableInput & WithOwner(OwnerT &&value)
Definition TableInput.h:82
TableInput & AddPartitionKeys(PartitionKeysT &&value)
Definition TableInput.h:147
TableInput & WithStorageDescriptor(StorageDescriptorT &&value)
Definition TableInput.h:129
bool LastAnalyzedTimeHasBeenSet() const
Definition TableInput.h:102
TableInput & WithLastAnalyzedTime(LastAnalyzedTimeT &&value)
Definition TableInput.h:106
AWS_GLUE_API TableInput()=default
void SetName(NameT &&value)
Definition TableInput.h:55
void SetPartitionKeys(PartitionKeysT &&value)
Definition TableInput.h:143
TableInput & WithLastAccessTime(LastAccessTimeT &&value)
Definition TableInput.h:94
const Aws::String & GetName() const
Definition TableInput.h:52
TableInput & WithTableType(TableTypeT &&value)
Definition TableInput.h:191
void SetOwner(OwnerT &&value)
Definition TableInput.h:80
const Aws::Utils::DateTime & GetLastAnalyzedTime() const
Definition TableInput.h:101
const Aws::String & GetViewExpandedText() const
Definition TableInput.h:169
TableInput & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition TableInput.h:205
void SetRetention(int value)
Definition TableInput.h:115
bool StorageDescriptorHasBeenSet() const
Definition TableInput.h:125
TableInput & WithParameters(ParametersT &&value)
Definition TableInput.h:203
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