AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
S3ExcelSource.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
32 public:
33 AWS_GLUE_API S3ExcelSource() = default;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 S3ExcelSource& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetPaths() const { return m_paths; }
61 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
62 template <typename PathsT = Aws::Vector<Aws::String>>
63 void SetPaths(PathsT&& value) {
64 m_pathsHasBeenSet = true;
65 m_paths = std::forward<PathsT>(value);
66 }
67 template <typename PathsT = Aws::Vector<Aws::String>>
68 S3ExcelSource& WithPaths(PathsT&& value) {
69 SetPaths(std::forward<PathsT>(value));
70 return *this;
71 }
72 template <typename PathsT = Aws::String>
73 S3ExcelSource& AddPaths(PathsT&& value) {
74 m_pathsHasBeenSet = true;
75 m_paths.emplace_back(std::forward<PathsT>(value));
76 return *this;
77 }
79
81
84 inline ParquetCompressionType GetCompressionType() const { return m_compressionType; }
85 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
87 m_compressionTypeHasBeenSet = true;
88 m_compressionType = value;
89 }
91 SetCompressionType(value);
92 return *this;
93 }
95
97
100 inline const Aws::Vector<Aws::String>& GetExclusions() const { return m_exclusions; }
101 inline bool ExclusionsHasBeenSet() const { return m_exclusionsHasBeenSet; }
102 template <typename ExclusionsT = Aws::Vector<Aws::String>>
103 void SetExclusions(ExclusionsT&& value) {
104 m_exclusionsHasBeenSet = true;
105 m_exclusions = std::forward<ExclusionsT>(value);
106 }
107 template <typename ExclusionsT = Aws::Vector<Aws::String>>
108 S3ExcelSource& WithExclusions(ExclusionsT&& value) {
109 SetExclusions(std::forward<ExclusionsT>(value));
110 return *this;
111 }
112 template <typename ExclusionsT = Aws::String>
113 S3ExcelSource& AddExclusions(ExclusionsT&& value) {
114 m_exclusionsHasBeenSet = true;
115 m_exclusions.emplace_back(std::forward<ExclusionsT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetGroupSize() const { return m_groupSize; }
125 inline bool GroupSizeHasBeenSet() const { return m_groupSizeHasBeenSet; }
126 template <typename GroupSizeT = Aws::String>
127 void SetGroupSize(GroupSizeT&& value) {
128 m_groupSizeHasBeenSet = true;
129 m_groupSize = std::forward<GroupSizeT>(value);
130 }
131 template <typename GroupSizeT = Aws::String>
132 S3ExcelSource& WithGroupSize(GroupSizeT&& value) {
133 SetGroupSize(std::forward<GroupSizeT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetGroupFiles() const { return m_groupFiles; }
143 inline bool GroupFilesHasBeenSet() const { return m_groupFilesHasBeenSet; }
144 template <typename GroupFilesT = Aws::String>
145 void SetGroupFiles(GroupFilesT&& value) {
146 m_groupFilesHasBeenSet = true;
147 m_groupFiles = std::forward<GroupFilesT>(value);
148 }
149 template <typename GroupFilesT = Aws::String>
150 S3ExcelSource& WithGroupFiles(GroupFilesT&& value) {
151 SetGroupFiles(std::forward<GroupFilesT>(value));
152 return *this;
153 }
155
157
160 inline bool GetRecurse() const { return m_recurse; }
161 inline bool RecurseHasBeenSet() const { return m_recurseHasBeenSet; }
162 inline void SetRecurse(bool value) {
163 m_recurseHasBeenSet = true;
164 m_recurse = value;
165 }
166 inline S3ExcelSource& WithRecurse(bool value) {
167 SetRecurse(value);
168 return *this;
169 }
171
173
176 inline int GetMaxBand() const { return m_maxBand; }
177 inline bool MaxBandHasBeenSet() const { return m_maxBandHasBeenSet; }
178 inline void SetMaxBand(int value) {
179 m_maxBandHasBeenSet = true;
180 m_maxBand = value;
181 }
182 inline S3ExcelSource& WithMaxBand(int value) {
183 SetMaxBand(value);
184 return *this;
185 }
187
189
192 inline int GetMaxFilesInBand() const { return m_maxFilesInBand; }
193 inline bool MaxFilesInBandHasBeenSet() const { return m_maxFilesInBandHasBeenSet; }
194 inline void SetMaxFilesInBand(int value) {
195 m_maxFilesInBandHasBeenSet = true;
196 m_maxFilesInBand = value;
197 }
199 SetMaxFilesInBand(value);
200 return *this;
201 }
203
205
208 inline const S3DirectSourceAdditionalOptions& GetAdditionalOptions() const { return m_additionalOptions; }
209 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
210 template <typename AdditionalOptionsT = S3DirectSourceAdditionalOptions>
211 void SetAdditionalOptions(AdditionalOptionsT&& value) {
212 m_additionalOptionsHasBeenSet = true;
213 m_additionalOptions = std::forward<AdditionalOptionsT>(value);
214 }
215 template <typename AdditionalOptionsT = S3DirectSourceAdditionalOptions>
216 S3ExcelSource& WithAdditionalOptions(AdditionalOptionsT&& value) {
217 SetAdditionalOptions(std::forward<AdditionalOptionsT>(value));
218 return *this;
219 }
221
223
226 inline long long GetNumberRows() const { return m_numberRows; }
227 inline bool NumberRowsHasBeenSet() const { return m_numberRowsHasBeenSet; }
228 inline void SetNumberRows(long long value) {
229 m_numberRowsHasBeenSet = true;
230 m_numberRows = value;
231 }
232 inline S3ExcelSource& WithNumberRows(long long value) {
233 SetNumberRows(value);
234 return *this;
235 }
237
239
242 inline int GetSkipFooter() const { return m_skipFooter; }
243 inline bool SkipFooterHasBeenSet() const { return m_skipFooterHasBeenSet; }
244 inline void SetSkipFooter(int value) {
245 m_skipFooterHasBeenSet = true;
246 m_skipFooter = value;
247 }
248 inline S3ExcelSource& WithSkipFooter(int value) {
249 SetSkipFooter(value);
250 return *this;
251 }
253
255
258 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
259 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
260 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
261 void SetOutputSchemas(OutputSchemasT&& value) {
262 m_outputSchemasHasBeenSet = true;
263 m_outputSchemas = std::forward<OutputSchemasT>(value);
264 }
265 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
266 S3ExcelSource& WithOutputSchemas(OutputSchemasT&& value) {
267 SetOutputSchemas(std::forward<OutputSchemasT>(value));
268 return *this;
269 }
270 template <typename OutputSchemasT = GlueSchema>
271 S3ExcelSource& AddOutputSchemas(OutputSchemasT&& value) {
272 m_outputSchemasHasBeenSet = true;
273 m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value));
274 return *this;
275 }
277 private:
278 Aws::String m_name;
279
281
283
284 Aws::Vector<Aws::String> m_exclusions;
285
286 Aws::String m_groupSize;
287
288 Aws::String m_groupFiles;
289
290 bool m_recurse{false};
291
292 int m_maxBand{0};
293
294 int m_maxFilesInBand{0};
295
296 S3DirectSourceAdditionalOptions m_additionalOptions;
297
298 long long m_numberRows{0};
299
300 int m_skipFooter{0};
301
302 Aws::Vector<GlueSchema> m_outputSchemas;
303 bool m_nameHasBeenSet = false;
304 bool m_pathsHasBeenSet = false;
305 bool m_compressionTypeHasBeenSet = false;
306 bool m_exclusionsHasBeenSet = false;
307 bool m_groupSizeHasBeenSet = false;
308 bool m_groupFilesHasBeenSet = false;
309 bool m_recurseHasBeenSet = false;
310 bool m_maxBandHasBeenSet = false;
311 bool m_maxFilesInBandHasBeenSet = false;
312 bool m_additionalOptionsHasBeenSet = false;
313 bool m_numberRowsHasBeenSet = false;
314 bool m_skipFooterHasBeenSet = false;
315 bool m_outputSchemasHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace Glue
320} // namespace Aws
S3ExcelSource & WithGroupFiles(GroupFilesT &&value)
S3ExcelSource & WithAdditionalOptions(AdditionalOptionsT &&value)
S3ExcelSource & WithName(NameT &&value)
S3ExcelSource & WithMaxBand(int value)
S3ExcelSource & WithNumberRows(long long value)
S3ExcelSource & WithGroupSize(GroupSizeT &&value)
S3ExcelSource & WithCompressionType(ParquetCompressionType value)
void SetAdditionalOptions(AdditionalOptionsT &&value)
const Aws::Vector< Aws::String > & GetPaths() const
const S3DirectSourceAdditionalOptions & GetAdditionalOptions() const
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
const Aws::String & GetGroupSize() const
void SetOutputSchemas(OutputSchemasT &&value)
void SetCompressionType(ParquetCompressionType value)
S3ExcelSource & WithRecurse(bool value)
void SetPaths(PathsT &&value)
void SetNumberRows(long long value)
ParquetCompressionType GetCompressionType() const
void SetExclusions(ExclusionsT &&value)
const Aws::String & GetGroupFiles() const
S3ExcelSource & WithOutputSchemas(OutputSchemasT &&value)
AWS_GLUE_API S3ExcelSource(Aws::Utils::Json::JsonView jsonValue)
S3ExcelSource & WithPaths(PathsT &&value)
S3ExcelSource & AddOutputSchemas(OutputSchemasT &&value)
AWS_GLUE_API S3ExcelSource()=default
S3ExcelSource & AddExclusions(ExclusionsT &&value)
S3ExcelSource & WithSkipFooter(int value)
S3ExcelSource & WithExclusions(ExclusionsT &&value)
S3ExcelSource & WithMaxFilesInBand(int value)
void SetGroupSize(GroupSizeT &&value)
S3ExcelSource & AddPaths(PathsT &&value)
const Aws::String & GetName() const
AWS_GLUE_API S3ExcelSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetExclusions() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGroupFiles(GroupFilesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue