AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Partition.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/glue/model/StorageDescriptor.h>
12#include <aws/core/utils/memory/stl/AWSMap.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 Glue
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_GLUE_API Partition() = default;
39 AWS_GLUE_API Partition(Aws::Utils::Json::JsonView jsonValue);
42
43
45
48 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
49 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
50 template<typename ValuesT = Aws::Vector<Aws::String>>
51 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
52 template<typename ValuesT = Aws::Vector<Aws::String>>
53 Partition& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
54 template<typename ValuesT = Aws::String>
55 Partition& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
57
59
62 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
63 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
64 template<typename DatabaseNameT = Aws::String>
65 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
66 template<typename DatabaseNameT = Aws::String>
67 Partition& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetTableName() const { return m_tableName; }
75 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
76 template<typename TableNameT = Aws::String>
77 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
78 template<typename TableNameT = Aws::String>
79 Partition& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
87 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
88 template<typename CreationTimeT = Aws::Utils::DateTime>
89 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
90 template<typename CreationTimeT = Aws::Utils::DateTime>
91 Partition& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetLastAccessTime() const { return m_lastAccessTime; }
99 inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; }
100 template<typename LastAccessTimeT = Aws::Utils::DateTime>
101 void SetLastAccessTime(LastAccessTimeT&& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = std::forward<LastAccessTimeT>(value); }
102 template<typename LastAccessTimeT = Aws::Utils::DateTime>
103 Partition& WithLastAccessTime(LastAccessTimeT&& value) { SetLastAccessTime(std::forward<LastAccessTimeT>(value)); return *this;}
105
107
111 inline const StorageDescriptor& GetStorageDescriptor() const { return m_storageDescriptor; }
112 inline bool StorageDescriptorHasBeenSet() const { return m_storageDescriptorHasBeenSet; }
113 template<typename StorageDescriptorT = StorageDescriptor>
114 void SetStorageDescriptor(StorageDescriptorT&& value) { m_storageDescriptorHasBeenSet = true; m_storageDescriptor = std::forward<StorageDescriptorT>(value); }
115 template<typename StorageDescriptorT = StorageDescriptor>
116 Partition& WithStorageDescriptor(StorageDescriptorT&& value) { SetStorageDescriptor(std::forward<StorageDescriptorT>(value)); return *this;}
118
120
123 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
124 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
125 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
126 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
127 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
128 Partition& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
129 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
130 Partition& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
131 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
132 }
134
136
140 inline const Aws::Utils::DateTime& GetLastAnalyzedTime() const { return m_lastAnalyzedTime; }
141 inline bool LastAnalyzedTimeHasBeenSet() const { return m_lastAnalyzedTimeHasBeenSet; }
142 template<typename LastAnalyzedTimeT = Aws::Utils::DateTime>
143 void SetLastAnalyzedTime(LastAnalyzedTimeT&& value) { m_lastAnalyzedTimeHasBeenSet = true; m_lastAnalyzedTime = std::forward<LastAnalyzedTimeT>(value); }
144 template<typename LastAnalyzedTimeT = Aws::Utils::DateTime>
145 Partition& WithLastAnalyzedTime(LastAnalyzedTimeT&& value) { SetLastAnalyzedTime(std::forward<LastAnalyzedTimeT>(value)); return *this;}
147
149
152 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
153 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
154 template<typename CatalogIdT = Aws::String>
155 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
156 template<typename CatalogIdT = Aws::String>
157 Partition& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
159 private:
160
162 bool m_valuesHasBeenSet = false;
163
164 Aws::String m_databaseName;
165 bool m_databaseNameHasBeenSet = false;
166
167 Aws::String m_tableName;
168 bool m_tableNameHasBeenSet = false;
169
170 Aws::Utils::DateTime m_creationTime{};
171 bool m_creationTimeHasBeenSet = false;
172
173 Aws::Utils::DateTime m_lastAccessTime{};
174 bool m_lastAccessTimeHasBeenSet = false;
175
176 StorageDescriptor m_storageDescriptor;
177 bool m_storageDescriptorHasBeenSet = false;
178
180 bool m_parametersHasBeenSet = false;
181
182 Aws::Utils::DateTime m_lastAnalyzedTime{};
183 bool m_lastAnalyzedTimeHasBeenSet = false;
184
185 Aws::String m_catalogId;
186 bool m_catalogIdHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace Glue
191} // namespace Aws
Partition & WithLastAnalyzedTime(LastAnalyzedTimeT &&value)
Definition Partition.h:145
Partition & WithCreationTime(CreationTimeT &&value)
Definition Partition.h:91
void SetCatalogId(CatalogIdT &&value)
Definition Partition.h:155
const Aws::String & GetDatabaseName() const
Definition Partition.h:62
void SetDatabaseName(DatabaseNameT &&value)
Definition Partition.h:65
void SetCreationTime(CreationTimeT &&value)
Definition Partition.h:89
AWS_GLUE_API Partition()=default
Partition & WithLastAccessTime(LastAccessTimeT &&value)
Definition Partition.h:103
bool LastAccessTimeHasBeenSet() const
Definition Partition.h:99
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Partition & WithCatalogId(CatalogIdT &&value)
Definition Partition.h:157
bool LastAnalyzedTimeHasBeenSet() const
Definition Partition.h:141
bool CatalogIdHasBeenSet() const
Definition Partition.h:153
Partition & WithStorageDescriptor(StorageDescriptorT &&value)
Definition Partition.h:116
const Aws::Utils::DateTime & GetLastAccessTime() const
Definition Partition.h:98
bool DatabaseNameHasBeenSet() const
Definition Partition.h:63
const Aws::Vector< Aws::String > & GetValues() const
Definition Partition.h:48
const StorageDescriptor & GetStorageDescriptor() const
Definition Partition.h:111
Partition & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Partition.h:130
bool TableNameHasBeenSet() const
Definition Partition.h:75
Partition & WithTableName(TableNameT &&value)
Definition Partition.h:79
const Aws::String & GetCatalogId() const
Definition Partition.h:152
bool CreationTimeHasBeenSet() const
Definition Partition.h:87
Partition & WithValues(ValuesT &&value)
Definition Partition.h:53
AWS_GLUE_API Partition(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastAnalyzedTime() const
Definition Partition.h:140
bool ParametersHasBeenSet() const
Definition Partition.h:124
void SetStorageDescriptor(StorageDescriptorT &&value)
Definition Partition.h:114
Partition & WithParameters(ParametersT &&value)
Definition Partition.h:128
void SetTableName(TableNameT &&value)
Definition Partition.h:77
void SetLastAccessTime(LastAccessTimeT &&value)
Definition Partition.h:101
const Aws::Utils::DateTime & GetCreationTime() const
Definition Partition.h:86
Partition & WithDatabaseName(DatabaseNameT &&value)
Definition Partition.h:67
void SetLastAnalyzedTime(LastAnalyzedTimeT &&value)
Definition Partition.h:143
AWS_GLUE_API Partition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetParameters(ParametersT &&value)
Definition Partition.h:126
Partition & AddValues(ValuesT &&value)
Definition Partition.h:55
const Aws::String & GetTableName() const
Definition Partition.h:74
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition Partition.h:123
void SetValues(ValuesT &&value)
Definition Partition.h:51
bool StorageDescriptorHasBeenSet() const
Definition Partition.h:112
bool ValuesHasBeenSet() const
Definition Partition.h:49
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