AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
S3ParquetSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/GlueSchema.h>
11#include <aws/glue/model/ParquetCompressionType.h>
12#include <aws/glue/model/S3DirectSourceAdditionalOptions.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue {
24namespace Model {
25
33 public:
34 AWS_GLUE_API S3ParquetSource() = default;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 S3ParquetSource& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Aws::String>& GetPaths() const { return m_paths; }
62 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
63 template <typename PathsT = Aws::Vector<Aws::String>>
64 void SetPaths(PathsT&& value) {
65 m_pathsHasBeenSet = true;
66 m_paths = std::forward<PathsT>(value);
67 }
68 template <typename PathsT = Aws::Vector<Aws::String>>
69 S3ParquetSource& WithPaths(PathsT&& value) {
70 SetPaths(std::forward<PathsT>(value));
71 return *this;
72 }
73 template <typename PathsT = Aws::String>
74 S3ParquetSource& AddPaths(PathsT&& value) {
75 m_pathsHasBeenSet = true;
76 m_paths.emplace_back(std::forward<PathsT>(value));
77 return *this;
78 }
80
82
87 inline ParquetCompressionType GetCompressionType() const { return m_compressionType; }
88 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
90 m_compressionTypeHasBeenSet = true;
91 m_compressionType = value;
92 }
94 SetCompressionType(value);
95 return *this;
96 }
98
100
104 inline const Aws::Vector<Aws::String>& GetExclusions() const { return m_exclusions; }
105 inline bool ExclusionsHasBeenSet() const { return m_exclusionsHasBeenSet; }
106 template <typename ExclusionsT = Aws::Vector<Aws::String>>
107 void SetExclusions(ExclusionsT&& value) {
108 m_exclusionsHasBeenSet = true;
109 m_exclusions = std::forward<ExclusionsT>(value);
110 }
111 template <typename ExclusionsT = Aws::Vector<Aws::String>>
112 S3ParquetSource& WithExclusions(ExclusionsT&& value) {
113 SetExclusions(std::forward<ExclusionsT>(value));
114 return *this;
115 }
116 template <typename ExclusionsT = Aws::String>
117 S3ParquetSource& AddExclusions(ExclusionsT&& value) {
118 m_exclusionsHasBeenSet = true;
119 m_exclusions.emplace_back(std::forward<ExclusionsT>(value));
120 return *this;
121 }
123
125
131 inline const Aws::String& GetGroupSize() const { return m_groupSize; }
132 inline bool GroupSizeHasBeenSet() const { return m_groupSizeHasBeenSet; }
133 template <typename GroupSizeT = Aws::String>
134 void SetGroupSize(GroupSizeT&& value) {
135 m_groupSizeHasBeenSet = true;
136 m_groupSize = std::forward<GroupSizeT>(value);
137 }
138 template <typename GroupSizeT = Aws::String>
139 S3ParquetSource& WithGroupSize(GroupSizeT&& value) {
140 SetGroupSize(std::forward<GroupSizeT>(value));
141 return *this;
142 }
144
146
152 inline const Aws::String& GetGroupFiles() const { return m_groupFiles; }
153 inline bool GroupFilesHasBeenSet() const { return m_groupFilesHasBeenSet; }
154 template <typename GroupFilesT = Aws::String>
155 void SetGroupFiles(GroupFilesT&& value) {
156 m_groupFilesHasBeenSet = true;
157 m_groupFiles = std::forward<GroupFilesT>(value);
158 }
159 template <typename GroupFilesT = Aws::String>
160 S3ParquetSource& WithGroupFiles(GroupFilesT&& value) {
161 SetGroupFiles(std::forward<GroupFilesT>(value));
162 return *this;
163 }
165
167
171 inline bool GetRecurse() const { return m_recurse; }
172 inline bool RecurseHasBeenSet() const { return m_recurseHasBeenSet; }
173 inline void SetRecurse(bool value) {
174 m_recurseHasBeenSet = true;
175 m_recurse = value;
176 }
177 inline S3ParquetSource& WithRecurse(bool value) {
178 SetRecurse(value);
179 return *this;
180 }
182
184
191 inline int GetMaxBand() const { return m_maxBand; }
192 inline bool MaxBandHasBeenSet() const { return m_maxBandHasBeenSet; }
193 inline void SetMaxBand(int value) {
194 m_maxBandHasBeenSet = true;
195 m_maxBand = value;
196 }
197 inline S3ParquetSource& WithMaxBand(int value) {
198 SetMaxBand(value);
199 return *this;
200 }
202
204
209 inline int GetMaxFilesInBand() const { return m_maxFilesInBand; }
210 inline bool MaxFilesInBandHasBeenSet() const { return m_maxFilesInBandHasBeenSet; }
211 inline void SetMaxFilesInBand(int value) {
212 m_maxFilesInBandHasBeenSet = true;
213 m_maxFilesInBand = value;
214 }
216 SetMaxFilesInBand(value);
217 return *this;
218 }
220
222
225 inline const S3DirectSourceAdditionalOptions& GetAdditionalOptions() const { return m_additionalOptions; }
226 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
227 template <typename AdditionalOptionsT = S3DirectSourceAdditionalOptions>
228 void SetAdditionalOptions(AdditionalOptionsT&& value) {
229 m_additionalOptionsHasBeenSet = true;
230 m_additionalOptions = std::forward<AdditionalOptionsT>(value);
231 }
232 template <typename AdditionalOptionsT = S3DirectSourceAdditionalOptions>
233 S3ParquetSource& WithAdditionalOptions(AdditionalOptionsT&& value) {
234 SetAdditionalOptions(std::forward<AdditionalOptionsT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
244 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
245 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
246 void SetOutputSchemas(OutputSchemasT&& value) {
247 m_outputSchemasHasBeenSet = true;
248 m_outputSchemas = std::forward<OutputSchemasT>(value);
249 }
250 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
251 S3ParquetSource& WithOutputSchemas(OutputSchemasT&& value) {
252 SetOutputSchemas(std::forward<OutputSchemasT>(value));
253 return *this;
254 }
255 template <typename OutputSchemasT = GlueSchema>
256 S3ParquetSource& AddOutputSchemas(OutputSchemasT&& value) {
257 m_outputSchemasHasBeenSet = true;
258 m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value));
259 return *this;
260 }
262 private:
263 Aws::String m_name;
264
266
268
269 Aws::Vector<Aws::String> m_exclusions;
270
271 Aws::String m_groupSize;
272
273 Aws::String m_groupFiles;
274
275 bool m_recurse{false};
276
277 int m_maxBand{0};
278
279 int m_maxFilesInBand{0};
280
281 S3DirectSourceAdditionalOptions m_additionalOptions;
282
283 Aws::Vector<GlueSchema> m_outputSchemas;
284 bool m_nameHasBeenSet = false;
285 bool m_pathsHasBeenSet = false;
286 bool m_compressionTypeHasBeenSet = false;
287 bool m_exclusionsHasBeenSet = false;
288 bool m_groupSizeHasBeenSet = false;
289 bool m_groupFilesHasBeenSet = false;
290 bool m_recurseHasBeenSet = false;
291 bool m_maxBandHasBeenSet = false;
292 bool m_maxFilesInBandHasBeenSet = false;
293 bool m_additionalOptionsHasBeenSet = false;
294 bool m_outputSchemasHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace Glue
299} // namespace Aws
S3ParquetSource & WithMaxFilesInBand(int value)
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
S3ParquetSource & AddOutputSchemas(OutputSchemasT &&value)
S3ParquetSource & AddExclusions(ExclusionsT &&value)
void SetExclusions(ExclusionsT &&value)
const Aws::String & GetGroupFiles() const
void SetCompressionType(ParquetCompressionType value)
S3ParquetSource & WithGroupFiles(GroupFilesT &&value)
AWS_GLUE_API S3ParquetSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGroupFiles(GroupFilesT &&value)
void SetOutputSchemas(OutputSchemasT &&value)
S3ParquetSource & WithCompressionType(ParquetCompressionType value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
S3ParquetSource & WithMaxBand(int value)
void SetGroupSize(GroupSizeT &&value)
S3ParquetSource & WithExclusions(ExclusionsT &&value)
S3ParquetSource & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetPaths() const
S3ParquetSource & WithGroupSize(GroupSizeT &&value)
void SetAdditionalOptions(AdditionalOptionsT &&value)
const S3DirectSourceAdditionalOptions & GetAdditionalOptions() const
S3ParquetSource & WithOutputSchemas(OutputSchemasT &&value)
S3ParquetSource & AddPaths(PathsT &&value)
const Aws::String & GetGroupSize() const
S3ParquetSource & WithPaths(PathsT &&value)
const Aws::Vector< Aws::String > & GetExclusions() const
const Aws::String & GetName() const
S3ParquetSource & WithRecurse(bool value)
S3ParquetSource & WithAdditionalOptions(AdditionalOptionsT &&value)
ParquetCompressionType GetCompressionType() const
AWS_GLUE_API S3ParquetSource(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API S3ParquetSource()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue