AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TableMetadata.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/athena/model/Column.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Athena
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_ATHENA_API TableMetadata();
39 AWS_ATHENA_API TableMetadata(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline TableMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline TableMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline TableMetadata& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
63 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
64 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
65 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
66 inline TableMetadata& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
67 inline TableMetadata& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetLastAccessTime() const{ return m_lastAccessTime; }
75 inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; }
76 inline void SetLastAccessTime(const Aws::Utils::DateTime& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = value; }
77 inline void SetLastAccessTime(Aws::Utils::DateTime&& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = std::move(value); }
78 inline TableMetadata& WithLastAccessTime(const Aws::Utils::DateTime& value) { SetLastAccessTime(value); return *this;}
79 inline TableMetadata& WithLastAccessTime(Aws::Utils::DateTime&& value) { SetLastAccessTime(std::move(value)); return *this;}
81
83
87 inline const Aws::String& GetTableType() const{ return m_tableType; }
88 inline bool TableTypeHasBeenSet() const { return m_tableTypeHasBeenSet; }
89 inline void SetTableType(const Aws::String& value) { m_tableTypeHasBeenSet = true; m_tableType = value; }
90 inline void SetTableType(Aws::String&& value) { m_tableTypeHasBeenSet = true; m_tableType = std::move(value); }
91 inline void SetTableType(const char* value) { m_tableTypeHasBeenSet = true; m_tableType.assign(value); }
92 inline TableMetadata& WithTableType(const Aws::String& value) { SetTableType(value); return *this;}
93 inline TableMetadata& WithTableType(Aws::String&& value) { SetTableType(std::move(value)); return *this;}
94 inline TableMetadata& WithTableType(const char* value) { SetTableType(value); return *this;}
96
98
101 inline const Aws::Vector<Column>& GetColumns() const{ return m_columns; }
102 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
103 inline void SetColumns(const Aws::Vector<Column>& value) { m_columnsHasBeenSet = true; m_columns = value; }
104 inline void SetColumns(Aws::Vector<Column>&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); }
105 inline TableMetadata& WithColumns(const Aws::Vector<Column>& value) { SetColumns(value); return *this;}
106 inline TableMetadata& WithColumns(Aws::Vector<Column>&& value) { SetColumns(std::move(value)); return *this;}
107 inline TableMetadata& AddColumns(const Column& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; }
108 inline TableMetadata& AddColumns(Column&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; }
110
112
115 inline const Aws::Vector<Column>& GetPartitionKeys() const{ return m_partitionKeys; }
116 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
117 inline void SetPartitionKeys(const Aws::Vector<Column>& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = value; }
118 inline void SetPartitionKeys(Aws::Vector<Column>&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::move(value); }
119 inline TableMetadata& WithPartitionKeys(const Aws::Vector<Column>& value) { SetPartitionKeys(value); return *this;}
120 inline TableMetadata& WithPartitionKeys(Aws::Vector<Column>&& value) { SetPartitionKeys(std::move(value)); return *this;}
121 inline TableMetadata& AddPartitionKeys(const Column& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(value); return *this; }
122 inline TableMetadata& AddPartitionKeys(Column&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(std::move(value)); return *this; }
124
126
129 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
130 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
131 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
132 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
134 inline TableMetadata& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
135 inline TableMetadata& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
136 inline TableMetadata& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
137 inline TableMetadata& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
138 inline TableMetadata& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
139 inline TableMetadata& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
140 inline TableMetadata& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
141 inline TableMetadata& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
143 private:
144
145 Aws::String m_name;
146 bool m_nameHasBeenSet = false;
147
148 Aws::Utils::DateTime m_createTime;
149 bool m_createTimeHasBeenSet = false;
150
151 Aws::Utils::DateTime m_lastAccessTime;
152 bool m_lastAccessTimeHasBeenSet = false;
153
154 Aws::String m_tableType;
155 bool m_tableTypeHasBeenSet = false;
156
157 Aws::Vector<Column> m_columns;
158 bool m_columnsHasBeenSet = false;
159
160 Aws::Vector<Column> m_partitionKeys;
161 bool m_partitionKeysHasBeenSet = false;
162
164 bool m_parametersHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Athena
169} // namespace Aws
TableMetadata & AddPartitionKeys(Column &&value)
TableMetadata & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetName(const Aws::String &value)
TableMetadata & WithTableType(const char *value)
void SetLastAccessTime(const Aws::Utils::DateTime &value)
TableMetadata & AddParameters(Aws::String &&key, const Aws::String &value)
void SetName(const char *value)
void SetLastAccessTime(Aws::Utils::DateTime &&value)
TableMetadata & AddParameters(const char *key, const char *value)
void SetPartitionKeys(Aws::Vector< Column > &&value)
TableMetadata & WithColumns(Aws::Vector< Column > &&value)
TableMetadata & WithColumns(const Aws::Vector< Column > &value)
void SetCreateTime(const Aws::Utils::DateTime &value)
TableMetadata & WithName(const char *value)
TableMetadata & WithCreateTime(Aws::Utils::DateTime &&value)
TableMetadata & WithPartitionKeys(const Aws::Vector< Column > &value)
TableMetadata & WithTableType(Aws::String &&value)
const Aws::Utils::DateTime & GetLastAccessTime() const
TableMetadata & AddColumns(const Column &value)
const Aws::Utils::DateTime & GetCreateTime() const
TableMetadata & AddColumns(Column &&value)
TableMetadata & WithPartitionKeys(Aws::Vector< Column > &&value)
const Aws::String & GetName() const
TableMetadata & AddParameters(const Aws::String &key, Aws::String &&value)
TableMetadata & WithName(const Aws::String &value)
void SetTableType(const Aws::String &value)
void SetTableType(Aws::String &&value)
TableMetadata & WithCreateTime(const Aws::Utils::DateTime &value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetCreateTime(Aws::Utils::DateTime &&value)
TableMetadata & AddPartitionKeys(const Column &value)
void SetColumns(Aws::Vector< Column > &&value)
void SetTableType(const char *value)
TableMetadata & AddParameters(const Aws::String &key, const Aws::String &value)
const Aws::Vector< Column > & GetColumns() const
void SetPartitionKeys(const Aws::Vector< Column > &value)
void SetColumns(const Aws::Vector< Column > &value)
TableMetadata & WithLastAccessTime(const Aws::Utils::DateTime &value)
const Aws::Vector< Column > & GetPartitionKeys() const
AWS_ATHENA_API TableMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
TableMetadata & AddParameters(Aws::String &&key, Aws::String &&value)
TableMetadata & WithLastAccessTime(Aws::Utils::DateTime &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
AWS_ATHENA_API TableMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
TableMetadata & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetTableType() const
TableMetadata & WithTableType(const Aws::String &value)
TableMetadata & AddParameters(Aws::String &&key, const char *value)
TableMetadata & WithName(Aws::String &&value)
TableMetadata & AddParameters(const char *key, Aws::String &&value)
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