AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
S3ExcelSource.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/ParquetCompressionType.h>
11#include <aws/glue/model/S3DirectSourceAdditionalOptions.h>
12#include <aws/glue/model/GlueSchema.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 S3ExcelSource() = default;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 S3ExcelSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_pathsHasBeenSet = true; m_paths = std::forward<PathsT>(value); }
64 template<typename PathsT = Aws::Vector<Aws::String>>
65 S3ExcelSource& WithPaths(PathsT&& value) { SetPaths(std::forward<PathsT>(value)); return *this;}
66 template<typename PathsT = Aws::String>
67 S3ExcelSource& AddPaths(PathsT&& value) { m_pathsHasBeenSet = true; m_paths.emplace_back(std::forward<PathsT>(value)); return *this; }
69
71
74 inline ParquetCompressionType GetCompressionType() const { return m_compressionType; }
75 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
76 inline void SetCompressionType(ParquetCompressionType value) { m_compressionTypeHasBeenSet = true; m_compressionType = value; }
79
81
84 inline const Aws::Vector<Aws::String>& GetExclusions() const { return m_exclusions; }
85 inline bool ExclusionsHasBeenSet() const { return m_exclusionsHasBeenSet; }
86 template<typename ExclusionsT = Aws::Vector<Aws::String>>
87 void SetExclusions(ExclusionsT&& value) { m_exclusionsHasBeenSet = true; m_exclusions = std::forward<ExclusionsT>(value); }
88 template<typename ExclusionsT = Aws::Vector<Aws::String>>
89 S3ExcelSource& WithExclusions(ExclusionsT&& value) { SetExclusions(std::forward<ExclusionsT>(value)); return *this;}
90 template<typename ExclusionsT = Aws::String>
91 S3ExcelSource& AddExclusions(ExclusionsT&& value) { m_exclusionsHasBeenSet = true; m_exclusions.emplace_back(std::forward<ExclusionsT>(value)); return *this; }
93
95
98 inline const Aws::String& GetGroupSize() const { return m_groupSize; }
99 inline bool GroupSizeHasBeenSet() const { return m_groupSizeHasBeenSet; }
100 template<typename GroupSizeT = Aws::String>
101 void SetGroupSize(GroupSizeT&& value) { m_groupSizeHasBeenSet = true; m_groupSize = std::forward<GroupSizeT>(value); }
102 template<typename GroupSizeT = Aws::String>
103 S3ExcelSource& WithGroupSize(GroupSizeT&& value) { SetGroupSize(std::forward<GroupSizeT>(value)); return *this;}
105
107
110 inline const Aws::String& GetGroupFiles() const { return m_groupFiles; }
111 inline bool GroupFilesHasBeenSet() const { return m_groupFilesHasBeenSet; }
112 template<typename GroupFilesT = Aws::String>
113 void SetGroupFiles(GroupFilesT&& value) { m_groupFilesHasBeenSet = true; m_groupFiles = std::forward<GroupFilesT>(value); }
114 template<typename GroupFilesT = Aws::String>
115 S3ExcelSource& WithGroupFiles(GroupFilesT&& value) { SetGroupFiles(std::forward<GroupFilesT>(value)); return *this;}
117
119
122 inline bool GetRecurse() const { return m_recurse; }
123 inline bool RecurseHasBeenSet() const { return m_recurseHasBeenSet; }
124 inline void SetRecurse(bool value) { m_recurseHasBeenSet = true; m_recurse = value; }
125 inline S3ExcelSource& WithRecurse(bool value) { SetRecurse(value); return *this;}
127
129
132 inline int GetMaxBand() const { return m_maxBand; }
133 inline bool MaxBandHasBeenSet() const { return m_maxBandHasBeenSet; }
134 inline void SetMaxBand(int value) { m_maxBandHasBeenSet = true; m_maxBand = value; }
135 inline S3ExcelSource& WithMaxBand(int value) { SetMaxBand(value); return *this;}
137
139
142 inline int GetMaxFilesInBand() const { return m_maxFilesInBand; }
143 inline bool MaxFilesInBandHasBeenSet() const { return m_maxFilesInBandHasBeenSet; }
144 inline void SetMaxFilesInBand(int value) { m_maxFilesInBandHasBeenSet = true; m_maxFilesInBand = value; }
145 inline S3ExcelSource& WithMaxFilesInBand(int value) { SetMaxFilesInBand(value); return *this;}
147
149
152 inline const S3DirectSourceAdditionalOptions& GetAdditionalOptions() const { return m_additionalOptions; }
153 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
154 template<typename AdditionalOptionsT = S3DirectSourceAdditionalOptions>
155 void SetAdditionalOptions(AdditionalOptionsT&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = std::forward<AdditionalOptionsT>(value); }
156 template<typename AdditionalOptionsT = S3DirectSourceAdditionalOptions>
157 S3ExcelSource& WithAdditionalOptions(AdditionalOptionsT&& value) { SetAdditionalOptions(std::forward<AdditionalOptionsT>(value)); return *this;}
159
161
164 inline long long GetNumberRows() const { return m_numberRows; }
165 inline bool NumberRowsHasBeenSet() const { return m_numberRowsHasBeenSet; }
166 inline void SetNumberRows(long long value) { m_numberRowsHasBeenSet = true; m_numberRows = value; }
167 inline S3ExcelSource& WithNumberRows(long long value) { SetNumberRows(value); return *this;}
169
171
174 inline int GetSkipFooter() const { return m_skipFooter; }
175 inline bool SkipFooterHasBeenSet() const { return m_skipFooterHasBeenSet; }
176 inline void SetSkipFooter(int value) { m_skipFooterHasBeenSet = true; m_skipFooter = value; }
177 inline S3ExcelSource& WithSkipFooter(int value) { SetSkipFooter(value); return *this;}
179
181
184 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
185 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
186 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
187 void SetOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::forward<OutputSchemasT>(value); }
188 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
189 S3ExcelSource& WithOutputSchemas(OutputSchemasT&& value) { SetOutputSchemas(std::forward<OutputSchemasT>(value)); return *this;}
190 template<typename OutputSchemasT = GlueSchema>
191 S3ExcelSource& AddOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value)); return *this; }
193 private:
194
195 Aws::String m_name;
196 bool m_nameHasBeenSet = false;
197
199 bool m_pathsHasBeenSet = false;
200
202 bool m_compressionTypeHasBeenSet = false;
203
204 Aws::Vector<Aws::String> m_exclusions;
205 bool m_exclusionsHasBeenSet = false;
206
207 Aws::String m_groupSize;
208 bool m_groupSizeHasBeenSet = false;
209
210 Aws::String m_groupFiles;
211 bool m_groupFilesHasBeenSet = false;
212
213 bool m_recurse{false};
214 bool m_recurseHasBeenSet = false;
215
216 int m_maxBand{0};
217 bool m_maxBandHasBeenSet = false;
218
219 int m_maxFilesInBand{0};
220 bool m_maxFilesInBandHasBeenSet = false;
221
222 S3DirectSourceAdditionalOptions m_additionalOptions;
223 bool m_additionalOptionsHasBeenSet = false;
224
225 long long m_numberRows{0};
226 bool m_numberRowsHasBeenSet = false;
227
228 int m_skipFooter{0};
229 bool m_skipFooterHasBeenSet = false;
230
231 Aws::Vector<GlueSchema> m_outputSchemas;
232 bool m_outputSchemasHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace Glue
237} // 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