AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StorageDescriptor.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/glue/model/SerDeInfo.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/glue/model/SkewedInfo.h>
13#include <aws/glue/model/SchemaReference.h>
14#include <aws/glue/model/Column.h>
15#include <aws/glue/model/Order.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Glue
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_GLUE_API StorageDescriptor();
45
46
48
51 inline const Aws::Vector<Column>& GetColumns() const{ return m_columns; }
52 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
53 inline void SetColumns(const Aws::Vector<Column>& value) { m_columnsHasBeenSet = true; m_columns = value; }
54 inline void SetColumns(Aws::Vector<Column>&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); }
55 inline StorageDescriptor& WithColumns(const Aws::Vector<Column>& value) { SetColumns(value); return *this;}
56 inline StorageDescriptor& WithColumns(Aws::Vector<Column>&& value) { SetColumns(std::move(value)); return *this;}
57 inline StorageDescriptor& AddColumns(const Column& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; }
58 inline StorageDescriptor& AddColumns(Column&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; }
60
62
67 inline const Aws::String& GetLocation() const{ return m_location; }
68 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
69 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
70 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
71 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
72 inline StorageDescriptor& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
73 inline StorageDescriptor& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
74 inline StorageDescriptor& WithLocation(const char* value) { SetLocation(value); return *this;}
76
78
82 inline const Aws::Vector<Aws::String>& GetAdditionalLocations() const{ return m_additionalLocations; }
83 inline bool AdditionalLocationsHasBeenSet() const { return m_additionalLocationsHasBeenSet; }
84 inline void SetAdditionalLocations(const Aws::Vector<Aws::String>& value) { m_additionalLocationsHasBeenSet = true; m_additionalLocations = value; }
85 inline void SetAdditionalLocations(Aws::Vector<Aws::String>&& value) { m_additionalLocationsHasBeenSet = true; m_additionalLocations = std::move(value); }
88 inline StorageDescriptor& AddAdditionalLocations(const Aws::String& value) { m_additionalLocationsHasBeenSet = true; m_additionalLocations.push_back(value); return *this; }
89 inline StorageDescriptor& AddAdditionalLocations(Aws::String&& value) { m_additionalLocationsHasBeenSet = true; m_additionalLocations.push_back(std::move(value)); return *this; }
90 inline StorageDescriptor& AddAdditionalLocations(const char* value) { m_additionalLocationsHasBeenSet = true; m_additionalLocations.push_back(value); return *this; }
92
94
98 inline const Aws::String& GetInputFormat() const{ return m_inputFormat; }
99 inline bool InputFormatHasBeenSet() const { return m_inputFormatHasBeenSet; }
100 inline void SetInputFormat(const Aws::String& value) { m_inputFormatHasBeenSet = true; m_inputFormat = value; }
101 inline void SetInputFormat(Aws::String&& value) { m_inputFormatHasBeenSet = true; m_inputFormat = std::move(value); }
102 inline void SetInputFormat(const char* value) { m_inputFormatHasBeenSet = true; m_inputFormat.assign(value); }
103 inline StorageDescriptor& WithInputFormat(const Aws::String& value) { SetInputFormat(value); return *this;}
104 inline StorageDescriptor& WithInputFormat(Aws::String&& value) { SetInputFormat(std::move(value)); return *this;}
105 inline StorageDescriptor& WithInputFormat(const char* value) { SetInputFormat(value); return *this;}
107
109
113 inline const Aws::String& GetOutputFormat() const{ return m_outputFormat; }
114 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
115 inline void SetOutputFormat(const Aws::String& value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
116 inline void SetOutputFormat(Aws::String&& value) { m_outputFormatHasBeenSet = true; m_outputFormat = std::move(value); }
117 inline void SetOutputFormat(const char* value) { m_outputFormatHasBeenSet = true; m_outputFormat.assign(value); }
118 inline StorageDescriptor& WithOutputFormat(const Aws::String& value) { SetOutputFormat(value); return *this;}
119 inline StorageDescriptor& WithOutputFormat(Aws::String&& value) { SetOutputFormat(std::move(value)); return *this;}
120 inline StorageDescriptor& WithOutputFormat(const char* value) { SetOutputFormat(value); return *this;}
122
124
128 inline bool GetCompressed() const{ return m_compressed; }
129 inline bool CompressedHasBeenSet() const { return m_compressedHasBeenSet; }
130 inline void SetCompressed(bool value) { m_compressedHasBeenSet = true; m_compressed = value; }
131 inline StorageDescriptor& WithCompressed(bool value) { SetCompressed(value); return *this;}
133
135
138 inline int GetNumberOfBuckets() const{ return m_numberOfBuckets; }
139 inline bool NumberOfBucketsHasBeenSet() const { return m_numberOfBucketsHasBeenSet; }
140 inline void SetNumberOfBuckets(int value) { m_numberOfBucketsHasBeenSet = true; m_numberOfBuckets = value; }
141 inline StorageDescriptor& WithNumberOfBuckets(int value) { SetNumberOfBuckets(value); return *this;}
143
145
148 inline const SerDeInfo& GetSerdeInfo() const{ return m_serdeInfo; }
149 inline bool SerdeInfoHasBeenSet() const { return m_serdeInfoHasBeenSet; }
150 inline void SetSerdeInfo(const SerDeInfo& value) { m_serdeInfoHasBeenSet = true; m_serdeInfo = value; }
151 inline void SetSerdeInfo(SerDeInfo&& value) { m_serdeInfoHasBeenSet = true; m_serdeInfo = std::move(value); }
152 inline StorageDescriptor& WithSerdeInfo(const SerDeInfo& value) { SetSerdeInfo(value); return *this;}
153 inline StorageDescriptor& WithSerdeInfo(SerDeInfo&& value) { SetSerdeInfo(std::move(value)); return *this;}
155
157
161 inline const Aws::Vector<Aws::String>& GetBucketColumns() const{ return m_bucketColumns; }
162 inline bool BucketColumnsHasBeenSet() const { return m_bucketColumnsHasBeenSet; }
163 inline void SetBucketColumns(const Aws::Vector<Aws::String>& value) { m_bucketColumnsHasBeenSet = true; m_bucketColumns = value; }
164 inline void SetBucketColumns(Aws::Vector<Aws::String>&& value) { m_bucketColumnsHasBeenSet = true; m_bucketColumns = std::move(value); }
166 inline StorageDescriptor& WithBucketColumns(Aws::Vector<Aws::String>&& value) { SetBucketColumns(std::move(value)); return *this;}
167 inline StorageDescriptor& AddBucketColumns(const Aws::String& value) { m_bucketColumnsHasBeenSet = true; m_bucketColumns.push_back(value); return *this; }
168 inline StorageDescriptor& AddBucketColumns(Aws::String&& value) { m_bucketColumnsHasBeenSet = true; m_bucketColumns.push_back(std::move(value)); return *this; }
169 inline StorageDescriptor& AddBucketColumns(const char* value) { m_bucketColumnsHasBeenSet = true; m_bucketColumns.push_back(value); return *this; }
171
173
176 inline const Aws::Vector<Order>& GetSortColumns() const{ return m_sortColumns; }
177 inline bool SortColumnsHasBeenSet() const { return m_sortColumnsHasBeenSet; }
178 inline void SetSortColumns(const Aws::Vector<Order>& value) { m_sortColumnsHasBeenSet = true; m_sortColumns = value; }
179 inline void SetSortColumns(Aws::Vector<Order>&& value) { m_sortColumnsHasBeenSet = true; m_sortColumns = std::move(value); }
180 inline StorageDescriptor& WithSortColumns(const Aws::Vector<Order>& value) { SetSortColumns(value); return *this;}
181 inline StorageDescriptor& WithSortColumns(Aws::Vector<Order>&& value) { SetSortColumns(std::move(value)); return *this;}
182 inline StorageDescriptor& AddSortColumns(const Order& value) { m_sortColumnsHasBeenSet = true; m_sortColumns.push_back(value); return *this; }
183 inline StorageDescriptor& AddSortColumns(Order&& value) { m_sortColumnsHasBeenSet = true; m_sortColumns.push_back(std::move(value)); return *this; }
185
187
190 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
191 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
192 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
193 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
195 inline StorageDescriptor& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
196 inline StorageDescriptor& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
197 inline StorageDescriptor& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
198 inline StorageDescriptor& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
199 inline StorageDescriptor& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
200 inline StorageDescriptor& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
201 inline StorageDescriptor& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
202 inline StorageDescriptor& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
204
206
210 inline const SkewedInfo& GetSkewedInfo() const{ return m_skewedInfo; }
211 inline bool SkewedInfoHasBeenSet() const { return m_skewedInfoHasBeenSet; }
212 inline void SetSkewedInfo(const SkewedInfo& value) { m_skewedInfoHasBeenSet = true; m_skewedInfo = value; }
213 inline void SetSkewedInfo(SkewedInfo&& value) { m_skewedInfoHasBeenSet = true; m_skewedInfo = std::move(value); }
214 inline StorageDescriptor& WithSkewedInfo(const SkewedInfo& value) { SetSkewedInfo(value); return *this;}
215 inline StorageDescriptor& WithSkewedInfo(SkewedInfo&& value) { SetSkewedInfo(std::move(value)); return *this;}
217
219
223 inline bool GetStoredAsSubDirectories() const{ return m_storedAsSubDirectories; }
224 inline bool StoredAsSubDirectoriesHasBeenSet() const { return m_storedAsSubDirectoriesHasBeenSet; }
225 inline void SetStoredAsSubDirectories(bool value) { m_storedAsSubDirectoriesHasBeenSet = true; m_storedAsSubDirectories = value; }
226 inline StorageDescriptor& WithStoredAsSubDirectories(bool value) { SetStoredAsSubDirectories(value); return *this;}
228
230
235 inline const SchemaReference& GetSchemaReference() const{ return m_schemaReference; }
236 inline bool SchemaReferenceHasBeenSet() const { return m_schemaReferenceHasBeenSet; }
237 inline void SetSchemaReference(const SchemaReference& value) { m_schemaReferenceHasBeenSet = true; m_schemaReference = value; }
238 inline void SetSchemaReference(SchemaReference&& value) { m_schemaReferenceHasBeenSet = true; m_schemaReference = std::move(value); }
239 inline StorageDescriptor& WithSchemaReference(const SchemaReference& value) { SetSchemaReference(value); return *this;}
240 inline StorageDescriptor& WithSchemaReference(SchemaReference&& value) { SetSchemaReference(std::move(value)); return *this;}
242 private:
243
244 Aws::Vector<Column> m_columns;
245 bool m_columnsHasBeenSet = false;
246
247 Aws::String m_location;
248 bool m_locationHasBeenSet = false;
249
250 Aws::Vector<Aws::String> m_additionalLocations;
251 bool m_additionalLocationsHasBeenSet = false;
252
253 Aws::String m_inputFormat;
254 bool m_inputFormatHasBeenSet = false;
255
256 Aws::String m_outputFormat;
257 bool m_outputFormatHasBeenSet = false;
258
259 bool m_compressed;
260 bool m_compressedHasBeenSet = false;
261
262 int m_numberOfBuckets;
263 bool m_numberOfBucketsHasBeenSet = false;
264
265 SerDeInfo m_serdeInfo;
266 bool m_serdeInfoHasBeenSet = false;
267
268 Aws::Vector<Aws::String> m_bucketColumns;
269 bool m_bucketColumnsHasBeenSet = false;
270
271 Aws::Vector<Order> m_sortColumns;
272 bool m_sortColumnsHasBeenSet = false;
273
275 bool m_parametersHasBeenSet = false;
276
277 SkewedInfo m_skewedInfo;
278 bool m_skewedInfoHasBeenSet = false;
279
280 bool m_storedAsSubDirectories;
281 bool m_storedAsSubDirectoriesHasBeenSet = false;
282
283 SchemaReference m_schemaReference;
284 bool m_schemaReferenceHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace Glue
289} // namespace Aws
void SetSkewedInfo(SkewedInfo &&value)
void SetSchemaReference(const SchemaReference &value)
StorageDescriptor & WithSkewedInfo(const SkewedInfo &value)
void SetColumns(Aws::Vector< Column > &&value)
const Aws::String & GetInputFormat() const
const Aws::Vector< Aws::String > & GetAdditionalLocations() const
StorageDescriptor & WithSchemaReference(SchemaReference &&value)
StorageDescriptor & WithSkewedInfo(SkewedInfo &&value)
StorageDescriptor & AddColumns(Column &&value)
StorageDescriptor & AddParameters(const Aws::String &key, Aws::String &&value)
StorageDescriptor & WithBucketColumns(const Aws::Vector< Aws::String > &value)
void SetSortColumns(const Aws::Vector< Order > &value)
StorageDescriptor & WithColumns(const Aws::Vector< Column > &value)
AWS_GLUE_API StorageDescriptor(Aws::Utils::Json::JsonView jsonValue)
StorageDescriptor & AddAdditionalLocations(Aws::String &&value)
StorageDescriptor & WithInputFormat(Aws::String &&value)
StorageDescriptor & AddParameters(const char *key, Aws::String &&value)
const Aws::String & GetLocation() const
StorageDescriptor & WithNumberOfBuckets(int value)
StorageDescriptor & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
StorageDescriptor & AddBucketColumns(const Aws::String &value)
StorageDescriptor & AddParameters(const Aws::String &key, const Aws::String &value)
StorageDescriptor & AddBucketColumns(const char *value)
void SetOutputFormat(const Aws::String &value)
StorageDescriptor & WithSortColumns(Aws::Vector< Order > &&value)
void SetSortColumns(Aws::Vector< Order > &&value)
StorageDescriptor & AddParameters(const char *key, const char *value)
StorageDescriptor & WithLocation(const Aws::String &value)
StorageDescriptor & AddParameters(Aws::String &&key, Aws::String &&value)
StorageDescriptor & WithStoredAsSubDirectories(bool value)
const Aws::Vector< Order > & GetSortColumns() const
const Aws::Vector< Aws::String > & GetBucketColumns() const
void SetSkewedInfo(const SkewedInfo &value)
StorageDescriptor & WithSerdeInfo(const SerDeInfo &value)
StorageDescriptor & AddParameters(Aws::String &&key, const Aws::String &value)
AWS_GLUE_API StorageDescriptor & operator=(Aws::Utils::Json::JsonView jsonValue)
StorageDescriptor & WithLocation(Aws::String &&value)
StorageDescriptor & WithAdditionalLocations(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
StorageDescriptor & WithOutputFormat(Aws::String &&value)
void SetAdditionalLocations(const Aws::Vector< Aws::String > &value)
StorageDescriptor & WithSchemaReference(const SchemaReference &value)
StorageDescriptor & AddAdditionalLocations(const Aws::String &value)
const SkewedInfo & GetSkewedInfo() const
const SerDeInfo & GetSerdeInfo() const
void SetInputFormat(Aws::String &&value)
StorageDescriptor & WithSortColumns(const Aws::Vector< Order > &value)
StorageDescriptor & WithColumns(Aws::Vector< Column > &&value)
const SchemaReference & GetSchemaReference() const
void SetColumns(const Aws::Vector< Column > &value)
const Aws::Vector< Column > & GetColumns() const
StorageDescriptor & AddAdditionalLocations(const char *value)
StorageDescriptor & WithInputFormat(const Aws::String &value)
StorageDescriptor & WithBucketColumns(Aws::Vector< Aws::String > &&value)
void SetAdditionalLocations(Aws::Vector< Aws::String > &&value)
StorageDescriptor & WithInputFormat(const char *value)
StorageDescriptor & AddColumns(const Column &value)
void SetBucketColumns(Aws::Vector< Aws::String > &&value)
void SetInputFormat(const Aws::String &value)
void SetBucketColumns(const Aws::Vector< Aws::String > &value)
void SetSerdeInfo(const SerDeInfo &value)
StorageDescriptor & WithOutputFormat(const char *value)
StorageDescriptor & WithLocation(const char *value)
const Aws::String & GetOutputFormat() const
StorageDescriptor & AddBucketColumns(Aws::String &&value)
StorageDescriptor & WithCompressed(bool value)
StorageDescriptor & WithAdditionalLocations(const Aws::Vector< Aws::String > &value)
StorageDescriptor & WithOutputFormat(const Aws::String &value)
StorageDescriptor & AddParameters(Aws::String &&key, const char *value)
StorageDescriptor & AddSortColumns(const Order &value)
void SetLocation(const Aws::String &value)
StorageDescriptor & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetOutputFormat(const char *value)
StorageDescriptor & AddSortColumns(Order &&value)
void SetSchemaReference(SchemaReference &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetLocation(Aws::String &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
StorageDescriptor & WithSerdeInfo(SerDeInfo &&value)
void SetOutputFormat(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