AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Partition.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/StorageDescriptor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue {
24namespace Model {
25
31class Partition {
32 public:
33 AWS_GLUE_API Partition() = default;
34 AWS_GLUE_API Partition(Aws::Utils::Json::JsonView jsonValue);
37
39
42 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
43 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
44 template <typename ValuesT = Aws::Vector<Aws::String>>
45 void SetValues(ValuesT&& value) {
46 m_valuesHasBeenSet = true;
47 m_values = std::forward<ValuesT>(value);
48 }
49 template <typename ValuesT = Aws::Vector<Aws::String>>
50 Partition& WithValues(ValuesT&& value) {
51 SetValues(std::forward<ValuesT>(value));
52 return *this;
53 }
54 template <typename ValuesT = Aws::String>
55 Partition& AddValues(ValuesT&& value) {
56 m_valuesHasBeenSet = true;
57 m_values.emplace_back(std::forward<ValuesT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
67 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
68 template <typename DatabaseNameT = Aws::String>
69 void SetDatabaseName(DatabaseNameT&& value) {
70 m_databaseNameHasBeenSet = true;
71 m_databaseName = std::forward<DatabaseNameT>(value);
72 }
73 template <typename DatabaseNameT = Aws::String>
74 Partition& WithDatabaseName(DatabaseNameT&& value) {
75 SetDatabaseName(std::forward<DatabaseNameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetTableName() const { return m_tableName; }
85 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
86 template <typename TableNameT = Aws::String>
87 void SetTableName(TableNameT&& value) {
88 m_tableNameHasBeenSet = true;
89 m_tableName = std::forward<TableNameT>(value);
90 }
91 template <typename TableNameT = Aws::String>
92 Partition& WithTableName(TableNameT&& value) {
93 SetTableName(std::forward<TableNameT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
103 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
104 template <typename CreationTimeT = Aws::Utils::DateTime>
105 void SetCreationTime(CreationTimeT&& value) {
106 m_creationTimeHasBeenSet = true;
107 m_creationTime = std::forward<CreationTimeT>(value);
108 }
109 template <typename CreationTimeT = Aws::Utils::DateTime>
110 Partition& WithCreationTime(CreationTimeT&& value) {
111 SetCreationTime(std::forward<CreationTimeT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetLastAccessTime() const { return m_lastAccessTime; }
121 inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; }
122 template <typename LastAccessTimeT = Aws::Utils::DateTime>
123 void SetLastAccessTime(LastAccessTimeT&& value) {
124 m_lastAccessTimeHasBeenSet = true;
125 m_lastAccessTime = std::forward<LastAccessTimeT>(value);
126 }
127 template <typename LastAccessTimeT = Aws::Utils::DateTime>
128 Partition& WithLastAccessTime(LastAccessTimeT&& value) {
129 SetLastAccessTime(std::forward<LastAccessTimeT>(value));
130 return *this;
131 }
133
135
139 inline const StorageDescriptor& GetStorageDescriptor() const { return m_storageDescriptor; }
140 inline bool StorageDescriptorHasBeenSet() const { return m_storageDescriptorHasBeenSet; }
141 template <typename StorageDescriptorT = StorageDescriptor>
142 void SetStorageDescriptor(StorageDescriptorT&& value) {
143 m_storageDescriptorHasBeenSet = true;
144 m_storageDescriptor = std::forward<StorageDescriptorT>(value);
145 }
146 template <typename StorageDescriptorT = StorageDescriptor>
147 Partition& WithStorageDescriptor(StorageDescriptorT&& value) {
148 SetStorageDescriptor(std::forward<StorageDescriptorT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
158 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
159 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
160 void SetParameters(ParametersT&& value) {
161 m_parametersHasBeenSet = true;
162 m_parameters = std::forward<ParametersT>(value);
163 }
164 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
165 Partition& WithParameters(ParametersT&& value) {
166 SetParameters(std::forward<ParametersT>(value));
167 return *this;
168 }
169 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
170 Partition& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
171 m_parametersHasBeenSet = true;
172 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
173 return *this;
174 }
176
178
182 inline const Aws::Utils::DateTime& GetLastAnalyzedTime() const { return m_lastAnalyzedTime; }
183 inline bool LastAnalyzedTimeHasBeenSet() const { return m_lastAnalyzedTimeHasBeenSet; }
184 template <typename LastAnalyzedTimeT = Aws::Utils::DateTime>
185 void SetLastAnalyzedTime(LastAnalyzedTimeT&& value) {
186 m_lastAnalyzedTimeHasBeenSet = true;
187 m_lastAnalyzedTime = std::forward<LastAnalyzedTimeT>(value);
188 }
189 template <typename LastAnalyzedTimeT = Aws::Utils::DateTime>
190 Partition& WithLastAnalyzedTime(LastAnalyzedTimeT&& value) {
191 SetLastAnalyzedTime(std::forward<LastAnalyzedTimeT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
201 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
202 template <typename CatalogIdT = Aws::String>
203 void SetCatalogId(CatalogIdT&& value) {
204 m_catalogIdHasBeenSet = true;
205 m_catalogId = std::forward<CatalogIdT>(value);
206 }
207 template <typename CatalogIdT = Aws::String>
208 Partition& WithCatalogId(CatalogIdT&& value) {
209 SetCatalogId(std::forward<CatalogIdT>(value));
210 return *this;
211 }
213 private:
215
216 Aws::String m_databaseName;
217
218 Aws::String m_tableName;
219
220 Aws::Utils::DateTime m_creationTime{};
221
222 Aws::Utils::DateTime m_lastAccessTime{};
223
224 StorageDescriptor m_storageDescriptor;
225
227
228 Aws::Utils::DateTime m_lastAnalyzedTime{};
229
230 Aws::String m_catalogId;
231 bool m_valuesHasBeenSet = false;
232 bool m_databaseNameHasBeenSet = false;
233 bool m_tableNameHasBeenSet = false;
234 bool m_creationTimeHasBeenSet = false;
235 bool m_lastAccessTimeHasBeenSet = false;
236 bool m_storageDescriptorHasBeenSet = false;
237 bool m_parametersHasBeenSet = false;
238 bool m_lastAnalyzedTimeHasBeenSet = false;
239 bool m_catalogIdHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace Glue
244} // namespace Aws
Partition & WithLastAnalyzedTime(LastAnalyzedTimeT &&value)
Definition Partition.h:190
Partition & WithCreationTime(CreationTimeT &&value)
Definition Partition.h:110
void SetCatalogId(CatalogIdT &&value)
Definition Partition.h:203
const Aws::String & GetDatabaseName() const
Definition Partition.h:66
void SetDatabaseName(DatabaseNameT &&value)
Definition Partition.h:69
void SetCreationTime(CreationTimeT &&value)
Definition Partition.h:105
AWS_GLUE_API Partition()=default
Partition & WithLastAccessTime(LastAccessTimeT &&value)
Definition Partition.h:128
bool LastAccessTimeHasBeenSet() const
Definition Partition.h:121
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Partition & WithCatalogId(CatalogIdT &&value)
Definition Partition.h:208
bool LastAnalyzedTimeHasBeenSet() const
Definition Partition.h:183
bool CatalogIdHasBeenSet() const
Definition Partition.h:201
Partition & WithStorageDescriptor(StorageDescriptorT &&value)
Definition Partition.h:147
const Aws::Utils::DateTime & GetLastAccessTime() const
Definition Partition.h:120
bool DatabaseNameHasBeenSet() const
Definition Partition.h:67
const Aws::Vector< Aws::String > & GetValues() const
Definition Partition.h:42
const StorageDescriptor & GetStorageDescriptor() const
Definition Partition.h:139
Partition & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Partition.h:170
bool TableNameHasBeenSet() const
Definition Partition.h:85
Partition & WithTableName(TableNameT &&value)
Definition Partition.h:92
const Aws::String & GetCatalogId() const
Definition Partition.h:200
bool CreationTimeHasBeenSet() const
Definition Partition.h:103
Partition & WithValues(ValuesT &&value)
Definition Partition.h:50
AWS_GLUE_API Partition(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastAnalyzedTime() const
Definition Partition.h:182
bool ParametersHasBeenSet() const
Definition Partition.h:158
void SetStorageDescriptor(StorageDescriptorT &&value)
Definition Partition.h:142
Partition & WithParameters(ParametersT &&value)
Definition Partition.h:165
void SetTableName(TableNameT &&value)
Definition Partition.h:87
void SetLastAccessTime(LastAccessTimeT &&value)
Definition Partition.h:123
const Aws::Utils::DateTime & GetCreationTime() const
Definition Partition.h:102
Partition & WithDatabaseName(DatabaseNameT &&value)
Definition Partition.h:74
void SetLastAnalyzedTime(LastAnalyzedTimeT &&value)
Definition Partition.h:185
AWS_GLUE_API Partition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetParameters(ParametersT &&value)
Definition Partition.h:160
Partition & AddValues(ValuesT &&value)
Definition Partition.h:55
const Aws::String & GetTableName() const
Definition Partition.h:84
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition Partition.h:157
void SetValues(ValuesT &&value)
Definition Partition.h:45
bool StorageDescriptorHasBeenSet() const
Definition Partition.h:140
bool ValuesHasBeenSet() const
Definition Partition.h:43
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