AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CSVInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glacier/Glacier_EXPORTS.h>
9#include <aws/glacier/model/FileHeaderInfo.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glacier {
21namespace Model {
22
29class CSVInput {
30 public:
31 AWS_GLACIER_API CSVInput() = default;
32 AWS_GLACIER_API CSVInput(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLACIER_API CSVInput& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline FileHeaderInfo GetFileHeaderInfo() const { return m_fileHeaderInfo; }
42 inline bool FileHeaderInfoHasBeenSet() const { return m_fileHeaderInfoHasBeenSet; }
43 inline void SetFileHeaderInfo(FileHeaderInfo value) {
44 m_fileHeaderInfoHasBeenSet = true;
45 m_fileHeaderInfo = value;
46 }
48 SetFileHeaderInfo(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetComments() const { return m_comments; }
59 inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
60 template <typename CommentsT = Aws::String>
61 void SetComments(CommentsT&& value) {
62 m_commentsHasBeenSet = true;
63 m_comments = std::forward<CommentsT>(value);
64 }
65 template <typename CommentsT = Aws::String>
66 CSVInput& WithComments(CommentsT&& value) {
67 SetComments(std::forward<CommentsT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetQuoteEscapeCharacter() const { return m_quoteEscapeCharacter; }
78 inline bool QuoteEscapeCharacterHasBeenSet() const { return m_quoteEscapeCharacterHasBeenSet; }
79 template <typename QuoteEscapeCharacterT = Aws::String>
80 void SetQuoteEscapeCharacter(QuoteEscapeCharacterT&& value) {
81 m_quoteEscapeCharacterHasBeenSet = true;
82 m_quoteEscapeCharacter = std::forward<QuoteEscapeCharacterT>(value);
83 }
84 template <typename QuoteEscapeCharacterT = Aws::String>
85 CSVInput& WithQuoteEscapeCharacter(QuoteEscapeCharacterT&& value) {
86 SetQuoteEscapeCharacter(std::forward<QuoteEscapeCharacterT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetRecordDelimiter() const { return m_recordDelimiter; }
96 inline bool RecordDelimiterHasBeenSet() const { return m_recordDelimiterHasBeenSet; }
97 template <typename RecordDelimiterT = Aws::String>
98 void SetRecordDelimiter(RecordDelimiterT&& value) {
99 m_recordDelimiterHasBeenSet = true;
100 m_recordDelimiter = std::forward<RecordDelimiterT>(value);
101 }
102 template <typename RecordDelimiterT = Aws::String>
103 CSVInput& WithRecordDelimiter(RecordDelimiterT&& value) {
104 SetRecordDelimiter(std::forward<RecordDelimiterT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
115 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
116 template <typename FieldDelimiterT = Aws::String>
117 void SetFieldDelimiter(FieldDelimiterT&& value) {
118 m_fieldDelimiterHasBeenSet = true;
119 m_fieldDelimiter = std::forward<FieldDelimiterT>(value);
120 }
121 template <typename FieldDelimiterT = Aws::String>
122 CSVInput& WithFieldDelimiter(FieldDelimiterT&& value) {
123 SetFieldDelimiter(std::forward<FieldDelimiterT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetQuoteCharacter() const { return m_quoteCharacter; }
134 inline bool QuoteCharacterHasBeenSet() const { return m_quoteCharacterHasBeenSet; }
135 template <typename QuoteCharacterT = Aws::String>
136 void SetQuoteCharacter(QuoteCharacterT&& value) {
137 m_quoteCharacterHasBeenSet = true;
138 m_quoteCharacter = std::forward<QuoteCharacterT>(value);
139 }
140 template <typename QuoteCharacterT = Aws::String>
141 CSVInput& WithQuoteCharacter(QuoteCharacterT&& value) {
142 SetQuoteCharacter(std::forward<QuoteCharacterT>(value));
143 return *this;
144 }
146 private:
147 FileHeaderInfo m_fileHeaderInfo{FileHeaderInfo::NOT_SET};
148
149 Aws::String m_comments;
150
151 Aws::String m_quoteEscapeCharacter;
152
153 Aws::String m_recordDelimiter;
154
155 Aws::String m_fieldDelimiter;
156
157 Aws::String m_quoteCharacter;
158 bool m_fileHeaderInfoHasBeenSet = false;
159 bool m_commentsHasBeenSet = false;
160 bool m_quoteEscapeCharacterHasBeenSet = false;
161 bool m_recordDelimiterHasBeenSet = false;
162 bool m_fieldDelimiterHasBeenSet = false;
163 bool m_quoteCharacterHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace Glacier
168} // namespace Aws
bool QuoteEscapeCharacterHasBeenSet() const
Definition CSVInput.h:78
const Aws::String & GetFieldDelimiter() const
Definition CSVInput.h:114
void SetComments(CommentsT &&value)
Definition CSVInput.h:61
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLACIER_API CSVInput()=default
CSVInput & WithComments(CommentsT &&value)
Definition CSVInput.h:66
AWS_GLACIER_API CSVInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRecordDelimiter() const
Definition CSVInput.h:95
const Aws::String & GetQuoteCharacter() const
Definition CSVInput.h:133
void SetRecordDelimiter(RecordDelimiterT &&value)
Definition CSVInput.h:98
CSVInput & WithRecordDelimiter(RecordDelimiterT &&value)
Definition CSVInput.h:103
bool CommentsHasBeenSet() const
Definition CSVInput.h:59
bool FileHeaderInfoHasBeenSet() const
Definition CSVInput.h:42
bool RecordDelimiterHasBeenSet() const
Definition CSVInput.h:96
CSVInput & WithQuoteCharacter(QuoteCharacterT &&value)
Definition CSVInput.h:141
void SetQuoteCharacter(QuoteCharacterT &&value)
Definition CSVInput.h:136
bool FieldDelimiterHasBeenSet() const
Definition CSVInput.h:115
CSVInput & WithFieldDelimiter(FieldDelimiterT &&value)
Definition CSVInput.h:122
AWS_GLACIER_API CSVInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuoteEscapeCharacter() const
Definition CSVInput.h:77
CSVInput & WithQuoteEscapeCharacter(QuoteEscapeCharacterT &&value)
Definition CSVInput.h:85
void SetFieldDelimiter(FieldDelimiterT &&value)
Definition CSVInput.h:117
bool QuoteCharacterHasBeenSet() const
Definition CSVInput.h:134
const Aws::String & GetComments() const
Definition CSVInput.h:58
FileHeaderInfo GetFileHeaderInfo() const
Definition CSVInput.h:41
CSVInput & WithFileHeaderInfo(FileHeaderInfo value)
Definition CSVInput.h:47
void SetQuoteEscapeCharacter(QuoteEscapeCharacterT &&value)
Definition CSVInput.h:80
void SetFileHeaderInfo(FileHeaderInfo value)
Definition CSVInput.h:43
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue