AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CSVInput.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/FileHeaderInfo.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Crt
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_S3CRT_API CSVInput();
36 AWS_S3CRT_API CSVInput(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3CRT_API CSVInput& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
53 inline const FileHeaderInfo& GetFileHeaderInfo() const{ return m_fileHeaderInfo; }
54 inline bool FileHeaderInfoHasBeenSet() const { return m_fileHeaderInfoHasBeenSet; }
55 inline void SetFileHeaderInfo(const FileHeaderInfo& value) { m_fileHeaderInfoHasBeenSet = true; m_fileHeaderInfo = value; }
56 inline void SetFileHeaderInfo(FileHeaderInfo&& value) { m_fileHeaderInfoHasBeenSet = true; m_fileHeaderInfo = std::move(value); }
57 inline CSVInput& WithFileHeaderInfo(const FileHeaderInfo& value) { SetFileHeaderInfo(value); return *this;}
58 inline CSVInput& WithFileHeaderInfo(FileHeaderInfo&& value) { SetFileHeaderInfo(std::move(value)); return *this;}
60
62
68 inline const Aws::String& GetComments() const{ return m_comments; }
69 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
70 inline void SetComments(const Aws::String& value) { m_commentsHasBeenSet = true; m_comments = value; }
71 inline void SetComments(Aws::String&& value) { m_commentsHasBeenSet = true; m_comments = std::move(value); }
72 inline void SetComments(const char* value) { m_commentsHasBeenSet = true; m_comments.assign(value); }
73 inline CSVInput& WithComments(const Aws::String& value) { SetComments(value); return *this;}
74 inline CSVInput& WithComments(Aws::String&& value) { SetComments(std::move(value)); return *this;}
75 inline CSVInput& WithComments(const char* value) { SetComments(value); return *this;}
77
79
84 inline const Aws::String& GetQuoteEscapeCharacter() const{ return m_quoteEscapeCharacter; }
85 inline bool QuoteEscapeCharacterHasBeenSet() const { return m_quoteEscapeCharacterHasBeenSet; }
86 inline void SetQuoteEscapeCharacter(const Aws::String& value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter = value; }
87 inline void SetQuoteEscapeCharacter(Aws::String&& value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter = std::move(value); }
88 inline void SetQuoteEscapeCharacter(const char* value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter.assign(value); }
89 inline CSVInput& WithQuoteEscapeCharacter(const Aws::String& value) { SetQuoteEscapeCharacter(value); return *this;}
90 inline CSVInput& WithQuoteEscapeCharacter(Aws::String&& value) { SetQuoteEscapeCharacter(std::move(value)); return *this;}
91 inline CSVInput& WithQuoteEscapeCharacter(const char* value) { SetQuoteEscapeCharacter(value); return *this;}
93
95
99 inline const Aws::String& GetRecordDelimiter() const{ return m_recordDelimiter; }
100 inline bool RecordDelimiterHasBeenSet() const { return m_recordDelimiterHasBeenSet; }
101 inline void SetRecordDelimiter(const Aws::String& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = value; }
102 inline void SetRecordDelimiter(Aws::String&& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = std::move(value); }
103 inline void SetRecordDelimiter(const char* value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter.assign(value); }
104 inline CSVInput& WithRecordDelimiter(const Aws::String& value) { SetRecordDelimiter(value); return *this;}
105 inline CSVInput& WithRecordDelimiter(Aws::String&& value) { SetRecordDelimiter(std::move(value)); return *this;}
106 inline CSVInput& WithRecordDelimiter(const char* value) { SetRecordDelimiter(value); return *this;}
108
110
114 inline const Aws::String& GetFieldDelimiter() const{ return m_fieldDelimiter; }
115 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
116 inline void SetFieldDelimiter(const Aws::String& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = value; }
117 inline void SetFieldDelimiter(Aws::String&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::move(value); }
118 inline void SetFieldDelimiter(const char* value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter.assign(value); }
119 inline CSVInput& WithFieldDelimiter(const Aws::String& value) { SetFieldDelimiter(value); return *this;}
120 inline CSVInput& WithFieldDelimiter(Aws::String&& value) { SetFieldDelimiter(std::move(value)); return *this;}
121 inline CSVInput& WithFieldDelimiter(const char* value) { SetFieldDelimiter(value); return *this;}
123
125
131 inline const Aws::String& GetQuoteCharacter() const{ return m_quoteCharacter; }
132 inline bool QuoteCharacterHasBeenSet() const { return m_quoteCharacterHasBeenSet; }
133 inline void SetQuoteCharacter(const Aws::String& value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter = value; }
134 inline void SetQuoteCharacter(Aws::String&& value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter = std::move(value); }
135 inline void SetQuoteCharacter(const char* value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter.assign(value); }
136 inline CSVInput& WithQuoteCharacter(const Aws::String& value) { SetQuoteCharacter(value); return *this;}
137 inline CSVInput& WithQuoteCharacter(Aws::String&& value) { SetQuoteCharacter(std::move(value)); return *this;}
138 inline CSVInput& WithQuoteCharacter(const char* value) { SetQuoteCharacter(value); return *this;}
140
142
147 inline bool GetAllowQuotedRecordDelimiter() const{ return m_allowQuotedRecordDelimiter; }
148 inline bool AllowQuotedRecordDelimiterHasBeenSet() const { return m_allowQuotedRecordDelimiterHasBeenSet; }
149 inline void SetAllowQuotedRecordDelimiter(bool value) { m_allowQuotedRecordDelimiterHasBeenSet = true; m_allowQuotedRecordDelimiter = value; }
150 inline CSVInput& WithAllowQuotedRecordDelimiter(bool value) { SetAllowQuotedRecordDelimiter(value); return *this;}
152 private:
153
154 FileHeaderInfo m_fileHeaderInfo;
155 bool m_fileHeaderInfoHasBeenSet = false;
156
157 Aws::String m_comments;
158 bool m_commentsHasBeenSet = false;
159
160 Aws::String m_quoteEscapeCharacter;
161 bool m_quoteEscapeCharacterHasBeenSet = false;
162
163 Aws::String m_recordDelimiter;
164 bool m_recordDelimiterHasBeenSet = false;
165
166 Aws::String m_fieldDelimiter;
167 bool m_fieldDelimiterHasBeenSet = false;
168
169 Aws::String m_quoteCharacter;
170 bool m_quoteCharacterHasBeenSet = false;
171
172 bool m_allowQuotedRecordDelimiter;
173 bool m_allowQuotedRecordDelimiterHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace S3Crt
178} // namespace Aws
CSVInput & WithQuoteEscapeCharacter(const char *value)
Definition CSVInput.h:91
CSVInput & WithRecordDelimiter(Aws::String &&value)
Definition CSVInput.h:105
CSVInput & WithRecordDelimiter(const char *value)
Definition CSVInput.h:106
AWS_S3CRT_API CSVInput & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetQuoteCharacter(Aws::String &&value)
Definition CSVInput.h:134
void SetQuoteCharacter(const char *value)
Definition CSVInput.h:135
CSVInput & WithQuoteEscapeCharacter(const Aws::String &value)
Definition CSVInput.h:89
void SetComments(const Aws::String &value)
Definition CSVInput.h:70
void SetRecordDelimiter(const char *value)
Definition CSVInput.h:103
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetFieldDelimiter(Aws::String &&value)
Definition CSVInput.h:117
void SetQuoteEscapeCharacter(const Aws::String &value)
Definition CSVInput.h:86
void SetFieldDelimiter(const Aws::String &value)
Definition CSVInput.h:116
void SetQuoteCharacter(const Aws::String &value)
Definition CSVInput.h:133
bool CommentsHasBeenSet() const
Definition CSVInput.h:69
CSVInput & WithQuoteCharacter(const char *value)
Definition CSVInput.h:138
const Aws::String & GetRecordDelimiter() const
Definition CSVInput.h:99
const Aws::String & GetQuoteEscapeCharacter() const
Definition CSVInput.h:84
bool FileHeaderInfoHasBeenSet() const
Definition CSVInput.h:54
const Aws::String & GetComments() const
Definition CSVInput.h:68
void SetFileHeaderInfo(FileHeaderInfo &&value)
Definition CSVInput.h:56
CSVInput & WithComments(const Aws::String &value)
Definition CSVInput.h:73
CSVInput & WithComments(const char *value)
Definition CSVInput.h:75
void SetAllowQuotedRecordDelimiter(bool value)
Definition CSVInput.h:149
const FileHeaderInfo & GetFileHeaderInfo() const
Definition CSVInput.h:53
void SetFileHeaderInfo(const FileHeaderInfo &value)
Definition CSVInput.h:55
CSVInput & WithComments(Aws::String &&value)
Definition CSVInput.h:74
void SetComments(const char *value)
Definition CSVInput.h:72
CSVInput & WithFieldDelimiter(Aws::String &&value)
Definition CSVInput.h:120
bool QuoteCharacterHasBeenSet() const
Definition CSVInput.h:132
CSVInput & WithQuoteCharacter(const Aws::String &value)
Definition CSVInput.h:136
AWS_S3CRT_API CSVInput(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetQuoteEscapeCharacter(Aws::String &&value)
Definition CSVInput.h:87
CSVInput & WithQuoteCharacter(Aws::String &&value)
Definition CSVInput.h:137
CSVInput & WithFileHeaderInfo(FileHeaderInfo &&value)
Definition CSVInput.h:58
CSVInput & WithFieldDelimiter(const Aws::String &value)
Definition CSVInput.h:119
bool GetAllowQuotedRecordDelimiter() const
Definition CSVInput.h:147
const Aws::String & GetFieldDelimiter() const
Definition CSVInput.h:114
void SetFieldDelimiter(const char *value)
Definition CSVInput.h:118
const Aws::String & GetQuoteCharacter() const
Definition CSVInput.h:131
bool AllowQuotedRecordDelimiterHasBeenSet() const
Definition CSVInput.h:148
void SetComments(Aws::String &&value)
Definition CSVInput.h:71
bool QuoteEscapeCharacterHasBeenSet() const
Definition CSVInput.h:85
CSVInput & WithFileHeaderInfo(const FileHeaderInfo &value)
Definition CSVInput.h:57
CSVInput & WithRecordDelimiter(const Aws::String &value)
Definition CSVInput.h:104
CSVInput & WithFieldDelimiter(const char *value)
Definition CSVInput.h:121
void SetRecordDelimiter(const Aws::String &value)
Definition CSVInput.h:101
void SetQuoteEscapeCharacter(const char *value)
Definition CSVInput.h:88
CSVInput & WithQuoteEscapeCharacter(Aws::String &&value)
Definition CSVInput.h:90
bool RecordDelimiterHasBeenSet() const
Definition CSVInput.h:100
void SetRecordDelimiter(Aws::String &&value)
Definition CSVInput.h:102
CSVInput & WithAllowQuotedRecordDelimiter(bool value)
Definition CSVInput.h:150
bool FieldDelimiterHasBeenSet() const
Definition CSVInput.h:115
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String