AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3JsonSource.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/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
37 {
38 public:
39 AWS_GLUE_API S3JsonSource();
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline S3JsonSource& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline S3JsonSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline S3JsonSource& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::Vector<Aws::String>& GetPaths() const{ return m_paths; }
64 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
65 inline void SetPaths(const Aws::Vector<Aws::String>& value) { m_pathsHasBeenSet = true; m_paths = value; }
66 inline void SetPaths(Aws::Vector<Aws::String>&& value) { m_pathsHasBeenSet = true; m_paths = std::move(value); }
67 inline S3JsonSource& WithPaths(const Aws::Vector<Aws::String>& value) { SetPaths(value); return *this;}
68 inline S3JsonSource& WithPaths(Aws::Vector<Aws::String>&& value) { SetPaths(std::move(value)); return *this;}
69 inline S3JsonSource& AddPaths(const Aws::String& value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; }
70 inline S3JsonSource& AddPaths(Aws::String&& value) { m_pathsHasBeenSet = true; m_paths.push_back(std::move(value)); return *this; }
71 inline S3JsonSource& AddPaths(const char* value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; }
73
75
80 inline const CompressionType& GetCompressionType() const{ return m_compressionType; }
81 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
82 inline void SetCompressionType(const CompressionType& value) { m_compressionTypeHasBeenSet = true; m_compressionType = value; }
83 inline void SetCompressionType(CompressionType&& value) { m_compressionTypeHasBeenSet = true; m_compressionType = std::move(value); }
84 inline S3JsonSource& WithCompressionType(const CompressionType& value) { SetCompressionType(value); return *this;}
85 inline S3JsonSource& WithCompressionType(CompressionType&& value) { SetCompressionType(std::move(value)); return *this;}
87
89
93 inline const Aws::Vector<Aws::String>& GetExclusions() const{ return m_exclusions; }
94 inline bool ExclusionsHasBeenSet() const { return m_exclusionsHasBeenSet; }
95 inline void SetExclusions(const Aws::Vector<Aws::String>& value) { m_exclusionsHasBeenSet = true; m_exclusions = value; }
96 inline void SetExclusions(Aws::Vector<Aws::String>&& value) { m_exclusionsHasBeenSet = true; m_exclusions = std::move(value); }
97 inline S3JsonSource& WithExclusions(const Aws::Vector<Aws::String>& value) { SetExclusions(value); return *this;}
98 inline S3JsonSource& WithExclusions(Aws::Vector<Aws::String>&& value) { SetExclusions(std::move(value)); return *this;}
99 inline S3JsonSource& AddExclusions(const Aws::String& value) { m_exclusionsHasBeenSet = true; m_exclusions.push_back(value); return *this; }
100 inline S3JsonSource& AddExclusions(Aws::String&& value) { m_exclusionsHasBeenSet = true; m_exclusions.push_back(std::move(value)); return *this; }
101 inline S3JsonSource& AddExclusions(const char* value) { m_exclusionsHasBeenSet = true; m_exclusions.push_back(value); return *this; }
103
105
111 inline const Aws::String& GetGroupSize() const{ return m_groupSize; }
112 inline bool GroupSizeHasBeenSet() const { return m_groupSizeHasBeenSet; }
113 inline void SetGroupSize(const Aws::String& value) { m_groupSizeHasBeenSet = true; m_groupSize = value; }
114 inline void SetGroupSize(Aws::String&& value) { m_groupSizeHasBeenSet = true; m_groupSize = std::move(value); }
115 inline void SetGroupSize(const char* value) { m_groupSizeHasBeenSet = true; m_groupSize.assign(value); }
116 inline S3JsonSource& WithGroupSize(const Aws::String& value) { SetGroupSize(value); return *this;}
117 inline S3JsonSource& WithGroupSize(Aws::String&& value) { SetGroupSize(std::move(value)); return *this;}
118 inline S3JsonSource& WithGroupSize(const char* value) { SetGroupSize(value); return *this;}
120
122
128 inline const Aws::String& GetGroupFiles() const{ return m_groupFiles; }
129 inline bool GroupFilesHasBeenSet() const { return m_groupFilesHasBeenSet; }
130 inline void SetGroupFiles(const Aws::String& value) { m_groupFilesHasBeenSet = true; m_groupFiles = value; }
131 inline void SetGroupFiles(Aws::String&& value) { m_groupFilesHasBeenSet = true; m_groupFiles = std::move(value); }
132 inline void SetGroupFiles(const char* value) { m_groupFilesHasBeenSet = true; m_groupFiles.assign(value); }
133 inline S3JsonSource& WithGroupFiles(const Aws::String& value) { SetGroupFiles(value); return *this;}
134 inline S3JsonSource& WithGroupFiles(Aws::String&& value) { SetGroupFiles(std::move(value)); return *this;}
135 inline S3JsonSource& WithGroupFiles(const char* value) { SetGroupFiles(value); return *this;}
137
139
143 inline bool GetRecurse() const{ return m_recurse; }
144 inline bool RecurseHasBeenSet() const { return m_recurseHasBeenSet; }
145 inline void SetRecurse(bool value) { m_recurseHasBeenSet = true; m_recurse = value; }
146 inline S3JsonSource& WithRecurse(bool value) { SetRecurse(value); return *this;}
148
150
157 inline int GetMaxBand() const{ return m_maxBand; }
158 inline bool MaxBandHasBeenSet() const { return m_maxBandHasBeenSet; }
159 inline void SetMaxBand(int value) { m_maxBandHasBeenSet = true; m_maxBand = value; }
160 inline S3JsonSource& WithMaxBand(int value) { SetMaxBand(value); return *this;}
162
164
169 inline int GetMaxFilesInBand() const{ return m_maxFilesInBand; }
170 inline bool MaxFilesInBandHasBeenSet() const { return m_maxFilesInBandHasBeenSet; }
171 inline void SetMaxFilesInBand(int value) { m_maxFilesInBandHasBeenSet = true; m_maxFilesInBand = value; }
172 inline S3JsonSource& WithMaxFilesInBand(int value) { SetMaxFilesInBand(value); return *this;}
174
176
179 inline const S3DirectSourceAdditionalOptions& GetAdditionalOptions() const{ return m_additionalOptions; }
180 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
181 inline void SetAdditionalOptions(const S3DirectSourceAdditionalOptions& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = value; }
182 inline void SetAdditionalOptions(S3DirectSourceAdditionalOptions&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = std::move(value); }
186
188
191 inline const Aws::String& GetJsonPath() const{ return m_jsonPath; }
192 inline bool JsonPathHasBeenSet() const { return m_jsonPathHasBeenSet; }
193 inline void SetJsonPath(const Aws::String& value) { m_jsonPathHasBeenSet = true; m_jsonPath = value; }
194 inline void SetJsonPath(Aws::String&& value) { m_jsonPathHasBeenSet = true; m_jsonPath = std::move(value); }
195 inline void SetJsonPath(const char* value) { m_jsonPathHasBeenSet = true; m_jsonPath.assign(value); }
196 inline S3JsonSource& WithJsonPath(const Aws::String& value) { SetJsonPath(value); return *this;}
197 inline S3JsonSource& WithJsonPath(Aws::String&& value) { SetJsonPath(std::move(value)); return *this;}
198 inline S3JsonSource& WithJsonPath(const char* value) { SetJsonPath(value); return *this;}
200
202
209 inline bool GetMultiline() const{ return m_multiline; }
210 inline bool MultilineHasBeenSet() const { return m_multilineHasBeenSet; }
211 inline void SetMultiline(bool value) { m_multilineHasBeenSet = true; m_multiline = value; }
212 inline S3JsonSource& WithMultiline(bool value) { SetMultiline(value); return *this;}
214
216
219 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const{ return m_outputSchemas; }
220 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
221 inline void SetOutputSchemas(const Aws::Vector<GlueSchema>& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = value; }
222 inline void SetOutputSchemas(Aws::Vector<GlueSchema>&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::move(value); }
223 inline S3JsonSource& WithOutputSchemas(const Aws::Vector<GlueSchema>& value) { SetOutputSchemas(value); return *this;}
224 inline S3JsonSource& WithOutputSchemas(Aws::Vector<GlueSchema>&& value) { SetOutputSchemas(std::move(value)); return *this;}
225 inline S3JsonSource& AddOutputSchemas(const GlueSchema& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(value); return *this; }
226 inline S3JsonSource& AddOutputSchemas(GlueSchema&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(std::move(value)); return *this; }
228 private:
229
230 Aws::String m_name;
231 bool m_nameHasBeenSet = false;
232
234 bool m_pathsHasBeenSet = false;
235
236 CompressionType m_compressionType;
237 bool m_compressionTypeHasBeenSet = false;
238
239 Aws::Vector<Aws::String> m_exclusions;
240 bool m_exclusionsHasBeenSet = false;
241
242 Aws::String m_groupSize;
243 bool m_groupSizeHasBeenSet = false;
244
245 Aws::String m_groupFiles;
246 bool m_groupFilesHasBeenSet = false;
247
248 bool m_recurse;
249 bool m_recurseHasBeenSet = false;
250
251 int m_maxBand;
252 bool m_maxBandHasBeenSet = false;
253
254 int m_maxFilesInBand;
255 bool m_maxFilesInBandHasBeenSet = false;
256
257 S3DirectSourceAdditionalOptions m_additionalOptions;
258 bool m_additionalOptionsHasBeenSet = false;
259
260 Aws::String m_jsonPath;
261 bool m_jsonPathHasBeenSet = false;
262
263 bool m_multiline;
264 bool m_multilineHasBeenSet = false;
265
266 Aws::Vector<GlueSchema> m_outputSchemas;
267 bool m_outputSchemasHasBeenSet = false;
268 };
269
270} // namespace Model
271} // namespace Glue
272} // namespace Aws
S3JsonSource & AddOutputSchemas(const GlueSchema &value)
void SetPaths(const Aws::Vector< Aws::String > &value)
const S3DirectSourceAdditionalOptions & GetAdditionalOptions() const
S3JsonSource & WithJsonPath(Aws::String &&value)
S3JsonSource & WithCompressionType(CompressionType &&value)
void SetName(const char *value)
void SetName(const Aws::String &value)
void SetJsonPath(Aws::String &&value)
S3JsonSource & WithPaths(const Aws::Vector< Aws::String > &value)
const Aws::String & GetGroupSize() const
void SetGroupSize(Aws::String &&value)
void SetCompressionType(const CompressionType &value)
S3JsonSource & WithMaxFilesInBand(int value)
S3JsonSource & WithMultiline(bool value)
void SetGroupFiles(const Aws::String &value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
S3JsonSource & WithGroupFiles(const Aws::String &value)
void SetGroupFiles(Aws::String &&value)
const Aws::String & GetName() const
void SetGroupFiles(const char *value)
S3JsonSource & AddExclusions(Aws::String &&value)
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
S3JsonSource & WithName(const char *value)
const Aws::Vector< Aws::String > & GetPaths() const
S3JsonSource & WithJsonPath(const Aws::String &value)
S3JsonSource & WithGroupSize(const char *value)
AWS_GLUE_API S3JsonSource(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
void SetGroupSize(const char *value)
AWS_GLUE_API S3JsonSource & operator=(Aws::Utils::Json::JsonView jsonValue)
S3JsonSource & WithOutputSchemas(Aws::Vector< GlueSchema > &&value)
S3JsonSource & AddPaths(Aws::String &&value)
S3JsonSource & WithAdditionalOptions(const S3DirectSourceAdditionalOptions &value)
const Aws::Vector< Aws::String > & GetExclusions() const
S3JsonSource & WithGroupSize(Aws::String &&value)
S3JsonSource & AddOutputSchemas(GlueSchema &&value)
void SetAdditionalOptions(S3DirectSourceAdditionalOptions &&value)
S3JsonSource & WithAdditionalOptions(S3DirectSourceAdditionalOptions &&value)
S3JsonSource & WithName(const Aws::String &value)
const CompressionType & GetCompressionType() const
void SetGroupSize(const Aws::String &value)
void SetJsonPath(const char *value)
void SetOutputSchemas(const Aws::Vector< GlueSchema > &value)
S3JsonSource & WithExclusions(Aws::Vector< Aws::String > &&value)
S3JsonSource & WithCompressionType(const CompressionType &value)
void SetAdditionalOptions(const S3DirectSourceAdditionalOptions &value)
S3JsonSource & AddPaths(const Aws::String &value)
S3JsonSource & AddExclusions(const Aws::String &value)
void SetOutputSchemas(Aws::Vector< GlueSchema > &&value)
const Aws::String & GetJsonPath() const
S3JsonSource & WithExclusions(const Aws::Vector< Aws::String > &value)
void SetExclusions(Aws::Vector< Aws::String > &&value)
S3JsonSource & WithGroupFiles(const char *value)
void SetPaths(Aws::Vector< Aws::String > &&value)
S3JsonSource & WithGroupFiles(Aws::String &&value)
S3JsonSource & WithPaths(Aws::Vector< Aws::String > &&value)
S3JsonSource & WithOutputSchemas(const Aws::Vector< GlueSchema > &value)
S3JsonSource & AddExclusions(const char *value)
void SetCompressionType(CompressionType &&value)
S3JsonSource & WithRecurse(bool value)
const Aws::String & GetGroupFiles() const
void SetExclusions(const Aws::Vector< Aws::String > &value)
S3JsonSource & WithName(Aws::String &&value)
void SetJsonPath(const Aws::String &value)
S3JsonSource & WithJsonPath(const char *value)
S3JsonSource & AddPaths(const char *value)
S3JsonSource & WithGroupSize(const Aws::String &value)
S3JsonSource & WithMaxBand(int 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