AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3CsvSource.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/CompressionType.h>
11#include <aws/glue/model/S3DirectSourceAdditionalOptions.h>
12#include <aws/glue/model/Separator.h>
13#include <aws/glue/model/QuoteChar.h>
14#include <aws/glue/model/GlueSchema.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Glue
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_GLUE_API S3CsvSource();
42 AWS_GLUE_API S3CsvSource(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline S3CsvSource& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline S3CsvSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline S3CsvSource& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const Aws::Vector<Aws::String>& GetPaths() const{ return m_paths; }
66 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
67 inline void SetPaths(const Aws::Vector<Aws::String>& value) { m_pathsHasBeenSet = true; m_paths = value; }
68 inline void SetPaths(Aws::Vector<Aws::String>&& value) { m_pathsHasBeenSet = true; m_paths = std::move(value); }
69 inline S3CsvSource& WithPaths(const Aws::Vector<Aws::String>& value) { SetPaths(value); return *this;}
70 inline S3CsvSource& WithPaths(Aws::Vector<Aws::String>&& value) { SetPaths(std::move(value)); return *this;}
71 inline S3CsvSource& AddPaths(const Aws::String& value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; }
72 inline S3CsvSource& AddPaths(Aws::String&& value) { m_pathsHasBeenSet = true; m_paths.push_back(std::move(value)); return *this; }
73 inline S3CsvSource& AddPaths(const char* value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; }
75
77
82 inline const CompressionType& GetCompressionType() const{ return m_compressionType; }
83 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
84 inline void SetCompressionType(const CompressionType& value) { m_compressionTypeHasBeenSet = true; m_compressionType = value; }
85 inline void SetCompressionType(CompressionType&& value) { m_compressionTypeHasBeenSet = true; m_compressionType = std::move(value); }
86 inline S3CsvSource& WithCompressionType(const CompressionType& value) { SetCompressionType(value); return *this;}
87 inline S3CsvSource& WithCompressionType(CompressionType&& value) { SetCompressionType(std::move(value)); return *this;}
89
91
95 inline const Aws::Vector<Aws::String>& GetExclusions() const{ return m_exclusions; }
96 inline bool ExclusionsHasBeenSet() const { return m_exclusionsHasBeenSet; }
97 inline void SetExclusions(const Aws::Vector<Aws::String>& value) { m_exclusionsHasBeenSet = true; m_exclusions = value; }
98 inline void SetExclusions(Aws::Vector<Aws::String>&& value) { m_exclusionsHasBeenSet = true; m_exclusions = std::move(value); }
99 inline S3CsvSource& WithExclusions(const Aws::Vector<Aws::String>& value) { SetExclusions(value); return *this;}
100 inline S3CsvSource& WithExclusions(Aws::Vector<Aws::String>&& value) { SetExclusions(std::move(value)); return *this;}
101 inline S3CsvSource& AddExclusions(const Aws::String& value) { m_exclusionsHasBeenSet = true; m_exclusions.push_back(value); return *this; }
102 inline S3CsvSource& AddExclusions(Aws::String&& value) { m_exclusionsHasBeenSet = true; m_exclusions.push_back(std::move(value)); return *this; }
103 inline S3CsvSource& AddExclusions(const char* value) { m_exclusionsHasBeenSet = true; m_exclusions.push_back(value); return *this; }
105
107
113 inline const Aws::String& GetGroupSize() const{ return m_groupSize; }
114 inline bool GroupSizeHasBeenSet() const { return m_groupSizeHasBeenSet; }
115 inline void SetGroupSize(const Aws::String& value) { m_groupSizeHasBeenSet = true; m_groupSize = value; }
116 inline void SetGroupSize(Aws::String&& value) { m_groupSizeHasBeenSet = true; m_groupSize = std::move(value); }
117 inline void SetGroupSize(const char* value) { m_groupSizeHasBeenSet = true; m_groupSize.assign(value); }
118 inline S3CsvSource& WithGroupSize(const Aws::String& value) { SetGroupSize(value); return *this;}
119 inline S3CsvSource& WithGroupSize(Aws::String&& value) { SetGroupSize(std::move(value)); return *this;}
120 inline S3CsvSource& WithGroupSize(const char* value) { SetGroupSize(value); return *this;}
122
124
130 inline const Aws::String& GetGroupFiles() const{ return m_groupFiles; }
131 inline bool GroupFilesHasBeenSet() const { return m_groupFilesHasBeenSet; }
132 inline void SetGroupFiles(const Aws::String& value) { m_groupFilesHasBeenSet = true; m_groupFiles = value; }
133 inline void SetGroupFiles(Aws::String&& value) { m_groupFilesHasBeenSet = true; m_groupFiles = std::move(value); }
134 inline void SetGroupFiles(const char* value) { m_groupFilesHasBeenSet = true; m_groupFiles.assign(value); }
135 inline S3CsvSource& WithGroupFiles(const Aws::String& value) { SetGroupFiles(value); return *this;}
136 inline S3CsvSource& WithGroupFiles(Aws::String&& value) { SetGroupFiles(std::move(value)); return *this;}
137 inline S3CsvSource& WithGroupFiles(const char* value) { SetGroupFiles(value); return *this;}
139
141
145 inline bool GetRecurse() const{ return m_recurse; }
146 inline bool RecurseHasBeenSet() const { return m_recurseHasBeenSet; }
147 inline void SetRecurse(bool value) { m_recurseHasBeenSet = true; m_recurse = value; }
148 inline S3CsvSource& WithRecurse(bool value) { SetRecurse(value); return *this;}
150
152
159 inline int GetMaxBand() const{ return m_maxBand; }
160 inline bool MaxBandHasBeenSet() const { return m_maxBandHasBeenSet; }
161 inline void SetMaxBand(int value) { m_maxBandHasBeenSet = true; m_maxBand = value; }
162 inline S3CsvSource& WithMaxBand(int value) { SetMaxBand(value); return *this;}
164
166
171 inline int GetMaxFilesInBand() const{ return m_maxFilesInBand; }
172 inline bool MaxFilesInBandHasBeenSet() const { return m_maxFilesInBandHasBeenSet; }
173 inline void SetMaxFilesInBand(int value) { m_maxFilesInBandHasBeenSet = true; m_maxFilesInBand = value; }
174 inline S3CsvSource& WithMaxFilesInBand(int value) { SetMaxFilesInBand(value); return *this;}
176
178
181 inline const S3DirectSourceAdditionalOptions& GetAdditionalOptions() const{ return m_additionalOptions; }
182 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
183 inline void SetAdditionalOptions(const S3DirectSourceAdditionalOptions& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = value; }
184 inline void SetAdditionalOptions(S3DirectSourceAdditionalOptions&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = std::move(value); }
188
190
194 inline const Separator& GetSeparator() const{ return m_separator; }
195 inline bool SeparatorHasBeenSet() const { return m_separatorHasBeenSet; }
196 inline void SetSeparator(const Separator& value) { m_separatorHasBeenSet = true; m_separator = value; }
197 inline void SetSeparator(Separator&& value) { m_separatorHasBeenSet = true; m_separator = std::move(value); }
198 inline S3CsvSource& WithSeparator(const Separator& value) { SetSeparator(value); return *this;}
199 inline S3CsvSource& WithSeparator(Separator&& value) { SetSeparator(std::move(value)); return *this;}
201
203
210 inline const Aws::String& GetEscaper() const{ return m_escaper; }
211 inline bool EscaperHasBeenSet() const { return m_escaperHasBeenSet; }
212 inline void SetEscaper(const Aws::String& value) { m_escaperHasBeenSet = true; m_escaper = value; }
213 inline void SetEscaper(Aws::String&& value) { m_escaperHasBeenSet = true; m_escaper = std::move(value); }
214 inline void SetEscaper(const char* value) { m_escaperHasBeenSet = true; m_escaper.assign(value); }
215 inline S3CsvSource& WithEscaper(const Aws::String& value) { SetEscaper(value); return *this;}
216 inline S3CsvSource& WithEscaper(Aws::String&& value) { SetEscaper(std::move(value)); return *this;}
217 inline S3CsvSource& WithEscaper(const char* value) { SetEscaper(value); return *this;}
219
221
225 inline const QuoteChar& GetQuoteChar() const{ return m_quoteChar; }
226 inline bool QuoteCharHasBeenSet() const { return m_quoteCharHasBeenSet; }
227 inline void SetQuoteChar(const QuoteChar& value) { m_quoteCharHasBeenSet = true; m_quoteChar = value; }
228 inline void SetQuoteChar(QuoteChar&& value) { m_quoteCharHasBeenSet = true; m_quoteChar = std::move(value); }
229 inline S3CsvSource& WithQuoteChar(const QuoteChar& value) { SetQuoteChar(value); return *this;}
230 inline S3CsvSource& WithQuoteChar(QuoteChar&& value) { SetQuoteChar(std::move(value)); return *this;}
232
234
241 inline bool GetMultiline() const{ return m_multiline; }
242 inline bool MultilineHasBeenSet() const { return m_multilineHasBeenSet; }
243 inline void SetMultiline(bool value) { m_multilineHasBeenSet = true; m_multiline = value; }
244 inline S3CsvSource& WithMultiline(bool value) { SetMultiline(value); return *this;}
246
248
252 inline bool GetWithHeader() const{ return m_withHeader; }
253 inline bool WithHeaderHasBeenSet() const { return m_withHeaderHasBeenSet; }
254 inline void SetWithHeader(bool value) { m_withHeaderHasBeenSet = true; m_withHeader = value; }
255 inline S3CsvSource& WithWithHeader(bool value) { SetWithHeader(value); return *this;}
257
259
263 inline bool GetWriteHeader() const{ return m_writeHeader; }
264 inline bool WriteHeaderHasBeenSet() const { return m_writeHeaderHasBeenSet; }
265 inline void SetWriteHeader(bool value) { m_writeHeaderHasBeenSet = true; m_writeHeader = value; }
266 inline S3CsvSource& WithWriteHeader(bool value) { SetWriteHeader(value); return *this;}
268
270
274 inline bool GetSkipFirst() const{ return m_skipFirst; }
275 inline bool SkipFirstHasBeenSet() const { return m_skipFirstHasBeenSet; }
276 inline void SetSkipFirst(bool value) { m_skipFirstHasBeenSet = true; m_skipFirst = value; }
277 inline S3CsvSource& WithSkipFirst(bool value) { SetSkipFirst(value); return *this;}
279
281
286 inline bool GetOptimizePerformance() const{ return m_optimizePerformance; }
287 inline bool OptimizePerformanceHasBeenSet() const { return m_optimizePerformanceHasBeenSet; }
288 inline void SetOptimizePerformance(bool value) { m_optimizePerformanceHasBeenSet = true; m_optimizePerformance = value; }
289 inline S3CsvSource& WithOptimizePerformance(bool value) { SetOptimizePerformance(value); return *this;}
291
293
296 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const{ return m_outputSchemas; }
297 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
298 inline void SetOutputSchemas(const Aws::Vector<GlueSchema>& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = value; }
299 inline void SetOutputSchemas(Aws::Vector<GlueSchema>&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::move(value); }
300 inline S3CsvSource& WithOutputSchemas(const Aws::Vector<GlueSchema>& value) { SetOutputSchemas(value); return *this;}
301 inline S3CsvSource& WithOutputSchemas(Aws::Vector<GlueSchema>&& value) { SetOutputSchemas(std::move(value)); return *this;}
302 inline S3CsvSource& AddOutputSchemas(const GlueSchema& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(value); return *this; }
303 inline S3CsvSource& AddOutputSchemas(GlueSchema&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(std::move(value)); return *this; }
305 private:
306
307 Aws::String m_name;
308 bool m_nameHasBeenSet = false;
309
311 bool m_pathsHasBeenSet = false;
312
313 CompressionType m_compressionType;
314 bool m_compressionTypeHasBeenSet = false;
315
316 Aws::Vector<Aws::String> m_exclusions;
317 bool m_exclusionsHasBeenSet = false;
318
319 Aws::String m_groupSize;
320 bool m_groupSizeHasBeenSet = false;
321
322 Aws::String m_groupFiles;
323 bool m_groupFilesHasBeenSet = false;
324
325 bool m_recurse;
326 bool m_recurseHasBeenSet = false;
327
328 int m_maxBand;
329 bool m_maxBandHasBeenSet = false;
330
331 int m_maxFilesInBand;
332 bool m_maxFilesInBandHasBeenSet = false;
333
334 S3DirectSourceAdditionalOptions m_additionalOptions;
335 bool m_additionalOptionsHasBeenSet = false;
336
337 Separator m_separator;
338 bool m_separatorHasBeenSet = false;
339
340 Aws::String m_escaper;
341 bool m_escaperHasBeenSet = false;
342
343 QuoteChar m_quoteChar;
344 bool m_quoteCharHasBeenSet = false;
345
346 bool m_multiline;
347 bool m_multilineHasBeenSet = false;
348
349 bool m_withHeader;
350 bool m_withHeaderHasBeenSet = false;
351
352 bool m_writeHeader;
353 bool m_writeHeaderHasBeenSet = false;
354
355 bool m_skipFirst;
356 bool m_skipFirstHasBeenSet = false;
357
358 bool m_optimizePerformance;
359 bool m_optimizePerformanceHasBeenSet = false;
360
361 Aws::Vector<GlueSchema> m_outputSchemas;
362 bool m_outputSchemasHasBeenSet = false;
363 };
364
365} // namespace Model
366} // namespace Glue
367} // namespace Aws
AWS_GLUE_API S3CsvSource(Aws::Utils::Json::JsonView jsonValue)
S3CsvSource & WithOptimizePerformance(bool value)
void SetSkipFirst(bool value)
const Aws::String & GetGroupFiles() const
S3CsvSource & WithWithHeader(bool value)
void SetWithHeader(bool value)
void SetWriteHeader(bool value)
S3CsvSource & WithEscaper(const Aws::String &value)
void SetOutputSchemas(const Aws::Vector< GlueSchema > &value)
S3CsvSource & WithQuoteChar(QuoteChar &&value)
S3CsvSource & WithExclusions(Aws::Vector< Aws::String > &&value)
void SetCompressionType(const CompressionType &value)
Definition S3CsvSource.h:84
S3CsvSource & WithMaxBand(int value)
void SetEscaper(const char *value)
S3CsvSource & WithExclusions(const Aws::Vector< Aws::String > &value)
Definition S3CsvSource.h:99
void SetGroupFiles(const char *value)
void SetAdditionalOptions(S3DirectSourceAdditionalOptions &&value)
S3CsvSource & WithSkipFirst(bool value)
S3CsvSource & AddPaths(Aws::String &&value)
Definition S3CsvSource.h:72
void SetName(const char *value)
Definition S3CsvSource.h:55
void SetOptimizePerformance(bool value)
S3CsvSource & AddOutputSchemas(GlueSchema &&value)
const Aws::Vector< Aws::String > & GetPaths() const
Definition S3CsvSource.h:65
S3CsvSource & AddPaths(const char *value)
Definition S3CsvSource.h:73
S3CsvSource & WithName(Aws::String &&value)
Definition S3CsvSource.h:57
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
S3CsvSource & WithQuoteChar(const QuoteChar &value)
void SetSeparator(const Separator &value)
void SetGroupSize(Aws::String &&value)
S3CsvSource & WithCompressionType(CompressionType &&value)
Definition S3CsvSource.h:87
const S3DirectSourceAdditionalOptions & GetAdditionalOptions() const
S3CsvSource & WithSeparator(Separator &&value)
S3CsvSource & WithGroupFiles(const char *value)
S3CsvSource & WithGroupSize(Aws::String &&value)
const Aws::String & GetGroupSize() const
S3CsvSource & WithGroupFiles(Aws::String &&value)
S3CsvSource & WithPaths(Aws::Vector< Aws::String > &&value)
Definition S3CsvSource.h:70
S3CsvSource & WithGroupSize(const char *value)
const QuoteChar & GetQuoteChar() const
void SetExclusions(Aws::Vector< Aws::String > &&value)
Definition S3CsvSource.h:98
S3CsvSource & WithGroupFiles(const Aws::String &value)
void SetSeparator(Separator &&value)
S3CsvSource & WithName(const char *value)
Definition S3CsvSource.h:58
void SetOutputSchemas(Aws::Vector< GlueSchema > &&value)
S3CsvSource & AddExclusions(const char *value)
void SetMultiline(bool value)
void SetName(const Aws::String &value)
Definition S3CsvSource.h:53
S3CsvSource & AddExclusions(Aws::String &&value)
const Separator & GetSeparator() const
void SetPaths(Aws::Vector< Aws::String > &&value)
Definition S3CsvSource.h:68
bool CompressionTypeHasBeenSet() const
Definition S3CsvSource.h:83
bool MaxFilesInBandHasBeenSet() const
void SetEscaper(const Aws::String &value)
void SetExclusions(const Aws::Vector< Aws::String > &value)
Definition S3CsvSource.h:97
void SetMaxFilesInBand(int value)
S3CsvSource & WithPaths(const Aws::Vector< Aws::String > &value)
Definition S3CsvSource.h:69
const Aws::String & GetEscaper() const
void SetGroupSize(const char *value)
S3CsvSource & WithMultiline(bool value)
S3CsvSource & AddPaths(const Aws::String &value)
Definition S3CsvSource.h:71
AWS_GLUE_API S3CsvSource & operator=(Aws::Utils::Json::JsonView jsonValue)
S3CsvSource & WithName(const Aws::String &value)
Definition S3CsvSource.h:56
bool AdditionalOptionsHasBeenSet() const
void SetPaths(const Aws::Vector< Aws::String > &value)
Definition S3CsvSource.h:67
S3CsvSource & AddOutputSchemas(const GlueSchema &value)
S3CsvSource & WithAdditionalOptions(const S3DirectSourceAdditionalOptions &value)
S3CsvSource & WithOutputSchemas(Aws::Vector< GlueSchema > &&value)
void SetCompressionType(CompressionType &&value)
Definition S3CsvSource.h:85
S3CsvSource & WithGroupSize(const Aws::String &value)
const CompressionType & GetCompressionType() const
Definition S3CsvSource.h:82
void SetAdditionalOptions(const S3DirectSourceAdditionalOptions &value)
void SetName(Aws::String &&value)
Definition S3CsvSource.h:54
void SetGroupFiles(const Aws::String &value)
const Aws::Vector< Aws::String > & GetExclusions() const
Definition S3CsvSource.h:95
S3CsvSource & WithRecurse(bool value)
bool OptimizePerformanceHasBeenSet() const
S3CsvSource & AddExclusions(const Aws::String &value)
const Aws::String & GetName() const
Definition S3CsvSource.h:51
S3CsvSource & WithEscaper(Aws::String &&value)
void SetQuoteChar(QuoteChar &&value)
void SetGroupSize(const Aws::String &value)
void SetEscaper(Aws::String &&value)
S3CsvSource & WithAdditionalOptions(S3DirectSourceAdditionalOptions &&value)
void SetGroupFiles(Aws::String &&value)
S3CsvSource & WithSeparator(const Separator &value)
S3CsvSource & WithMaxFilesInBand(int value)
void SetQuoteChar(const QuoteChar &value)
S3CsvSource & WithOutputSchemas(const Aws::Vector< GlueSchema > &value)
S3CsvSource & WithCompressionType(const CompressionType &value)
Definition S3CsvSource.h:86
S3CsvSource & WithEscaper(const char *value)
S3CsvSource & WithWriteHeader(bool 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