AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CSVInput.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
33 {
34 public:
38
40
41
52 inline const FileHeaderInfo& GetFileHeaderInfo() const{ return m_fileHeaderInfo; }
53
64 inline bool FileHeaderInfoHasBeenSet() const { return m_fileHeaderInfoHasBeenSet; }
65
76 inline void SetFileHeaderInfo(const FileHeaderInfo& value) { m_fileHeaderInfoHasBeenSet = true; m_fileHeaderInfo = value; }
77
88 inline void SetFileHeaderInfo(FileHeaderInfo&& value) { m_fileHeaderInfoHasBeenSet = true; m_fileHeaderInfo = std::move(value); }
89
100 inline CSVInput& WithFileHeaderInfo(const FileHeaderInfo& value) { SetFileHeaderInfo(value); return *this;}
101
112 inline CSVInput& WithFileHeaderInfo(FileHeaderInfo&& value) { SetFileHeaderInfo(std::move(value)); return *this;}
113
114
120 inline const Aws::String& GetComments() const{ return m_comments; }
121
127 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
128
134 inline void SetComments(const Aws::String& value) { m_commentsHasBeenSet = true; m_comments = value; }
135
141 inline void SetComments(Aws::String&& value) { m_commentsHasBeenSet = true; m_comments = std::move(value); }
142
148 inline void SetComments(const char* value) { m_commentsHasBeenSet = true; m_comments.assign(value); }
149
155 inline CSVInput& WithComments(const Aws::String& value) { SetComments(value); return *this;}
156
162 inline CSVInput& WithComments(Aws::String&& value) { SetComments(std::move(value)); return *this;}
163
169 inline CSVInput& WithComments(const char* value) { SetComments(value); return *this;}
170
171
177 inline const Aws::String& GetQuoteEscapeCharacter() const{ return m_quoteEscapeCharacter; }
178
184 inline bool QuoteEscapeCharacterHasBeenSet() const { return m_quoteEscapeCharacterHasBeenSet; }
185
191 inline void SetQuoteEscapeCharacter(const Aws::String& value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter = value; }
192
198 inline void SetQuoteEscapeCharacter(Aws::String&& value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter = std::move(value); }
199
205 inline void SetQuoteEscapeCharacter(const char* value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter.assign(value); }
206
212 inline CSVInput& WithQuoteEscapeCharacter(const Aws::String& value) { SetQuoteEscapeCharacter(value); return *this;}
213
219 inline CSVInput& WithQuoteEscapeCharacter(Aws::String&& value) { SetQuoteEscapeCharacter(std::move(value)); return *this;}
220
226 inline CSVInput& WithQuoteEscapeCharacter(const char* value) { SetQuoteEscapeCharacter(value); return *this;}
227
228
233 inline const Aws::String& GetRecordDelimiter() const{ return m_recordDelimiter; }
234
239 inline bool RecordDelimiterHasBeenSet() const { return m_recordDelimiterHasBeenSet; }
240
245 inline void SetRecordDelimiter(const Aws::String& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = value; }
246
251 inline void SetRecordDelimiter(Aws::String&& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = std::move(value); }
252
257 inline void SetRecordDelimiter(const char* value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter.assign(value); }
258
263 inline CSVInput& WithRecordDelimiter(const Aws::String& value) { SetRecordDelimiter(value); return *this;}
264
269 inline CSVInput& WithRecordDelimiter(Aws::String&& value) { SetRecordDelimiter(std::move(value)); return *this;}
270
275 inline CSVInput& WithRecordDelimiter(const char* value) { SetRecordDelimiter(value); return *this;}
276
277
282 inline const Aws::String& GetFieldDelimiter() const{ return m_fieldDelimiter; }
283
288 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
289
294 inline void SetFieldDelimiter(const Aws::String& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = value; }
295
300 inline void SetFieldDelimiter(Aws::String&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::move(value); }
301
306 inline void SetFieldDelimiter(const char* value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter.assign(value); }
307
312 inline CSVInput& WithFieldDelimiter(const Aws::String& value) { SetFieldDelimiter(value); return *this;}
313
318 inline CSVInput& WithFieldDelimiter(Aws::String&& value) { SetFieldDelimiter(std::move(value)); return *this;}
319
324 inline CSVInput& WithFieldDelimiter(const char* value) { SetFieldDelimiter(value); return *this;}
325
326
333 inline const Aws::String& GetQuoteCharacter() const{ return m_quoteCharacter; }
334
341 inline bool QuoteCharacterHasBeenSet() const { return m_quoteCharacterHasBeenSet; }
342
349 inline void SetQuoteCharacter(const Aws::String& value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter = value; }
350
357 inline void SetQuoteCharacter(Aws::String&& value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter = std::move(value); }
358
365 inline void SetQuoteCharacter(const char* value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter.assign(value); }
366
373 inline CSVInput& WithQuoteCharacter(const Aws::String& value) { SetQuoteCharacter(value); return *this;}
374
381 inline CSVInput& WithQuoteCharacter(Aws::String&& value) { SetQuoteCharacter(std::move(value)); return *this;}
382
389 inline CSVInput& WithQuoteCharacter(const char* value) { SetQuoteCharacter(value); return *this;}
390
391
397 inline bool GetAllowQuotedRecordDelimiter() const{ return m_allowQuotedRecordDelimiter; }
398
404 inline bool AllowQuotedRecordDelimiterHasBeenSet() const { return m_allowQuotedRecordDelimiterHasBeenSet; }
405
411 inline void SetAllowQuotedRecordDelimiter(bool value) { m_allowQuotedRecordDelimiterHasBeenSet = true; m_allowQuotedRecordDelimiter = value; }
412
418 inline CSVInput& WithAllowQuotedRecordDelimiter(bool value) { SetAllowQuotedRecordDelimiter(value); return *this;}
419
420 private:
421
422 FileHeaderInfo m_fileHeaderInfo;
423 bool m_fileHeaderInfoHasBeenSet = false;
424
425 Aws::String m_comments;
426 bool m_commentsHasBeenSet = false;
427
428 Aws::String m_quoteEscapeCharacter;
429 bool m_quoteEscapeCharacterHasBeenSet = false;
430
431 Aws::String m_recordDelimiter;
432 bool m_recordDelimiterHasBeenSet = false;
433
434 Aws::String m_fieldDelimiter;
435 bool m_fieldDelimiterHasBeenSet = false;
436
437 Aws::String m_quoteCharacter;
438 bool m_quoteCharacterHasBeenSet = false;
439
440 bool m_allowQuotedRecordDelimiter;
441 bool m_allowQuotedRecordDelimiterHasBeenSet = false;
442 };
443
444} // namespace Model
445} // namespace S3
446} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
bool GetAllowQuotedRecordDelimiter() const
Definition: CSVInput.h:397
bool AllowQuotedRecordDelimiterHasBeenSet() const
Definition: CSVInput.h:404
bool CommentsHasBeenSet() const
Definition: CSVInput.h:127
bool QuoteEscapeCharacterHasBeenSet() const
Definition: CSVInput.h:184
bool QuoteCharacterHasBeenSet() const
Definition: CSVInput.h:341
void SetFieldDelimiter(Aws::String &&value)
Definition: CSVInput.h:300
void SetQuoteCharacter(Aws::String &&value)
Definition: CSVInput.h:357
CSVInput & WithQuoteEscapeCharacter(Aws::String &&value)
Definition: CSVInput.h:219
bool RecordDelimiterHasBeenSet() const
Definition: CSVInput.h:239
CSVInput & WithRecordDelimiter(const char *value)
Definition: CSVInput.h:275
void SetFieldDelimiter(const Aws::String &value)
Definition: CSVInput.h:294
void SetComments(const char *value)
Definition: CSVInput.h:148
void SetAllowQuotedRecordDelimiter(bool value)
Definition: CSVInput.h:411
CSVInput & WithComments(const char *value)
Definition: CSVInput.h:169
void SetQuoteEscapeCharacter(const Aws::String &value)
Definition: CSVInput.h:191
AWS_S3_API CSVInput(const Aws::Utils::Xml::XmlNode &xmlNode)
CSVInput & WithQuoteEscapeCharacter(const char *value)
Definition: CSVInput.h:226
void SetComments(const Aws::String &value)
Definition: CSVInput.h:134
void SetQuoteCharacter(const Aws::String &value)
Definition: CSVInput.h:349
const Aws::String & GetQuoteEscapeCharacter() const
Definition: CSVInput.h:177
CSVInput & WithComments(const Aws::String &value)
Definition: CSVInput.h:155
void SetFileHeaderInfo(const FileHeaderInfo &value)
Definition: CSVInput.h:76
const Aws::String & GetComments() const
Definition: CSVInput.h:120
CSVInput & WithFileHeaderInfo(const FileHeaderInfo &value)
Definition: CSVInput.h:100
void SetRecordDelimiter(Aws::String &&value)
Definition: CSVInput.h:251
const FileHeaderInfo & GetFileHeaderInfo() const
Definition: CSVInput.h:52
CSVInput & WithRecordDelimiter(const Aws::String &value)
Definition: CSVInput.h:263
CSVInput & WithQuoteCharacter(const Aws::String &value)
Definition: CSVInput.h:373
void SetFieldDelimiter(const char *value)
Definition: CSVInput.h:306
CSVInput & WithFileHeaderInfo(FileHeaderInfo &&value)
Definition: CSVInput.h:112
void SetQuoteCharacter(const char *value)
Definition: CSVInput.h:365
AWS_S3_API CSVInput & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRecordDelimiter(const char *value)
Definition: CSVInput.h:257
CSVInput & WithFieldDelimiter(const Aws::String &value)
Definition: CSVInput.h:312
CSVInput & WithFieldDelimiter(const char *value)
Definition: CSVInput.h:324
CSVInput & WithComments(Aws::String &&value)
Definition: CSVInput.h:162
CSVInput & WithQuoteCharacter(const char *value)
Definition: CSVInput.h:389
CSVInput & WithQuoteEscapeCharacter(const Aws::String &value)
Definition: CSVInput.h:212
void SetComments(Aws::String &&value)
Definition: CSVInput.h:141
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetRecordDelimiter() const
Definition: CSVInput.h:233
const Aws::String & GetFieldDelimiter() const
Definition: CSVInput.h:282
bool FileHeaderInfoHasBeenSet() const
Definition: CSVInput.h:64
void SetRecordDelimiter(const Aws::String &value)
Definition: CSVInput.h:245
const Aws::String & GetQuoteCharacter() const
Definition: CSVInput.h:333
void SetFileHeaderInfo(FileHeaderInfo &&value)
Definition: CSVInput.h:88
CSVInput & WithQuoteCharacter(Aws::String &&value)
Definition: CSVInput.h:381
void SetQuoteEscapeCharacter(Aws::String &&value)
Definition: CSVInput.h:198
CSVInput & WithRecordDelimiter(Aws::String &&value)
Definition: CSVInput.h:269
CSVInput & WithAllowQuotedRecordDelimiter(bool value)
Definition: CSVInput.h:418
bool FieldDelimiterHasBeenSet() const
Definition: CSVInput.h:288
CSVInput & WithFieldDelimiter(Aws::String &&value)
Definition: CSVInput.h:318
void SetQuoteEscapeCharacter(const char *value)
Definition: CSVInput.h:205
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String