AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CSVInput.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/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 S3
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_S3_API CSVInput() = default;
36 AWS_S3_API CSVInput(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3_API CSVInput& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
53 inline FileHeaderInfo GetFileHeaderInfo() const { return m_fileHeaderInfo; }
54 inline bool FileHeaderInfoHasBeenSet() const { return m_fileHeaderInfoHasBeenSet; }
55 inline void SetFileHeaderInfo(FileHeaderInfo value) { m_fileHeaderInfoHasBeenSet = true; m_fileHeaderInfo = value; }
56 inline CSVInput& WithFileHeaderInfo(FileHeaderInfo value) { SetFileHeaderInfo(value); return *this;}
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) { m_commentsHasBeenSet = true; m_comments = std::forward<CommentsT>(value); }
70 template<typename CommentsT = Aws::String>
71 CSVInput& WithComments(CommentsT&& value) { SetComments(std::forward<CommentsT>(value)); return *this;}
73
75
80 inline const Aws::String& GetQuoteEscapeCharacter() const { return m_quoteEscapeCharacter; }
81 inline bool QuoteEscapeCharacterHasBeenSet() const { return m_quoteEscapeCharacterHasBeenSet; }
82 template<typename QuoteEscapeCharacterT = Aws::String>
83 void SetQuoteEscapeCharacter(QuoteEscapeCharacterT&& value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter = std::forward<QuoteEscapeCharacterT>(value); }
84 template<typename QuoteEscapeCharacterT = Aws::String>
85 CSVInput& WithQuoteEscapeCharacter(QuoteEscapeCharacterT&& value) { SetQuoteEscapeCharacter(std::forward<QuoteEscapeCharacterT>(value)); return *this;}
87
89
93 inline const Aws::String& GetRecordDelimiter() const { return m_recordDelimiter; }
94 inline bool RecordDelimiterHasBeenSet() const { return m_recordDelimiterHasBeenSet; }
95 template<typename RecordDelimiterT = Aws::String>
96 void SetRecordDelimiter(RecordDelimiterT&& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = std::forward<RecordDelimiterT>(value); }
97 template<typename RecordDelimiterT = Aws::String>
98 CSVInput& WithRecordDelimiter(RecordDelimiterT&& value) { SetRecordDelimiter(std::forward<RecordDelimiterT>(value)); return *this;}
100
102
106 inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
107 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
108 template<typename FieldDelimiterT = Aws::String>
109 void SetFieldDelimiter(FieldDelimiterT&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::forward<FieldDelimiterT>(value); }
110 template<typename FieldDelimiterT = Aws::String>
111 CSVInput& WithFieldDelimiter(FieldDelimiterT&& value) { SetFieldDelimiter(std::forward<FieldDelimiterT>(value)); return *this;}
113
115
121 inline const Aws::String& GetQuoteCharacter() const { return m_quoteCharacter; }
122 inline bool QuoteCharacterHasBeenSet() const { return m_quoteCharacterHasBeenSet; }
123 template<typename QuoteCharacterT = Aws::String>
124 void SetQuoteCharacter(QuoteCharacterT&& value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter = std::forward<QuoteCharacterT>(value); }
125 template<typename QuoteCharacterT = Aws::String>
126 CSVInput& WithQuoteCharacter(QuoteCharacterT&& value) { SetQuoteCharacter(std::forward<QuoteCharacterT>(value)); return *this;}
128
130
135 inline bool GetAllowQuotedRecordDelimiter() const { return m_allowQuotedRecordDelimiter; }
136 inline bool AllowQuotedRecordDelimiterHasBeenSet() const { return m_allowQuotedRecordDelimiterHasBeenSet; }
137 inline void SetAllowQuotedRecordDelimiter(bool value) { m_allowQuotedRecordDelimiterHasBeenSet = true; m_allowQuotedRecordDelimiter = value; }
138 inline CSVInput& WithAllowQuotedRecordDelimiter(bool value) { SetAllowQuotedRecordDelimiter(value); return *this;}
140 private:
141
142 FileHeaderInfo m_fileHeaderInfo{FileHeaderInfo::NOT_SET};
143 bool m_fileHeaderInfoHasBeenSet = false;
144
145 Aws::String m_comments;
146 bool m_commentsHasBeenSet = false;
147
148 Aws::String m_quoteEscapeCharacter;
149 bool m_quoteEscapeCharacterHasBeenSet = false;
150
151 Aws::String m_recordDelimiter;
152 bool m_recordDelimiterHasBeenSet = false;
153
154 Aws::String m_fieldDelimiter;
155 bool m_fieldDelimiterHasBeenSet = false;
156
157 Aws::String m_quoteCharacter;
158 bool m_quoteCharacterHasBeenSet = false;
159
160 bool m_allowQuotedRecordDelimiter{false};
161 bool m_allowQuotedRecordDelimiterHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace S3
166} // namespace Aws
bool GetAllowQuotedRecordDelimiter() const
Definition CSVInput.h:135
bool AllowQuotedRecordDelimiterHasBeenSet() const
Definition CSVInput.h:136
CSVInput & WithComments(CommentsT &&value)
Definition CSVInput.h:71
bool CommentsHasBeenSet() const
Definition CSVInput.h:67
bool QuoteEscapeCharacterHasBeenSet() const
Definition CSVInput.h:81
bool QuoteCharacterHasBeenSet() const
Definition CSVInput.h:122
bool RecordDelimiterHasBeenSet() const
Definition CSVInput.h:94
FileHeaderInfo GetFileHeaderInfo() const
Definition CSVInput.h:53
void SetAllowQuotedRecordDelimiter(bool value)
Definition CSVInput.h:137
AWS_S3_API CSVInput(const Aws::Utils::Xml::XmlNode &xmlNode)
CSVInput & WithRecordDelimiter(RecordDelimiterT &&value)
Definition CSVInput.h:98
const Aws::String & GetQuoteEscapeCharacter() const
Definition CSVInput.h:80
CSVInput & WithFileHeaderInfo(FileHeaderInfo value)
Definition CSVInput.h:56
const Aws::String & GetComments() const
Definition CSVInput.h:66
void SetQuoteEscapeCharacter(QuoteEscapeCharacterT &&value)
Definition CSVInput.h:83
AWS_S3_API CSVInput & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFieldDelimiter(FieldDelimiterT &&value)
Definition CSVInput.h:109
void SetFileHeaderInfo(FileHeaderInfo value)
Definition CSVInput.h:55
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CSVInput & WithQuoteEscapeCharacter(QuoteEscapeCharacterT &&value)
Definition CSVInput.h:85
void SetRecordDelimiter(RecordDelimiterT &&value)
Definition CSVInput.h:96
CSVInput & WithQuoteCharacter(QuoteCharacterT &&value)
Definition CSVInput.h:126
const Aws::String & GetRecordDelimiter() const
Definition CSVInput.h:93
void SetQuoteCharacter(QuoteCharacterT &&value)
Definition CSVInput.h:124
const Aws::String & GetFieldDelimiter() const
Definition CSVInput.h:106
void SetComments(CommentsT &&value)
Definition CSVInput.h:69
bool FileHeaderInfoHasBeenSet() const
Definition CSVInput.h:54
const Aws::String & GetQuoteCharacter() const
Definition CSVInput.h:121
CSVInput & WithFieldDelimiter(FieldDelimiterT &&value)
Definition CSVInput.h:111
AWS_S3_API CSVInput()=default
CSVInput & WithAllowQuotedRecordDelimiter(bool value)
Definition CSVInput.h:138
bool FieldDelimiterHasBeenSet() const
Definition CSVInput.h:107
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String