AWS SDK for C++  1.9.105
AWS SDK for C++
TableMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace Athena
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
72  inline TableMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
77  inline TableMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
82  inline TableMetadata& WithName(const char* value) { SetName(value); return *this;}
83 
84 
88  inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
89 
93  inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
94 
98  inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
99 
103  inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
104 
108  inline TableMetadata& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
109 
113  inline TableMetadata& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
114 
115 
119  inline const Aws::Utils::DateTime& GetLastAccessTime() const{ return m_lastAccessTime; }
120 
124  inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; }
125 
129  inline void SetLastAccessTime(const Aws::Utils::DateTime& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = value; }
130 
134  inline void SetLastAccessTime(Aws::Utils::DateTime&& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = std::move(value); }
135 
139  inline TableMetadata& WithLastAccessTime(const Aws::Utils::DateTime& value) { SetLastAccessTime(value); return *this;}
140 
144  inline TableMetadata& WithLastAccessTime(Aws::Utils::DateTime&& value) { SetLastAccessTime(std::move(value)); return *this;}
145 
146 
151  inline const Aws::String& GetTableType() const{ return m_tableType; }
152 
157  inline bool TableTypeHasBeenSet() const { return m_tableTypeHasBeenSet; }
158 
163  inline void SetTableType(const Aws::String& value) { m_tableTypeHasBeenSet = true; m_tableType = value; }
164 
169  inline void SetTableType(Aws::String&& value) { m_tableTypeHasBeenSet = true; m_tableType = std::move(value); }
170 
175  inline void SetTableType(const char* value) { m_tableTypeHasBeenSet = true; m_tableType.assign(value); }
176 
181  inline TableMetadata& WithTableType(const Aws::String& value) { SetTableType(value); return *this;}
182 
187  inline TableMetadata& WithTableType(Aws::String&& value) { SetTableType(std::move(value)); return *this;}
188 
193  inline TableMetadata& WithTableType(const char* value) { SetTableType(value); return *this;}
194 
195 
199  inline const Aws::Vector<Column>& GetColumns() const{ return m_columns; }
200 
204  inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
205 
209  inline void SetColumns(const Aws::Vector<Column>& value) { m_columnsHasBeenSet = true; m_columns = value; }
210 
214  inline void SetColumns(Aws::Vector<Column>&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); }
215 
219  inline TableMetadata& WithColumns(const Aws::Vector<Column>& value) { SetColumns(value); return *this;}
220 
224  inline TableMetadata& WithColumns(Aws::Vector<Column>&& value) { SetColumns(std::move(value)); return *this;}
225 
229  inline TableMetadata& AddColumns(const Column& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; }
230 
234  inline TableMetadata& AddColumns(Column&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; }
235 
236 
240  inline const Aws::Vector<Column>& GetPartitionKeys() const{ return m_partitionKeys; }
241 
245  inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
246 
250  inline void SetPartitionKeys(const Aws::Vector<Column>& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = value; }
251 
255  inline void SetPartitionKeys(Aws::Vector<Column>&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::move(value); }
256 
260  inline TableMetadata& WithPartitionKeys(const Aws::Vector<Column>& value) { SetPartitionKeys(value); return *this;}
261 
265  inline TableMetadata& WithPartitionKeys(Aws::Vector<Column>&& value) { SetPartitionKeys(std::move(value)); return *this;}
266 
270  inline TableMetadata& AddPartitionKeys(const Column& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(value); return *this; }
271 
275  inline TableMetadata& AddPartitionKeys(Column&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(std::move(value)); return *this; }
276 
277 
281  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
282 
286  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
287 
291  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
292 
296  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
297 
301  inline TableMetadata& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
302 
306  inline TableMetadata& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
307 
311  inline TableMetadata& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
312 
316  inline TableMetadata& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
317 
321  inline TableMetadata& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
322 
326  inline TableMetadata& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
327 
331  inline TableMetadata& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
332 
336  inline TableMetadata& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
337 
341  inline TableMetadata& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
342 
343  private:
344 
345  Aws::String m_name;
346  bool m_nameHasBeenSet;
347 
348  Aws::Utils::DateTime m_createTime;
349  bool m_createTimeHasBeenSet;
350 
351  Aws::Utils::DateTime m_lastAccessTime;
352  bool m_lastAccessTimeHasBeenSet;
353 
354  Aws::String m_tableType;
355  bool m_tableTypeHasBeenSet;
356 
357  Aws::Vector<Column> m_columns;
358  bool m_columnsHasBeenSet;
359 
360  Aws::Vector<Column> m_partitionKeys;
361  bool m_partitionKeysHasBeenSet;
362 
364  bool m_parametersHasBeenSet;
365  };
366 
367 } // namespace Model
368 } // namespace Athena
369 } // namespace Aws
Aws::Athena::Model::TableMetadata::AddParameters
TableMetadata & AddParameters(Aws::String &&key, const char *value)
Definition: TableMetadata.h:336
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Athena::Model::TableMetadata::WithName
TableMetadata & WithName(Aws::String &&value)
Definition: TableMetadata.h:77
Aws::Athena::Model::TableMetadata::SetParameters
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TableMetadata.h:291
Aws::Athena::Model::TableMetadata::WithTableType
TableMetadata & WithTableType(const char *value)
Definition: TableMetadata.h:193
Aws::Athena::Model::TableMetadata::CreateTimeHasBeenSet
bool CreateTimeHasBeenSet() const
Definition: TableMetadata.h:93
Aws::Athena::Model::TableMetadata::WithCreateTime
TableMetadata & WithCreateTime(const Aws::Utils::DateTime &value)
Definition: TableMetadata.h:108
Aws::Athena::Model::TableMetadata::SetTableType
void SetTableType(Aws::String &&value)
Definition: TableMetadata.h:169
Aws::Athena::Model::TableMetadata::TableTypeHasBeenSet
bool TableTypeHasBeenSet() const
Definition: TableMetadata.h:157
Aws::Athena::Model::TableMetadata::SetPartitionKeys
void SetPartitionKeys(Aws::Vector< Column > &&value)
Definition: TableMetadata.h:255
Aws::Athena::Model::TableMetadata::GetCreateTime
const Aws::Utils::DateTime & GetCreateTime() const
Definition: TableMetadata.h:88
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::TableMetadata::WithName
TableMetadata & WithName(const char *value)
Definition: TableMetadata.h:82
DateTime.h
Aws::Athena::Model::TableMetadata::AddParameters
TableMetadata & AddParameters(const char *key, const char *value)
Definition: TableMetadata.h:341
Aws::Athena::Model::TableMetadata::WithColumns
TableMetadata & WithColumns(const Aws::Vector< Column > &value)
Definition: TableMetadata.h:219
Aws::Athena::Model::TableMetadata::SetName
void SetName(const char *value)
Definition: TableMetadata.h:67
Aws::Athena::Model::TableMetadata::SetLastAccessTime
void SetLastAccessTime(const Aws::Utils::DateTime &value)
Definition: TableMetadata.h:129
Aws::Athena::Model::TableMetadata::AddParameters
TableMetadata & AddParameters(Aws::String &&key, Aws::String &&value)
Definition: TableMetadata.h:326
Aws::Athena::Model::TableMetadata::AddParameters
TableMetadata & AddParameters(const char *key, Aws::String &&value)
Definition: TableMetadata.h:331
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Athena::Model::TableMetadata::operator=
TableMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSVector.h
Aws::Athena::Model::TableMetadata::GetPartitionKeys
const Aws::Vector< Column > & GetPartitionKeys() const
Definition: TableMetadata.h:240
Aws::Athena::Model::TableMetadata::AddColumns
TableMetadata & AddColumns(Column &&value)
Definition: TableMetadata.h:234
Aws::Athena::Model::TableMetadata::AddParameters
TableMetadata & AddParameters(Aws::String &&key, const Aws::String &value)
Definition: TableMetadata.h:316
Aws::Athena::Model::TableMetadata::GetName
const Aws::String & GetName() const
Definition: TableMetadata.h:47
Aws::Athena::Model::TableMetadata::AddParameters
TableMetadata & AddParameters(const Aws::String &key, Aws::String &&value)
Definition: TableMetadata.h:321
Aws::Athena::Model::TableMetadata::GetLastAccessTime
const Aws::Utils::DateTime & GetLastAccessTime() const
Definition: TableMetadata.h:119
Aws::Athena::Model::TableMetadata::PartitionKeysHasBeenSet
bool PartitionKeysHasBeenSet() const
Definition: TableMetadata.h:245
Aws::Athena::Model::TableMetadata::WithTableType
TableMetadata & WithTableType(const Aws::String &value)
Definition: TableMetadata.h:181
Aws::Athena::Model::TableMetadata::SetColumns
void SetColumns(const Aws::Vector< Column > &value)
Definition: TableMetadata.h:209
Aws::Athena::Model::TableMetadata::WithPartitionKeys
TableMetadata & WithPartitionKeys(Aws::Vector< Column > &&value)
Definition: TableMetadata.h:265
Aws::Athena::Model::TableMetadata::WithParameters
TableMetadata & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TableMetadata.h:301
Aws::Athena::Model::TableMetadata::ColumnsHasBeenSet
bool ColumnsHasBeenSet() const
Definition: TableMetadata.h:204
Aws::Athena::Model::TableMetadata::SetName
void SetName(const Aws::String &value)
Definition: TableMetadata.h:57
Aws::Athena::Model::TableMetadata::NameHasBeenSet
bool NameHasBeenSet() const
Definition: TableMetadata.h:52
Aws::Athena::Model::TableMetadata::SetName
void SetName(Aws::String &&value)
Definition: TableMetadata.h:62
Aws::Athena::Model::TableMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Athena::Model::TableMetadata::AddColumns
TableMetadata & AddColumns(const Column &value)
Definition: TableMetadata.h:229
Aws::Athena::Model::TableMetadata::TableMetadata
TableMetadata()
Aws::Athena::Model::Column
Definition: Column.h:32
Aws::Athena::Model::TableMetadata::AddPartitionKeys
TableMetadata & AddPartitionKeys(const Column &value)
Definition: TableMetadata.h:270
Aws::Athena::Model::TableMetadata::WithColumns
TableMetadata & WithColumns(Aws::Vector< Column > &&value)
Definition: TableMetadata.h:224
Aws::Athena::Model::TableMetadata::SetLastAccessTime
void SetLastAccessTime(Aws::Utils::DateTime &&value)
Definition: TableMetadata.h:134
Aws::Athena::Model::TableMetadata::WithTableType
TableMetadata & WithTableType(Aws::String &&value)
Definition: TableMetadata.h:187
Aws::Athena::Model::TableMetadata::AddPartitionKeys
TableMetadata & AddPartitionKeys(Column &&value)
Definition: TableMetadata.h:275
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Athena_EXPORTS.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Athena::Model::TableMetadata::WithPartitionKeys
TableMetadata & WithPartitionKeys(const Aws::Vector< Column > &value)
Definition: TableMetadata.h:260
Column.h
Aws::Athena::Model::TableMetadata::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: TableMetadata.h:286
Aws::Athena::Model::TableMetadata::GetParameters
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition: TableMetadata.h:281
Aws::Athena::Model::TableMetadata::SetTableType
void SetTableType(const Aws::String &value)
Definition: TableMetadata.h:163
Aws::Athena::Model::TableMetadata::WithLastAccessTime
TableMetadata & WithLastAccessTime(Aws::Utils::DateTime &&value)
Definition: TableMetadata.h:144
Aws::Athena::Model::TableMetadata::WithName
TableMetadata & WithName(const Aws::String &value)
Definition: TableMetadata.h:72
Aws::Athena::Model::TableMetadata::LastAccessTimeHasBeenSet
bool LastAccessTimeHasBeenSet() const
Definition: TableMetadata.h:124
Aws::Athena::Model::TableMetadata::TableMetadata
TableMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::TableMetadata::GetTableType
const Aws::String & GetTableType() const
Definition: TableMetadata.h:151
Aws::Athena::Model::TableMetadata::AddParameters
TableMetadata & AddParameters(const Aws::String &key, const Aws::String &value)
Definition: TableMetadata.h:311
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::TableMetadata::SetTableType
void SetTableType(const char *value)
Definition: TableMetadata.h:175
Aws::Athena::Model::TableMetadata::WithLastAccessTime
TableMetadata & WithLastAccessTime(const Aws::Utils::DateTime &value)
Definition: TableMetadata.h:139
Aws::Athena::Model::TableMetadata::SetCreateTime
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition: TableMetadata.h:103
Aws::Athena::Model::TableMetadata::SetColumns
void SetColumns(Aws::Vector< Column > &&value)
Definition: TableMetadata.h:214
Aws::Athena::Model::TableMetadata::GetColumns
const Aws::Vector< Column > & GetColumns() const
Definition: TableMetadata.h:199
Aws::Athena::Model::TableMetadata
Definition: TableMetadata.h:36
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::TableMetadata::SetParameters
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TableMetadata.h:296
Aws::Athena::Model::TableMetadata::WithParameters
TableMetadata & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TableMetadata.h:306
Aws::Athena::Model::TableMetadata::WithCreateTime
TableMetadata & WithCreateTime(Aws::Utils::DateTime &&value)
Definition: TableMetadata.h:113
Aws::Athena::Model::TableMetadata::SetCreateTime
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition: TableMetadata.h:98
Aws::Athena::Model::TableMetadata::SetPartitionKeys
void SetPartitionKeys(const Aws::Vector< Column > &value)
Definition: TableMetadata.h:250
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19