AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
51 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
52 inline Partition& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
53 inline Partition& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
54 inline Partition& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
55 inline Partition& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
56 inline Partition& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
58
60
63 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
64 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
65 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
66 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
67 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
68 inline Partition& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
69 inline Partition& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
70 inline Partition& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
72
74
77 inline const Aws::String& GetTableName() const{ return m_tableName; }
78 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
79 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
80 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
81 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
82 inline Partition& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
83 inline Partition& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
84 inline Partition& WithTableName(const char* value) { SetTableName(value); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
92 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
93 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
94 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
95 inline Partition& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
96 inline Partition& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetLastAccessTime() const{ return m_lastAccessTime; }
104 inline bool LastAccessTimeHasBeenSet() const { return m_lastAccessTimeHasBeenSet; }
105 inline void SetLastAccessTime(const Aws::Utils::DateTime& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = value; }
106 inline void SetLastAccessTime(Aws::Utils::DateTime&& value) { m_lastAccessTimeHasBeenSet = true; m_lastAccessTime = std::move(value); }
107 inline Partition& WithLastAccessTime(const Aws::Utils::DateTime& value) { SetLastAccessTime(value); return *this;}
108 inline Partition& WithLastAccessTime(Aws::Utils::DateTime&& value) { SetLastAccessTime(std::move(value)); return *this;}
110
112
116 inline const StorageDescriptor& GetStorageDescriptor() const{ return m_storageDescriptor; }
117 inline bool StorageDescriptorHasBeenSet() const { return m_storageDescriptorHasBeenSet; }
118 inline void SetStorageDescriptor(const StorageDescriptor& value) { m_storageDescriptorHasBeenSet = true; m_storageDescriptor = value; }
119 inline void SetStorageDescriptor(StorageDescriptor&& value) { m_storageDescriptorHasBeenSet = true; m_storageDescriptor = std::move(value); }
120 inline Partition& WithStorageDescriptor(const StorageDescriptor& value) { SetStorageDescriptor(value); return *this;}
121 inline Partition& WithStorageDescriptor(StorageDescriptor&& value) { SetStorageDescriptor(std::move(value)); return *this;}
123
125
128 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
129 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
130 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
131 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
132 inline Partition& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
133 inline Partition& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
134 inline Partition& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
135 inline Partition& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
136 inline Partition& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
137 inline Partition& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
138 inline Partition& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
139 inline Partition& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
140 inline Partition& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
142
144
148 inline const Aws::Utils::DateTime& GetLastAnalyzedTime() const{ return m_lastAnalyzedTime; }
149 inline bool LastAnalyzedTimeHasBeenSet() const { return m_lastAnalyzedTimeHasBeenSet; }
150 inline void SetLastAnalyzedTime(const Aws::Utils::DateTime& value) { m_lastAnalyzedTimeHasBeenSet = true; m_lastAnalyzedTime = value; }
151 inline void SetLastAnalyzedTime(Aws::Utils::DateTime&& value) { m_lastAnalyzedTimeHasBeenSet = true; m_lastAnalyzedTime = std::move(value); }
152 inline Partition& WithLastAnalyzedTime(const Aws::Utils::DateTime& value) { SetLastAnalyzedTime(value); return *this;}
153 inline Partition& WithLastAnalyzedTime(Aws::Utils::DateTime&& value) { SetLastAnalyzedTime(std::move(value)); return *this;}
155
157
160 inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
161 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
162 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
163 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
164 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
165 inline Partition& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
166 inline Partition& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
167 inline Partition& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
169 private:
170
172 bool m_valuesHasBeenSet = false;
173
174 Aws::String m_databaseName;
175 bool m_databaseNameHasBeenSet = false;
176
177 Aws::String m_tableName;
178 bool m_tableNameHasBeenSet = false;
179
180 Aws::Utils::DateTime m_creationTime;
181 bool m_creationTimeHasBeenSet = false;
182
183 Aws::Utils::DateTime m_lastAccessTime;
184 bool m_lastAccessTimeHasBeenSet = false;
185
186 StorageDescriptor m_storageDescriptor;
187 bool m_storageDescriptorHasBeenSet = false;
188
190 bool m_parametersHasBeenSet = false;
191
192 Aws::Utils::DateTime m_lastAnalyzedTime;
193 bool m_lastAnalyzedTimeHasBeenSet = false;
194
195 Aws::String m_catalogId;
196 bool m_catalogIdHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace Glue
201} // namespace Aws
Partition & WithDatabaseName(Aws::String &&value)
Definition Partition.h:69
Partition & WithCatalogId(const char *value)
Definition Partition.h:167
Partition & AddParameters(Aws::String &&key, const Aws::String &value)
Definition Partition.h:135
const Aws::String & GetDatabaseName() const
Definition Partition.h:63
void SetValues(Aws::Vector< Aws::String > &&value)
Definition Partition.h:51
Partition & WithValues(Aws::Vector< Aws::String > &&value)
Definition Partition.h:53
Partition & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition Partition.h:132
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Partition.h:94
Partition & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition Partition.h:133
Partition & AddParameters(const char *key, Aws::String &&value)
Definition Partition.h:138
bool LastAccessTimeHasBeenSet() const
Definition Partition.h:104
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
bool LastAnalyzedTimeHasBeenSet() const
Definition Partition.h:149
bool CatalogIdHasBeenSet() const
Definition Partition.h:161
const Aws::Utils::DateTime & GetLastAccessTime() const
Definition Partition.h:103
bool DatabaseNameHasBeenSet() const
Definition Partition.h:64
const Aws::Vector< Aws::String > & GetValues() const
Definition Partition.h:48
void SetCatalogId(const Aws::String &value)
Definition Partition.h:162
const StorageDescriptor & GetStorageDescriptor() const
Definition Partition.h:116
void SetLastAnalyzedTime(Aws::Utils::DateTime &&value)
Definition Partition.h:151
bool TableNameHasBeenSet() const
Definition Partition.h:78
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition Partition.h:130
Partition & WithTableName(Aws::String &&value)
Definition Partition.h:83
void SetDatabaseName(const char *value)
Definition Partition.h:67
Partition & WithStorageDescriptor(StorageDescriptor &&value)
Definition Partition.h:121
Partition & WithCatalogId(const Aws::String &value)
Definition Partition.h:165
void SetCatalogId(Aws::String &&value)
Definition Partition.h:163
const Aws::String & GetCatalogId() const
Definition Partition.h:160
void SetLastAnalyzedTime(const Aws::Utils::DateTime &value)
Definition Partition.h:150
void SetTableName(const char *value)
Definition Partition.h:81
bool CreationTimeHasBeenSet() const
Definition Partition.h:92
void SetCatalogId(const char *value)
Definition Partition.h:164
Partition & AddValues(Aws::String &&value)
Definition Partition.h:55
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Partition.h:93
AWS_GLUE_API Partition(Aws::Utils::Json::JsonView jsonValue)
void SetValues(const Aws::Vector< Aws::String > &value)
Definition Partition.h:50
Partition & WithLastAnalyzedTime(const Aws::Utils::DateTime &value)
Definition Partition.h:152
Partition & WithDatabaseName(const Aws::String &value)
Definition Partition.h:68
const Aws::Utils::DateTime & GetLastAnalyzedTime() const
Definition Partition.h:148
Partition & WithStorageDescriptor(const StorageDescriptor &value)
Definition Partition.h:120
Partition & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Partition.h:95
void SetLastAccessTime(Aws::Utils::DateTime &&value)
Definition Partition.h:106
bool ParametersHasBeenSet() const
Definition Partition.h:129
Partition & WithTableName(const Aws::String &value)
Definition Partition.h:82
void SetLastAccessTime(const Aws::Utils::DateTime &value)
Definition Partition.h:105
Partition & AddParameters(const Aws::String &key, const Aws::String &value)
Definition Partition.h:134
Partition & WithDatabaseName(const char *value)
Definition Partition.h:70
void SetTableName(const Aws::String &value)
Definition Partition.h:79
void SetStorageDescriptor(StorageDescriptor &&value)
Definition Partition.h:119
const Aws::Utils::DateTime & GetCreationTime() const
Definition Partition.h:91
void SetTableName(Aws::String &&value)
Definition Partition.h:80
Partition & AddParameters(Aws::String &&key, Aws::String &&value)
Definition Partition.h:137
Partition & WithTableName(const char *value)
Definition Partition.h:84
AWS_GLUE_API Partition & operator=(Aws::Utils::Json::JsonView jsonValue)
Partition & AddParameters(Aws::String &&key, const char *value)
Definition Partition.h:139
Partition & WithLastAnalyzedTime(Aws::Utils::DateTime &&value)
Definition Partition.h:153
Partition & AddParameters(const char *key, const char *value)
Definition Partition.h:140
Partition & AddParameters(const Aws::String &key, Aws::String &&value)
Definition Partition.h:136
Partition & WithLastAccessTime(const Aws::Utils::DateTime &value)
Definition Partition.h:107
void SetDatabaseName(Aws::String &&value)
Definition Partition.h:66
void SetStorageDescriptor(const StorageDescriptor &value)
Definition Partition.h:118
const Aws::String & GetTableName() const
Definition Partition.h:77
Partition & WithLastAccessTime(Aws::Utils::DateTime &&value)
Definition Partition.h:108
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition Partition.h:128
bool StorageDescriptorHasBeenSet() const
Definition Partition.h:117
Partition & AddValues(const char *value)
Definition Partition.h:56
Partition & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Partition.h:96
Partition & AddValues(const Aws::String &value)
Definition Partition.h:54
Partition & WithValues(const Aws::Vector< Aws::String > &value)
Definition Partition.h:52
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition Partition.h:131
bool ValuesHasBeenSet() const
Definition Partition.h:49
Partition & WithCatalogId(Aws::String &&value)
Definition Partition.h:166
void SetDatabaseName(const Aws::String &value)
Definition Partition.h:65
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