AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CSVInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/FileHeaderInfo.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3 {
20namespace Model {
21
28class CSVInput {
29 public:
30 AWS_S3_API CSVInput() = default;
31 AWS_S3_API CSVInput(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_S3_API CSVInput& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
47 inline FileHeaderInfo GetFileHeaderInfo() const { return m_fileHeaderInfo; }
48 inline bool FileHeaderInfoHasBeenSet() const { return m_fileHeaderInfoHasBeenSet; }
49 inline void SetFileHeaderInfo(FileHeaderInfo value) {
50 m_fileHeaderInfoHasBeenSet = true;
51 m_fileHeaderInfo = value;
52 }
54 SetFileHeaderInfo(value);
55 return *this;
56 }
58
60
66 inline const Aws::String& GetComments() const { return m_comments; }
67 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
68 template <typename CommentsT = Aws::String>
69 void SetComments(CommentsT&& value) {
70 m_commentsHasBeenSet = true;
71 m_comments = std::forward<CommentsT>(value);
72 }
73 template <typename CommentsT = Aws::String>
74 CSVInput& WithComments(CommentsT&& value) {
75 SetComments(std::forward<CommentsT>(value));
76 return *this;
77 }
79
81
86 inline const Aws::String& GetQuoteEscapeCharacter() const { return m_quoteEscapeCharacter; }
87 inline bool QuoteEscapeCharacterHasBeenSet() const { return m_quoteEscapeCharacterHasBeenSet; }
88 template <typename QuoteEscapeCharacterT = Aws::String>
89 void SetQuoteEscapeCharacter(QuoteEscapeCharacterT&& value) {
90 m_quoteEscapeCharacterHasBeenSet = true;
91 m_quoteEscapeCharacter = std::forward<QuoteEscapeCharacterT>(value);
92 }
93 template <typename QuoteEscapeCharacterT = Aws::String>
94 CSVInput& WithQuoteEscapeCharacter(QuoteEscapeCharacterT&& value) {
95 SetQuoteEscapeCharacter(std::forward<QuoteEscapeCharacterT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetRecordDelimiter() const { return m_recordDelimiter; }
106 inline bool RecordDelimiterHasBeenSet() const { return m_recordDelimiterHasBeenSet; }
107 template <typename RecordDelimiterT = Aws::String>
108 void SetRecordDelimiter(RecordDelimiterT&& value) {
109 m_recordDelimiterHasBeenSet = true;
110 m_recordDelimiter = std::forward<RecordDelimiterT>(value);
111 }
112 template <typename RecordDelimiterT = Aws::String>
113 CSVInput& WithRecordDelimiter(RecordDelimiterT&& value) {
114 SetRecordDelimiter(std::forward<RecordDelimiterT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
125 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
126 template <typename FieldDelimiterT = Aws::String>
127 void SetFieldDelimiter(FieldDelimiterT&& value) {
128 m_fieldDelimiterHasBeenSet = true;
129 m_fieldDelimiter = std::forward<FieldDelimiterT>(value);
130 }
131 template <typename FieldDelimiterT = Aws::String>
132 CSVInput& WithFieldDelimiter(FieldDelimiterT&& value) {
133 SetFieldDelimiter(std::forward<FieldDelimiterT>(value));
134 return *this;
135 }
137
139
145 inline const Aws::String& GetQuoteCharacter() const { return m_quoteCharacter; }
146 inline bool QuoteCharacterHasBeenSet() const { return m_quoteCharacterHasBeenSet; }
147 template <typename QuoteCharacterT = Aws::String>
148 void SetQuoteCharacter(QuoteCharacterT&& value) {
149 m_quoteCharacterHasBeenSet = true;
150 m_quoteCharacter = std::forward<QuoteCharacterT>(value);
151 }
152 template <typename QuoteCharacterT = Aws::String>
153 CSVInput& WithQuoteCharacter(QuoteCharacterT&& value) {
154 SetQuoteCharacter(std::forward<QuoteCharacterT>(value));
155 return *this;
156 }
158
160
165 inline bool GetAllowQuotedRecordDelimiter() const { return m_allowQuotedRecordDelimiter; }
166 inline bool AllowQuotedRecordDelimiterHasBeenSet() const { return m_allowQuotedRecordDelimiterHasBeenSet; }
167 inline void SetAllowQuotedRecordDelimiter(bool value) {
168 m_allowQuotedRecordDelimiterHasBeenSet = true;
169 m_allowQuotedRecordDelimiter = value;
170 }
173 return *this;
174 }
176 private:
177 FileHeaderInfo m_fileHeaderInfo{FileHeaderInfo::NOT_SET};
178 bool m_fileHeaderInfoHasBeenSet = false;
179
180 Aws::String m_comments;
181 bool m_commentsHasBeenSet = false;
182
183 Aws::String m_quoteEscapeCharacter;
184 bool m_quoteEscapeCharacterHasBeenSet = false;
185
186 Aws::String m_recordDelimiter;
187 bool m_recordDelimiterHasBeenSet = false;
188
189 Aws::String m_fieldDelimiter;
190 bool m_fieldDelimiterHasBeenSet = false;
191
192 Aws::String m_quoteCharacter;
193 bool m_quoteCharacterHasBeenSet = false;
194
195 bool m_allowQuotedRecordDelimiter{false};
196 bool m_allowQuotedRecordDelimiterHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace S3
201} // namespace Aws
bool GetAllowQuotedRecordDelimiter() const
Definition CSVInput.h:165
bool AllowQuotedRecordDelimiterHasBeenSet() const
Definition CSVInput.h:166
CSVInput & WithComments(CommentsT &&value)
Definition CSVInput.h:74
bool CommentsHasBeenSet() const
Definition CSVInput.h:67
bool QuoteEscapeCharacterHasBeenSet() const
Definition CSVInput.h:87
bool QuoteCharacterHasBeenSet() const
Definition CSVInput.h:146
bool RecordDelimiterHasBeenSet() const
Definition CSVInput.h:106
FileHeaderInfo GetFileHeaderInfo() const
Definition CSVInput.h:47
void SetAllowQuotedRecordDelimiter(bool value)
Definition CSVInput.h:167
AWS_S3_API CSVInput(const Aws::Utils::Xml::XmlNode &xmlNode)
CSVInput & WithRecordDelimiter(RecordDelimiterT &&value)
Definition CSVInput.h:113
const Aws::String & GetQuoteEscapeCharacter() const
Definition CSVInput.h:86
CSVInput & WithFileHeaderInfo(FileHeaderInfo value)
Definition CSVInput.h:53
const Aws::String & GetComments() const
Definition CSVInput.h:66
void SetQuoteEscapeCharacter(QuoteEscapeCharacterT &&value)
Definition CSVInput.h:89
AWS_S3_API CSVInput & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFieldDelimiter(FieldDelimiterT &&value)
Definition CSVInput.h:127
void SetFileHeaderInfo(FileHeaderInfo value)
Definition CSVInput.h:49
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CSVInput & WithQuoteEscapeCharacter(QuoteEscapeCharacterT &&value)
Definition CSVInput.h:94
void SetRecordDelimiter(RecordDelimiterT &&value)
Definition CSVInput.h:108
CSVInput & WithQuoteCharacter(QuoteCharacterT &&value)
Definition CSVInput.h:153
const Aws::String & GetRecordDelimiter() const
Definition CSVInput.h:105
void SetQuoteCharacter(QuoteCharacterT &&value)
Definition CSVInput.h:148
const Aws::String & GetFieldDelimiter() const
Definition CSVInput.h:124
void SetComments(CommentsT &&value)
Definition CSVInput.h:69
bool FileHeaderInfoHasBeenSet() const
Definition CSVInput.h:48
const Aws::String & GetQuoteCharacter() const
Definition CSVInput.h:145
CSVInput & WithFieldDelimiter(FieldDelimiterT &&value)
Definition CSVInput.h:132
AWS_S3_API CSVInput()=default
CSVInput & WithAllowQuotedRecordDelimiter(bool value)
Definition CSVInput.h:171
bool FieldDelimiterHasBeenSet() const
Definition CSVInput.h:125
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String