AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CSVInput.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/glacier/model/FileHeaderInfo.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glacier
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GLACIER_API CSVInput() = default;
37 AWS_GLACIER_API CSVInput(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLACIER_API CSVInput& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline FileHeaderInfo GetFileHeaderInfo() const { return m_fileHeaderInfo; }
48 inline bool FileHeaderInfoHasBeenSet() const { return m_fileHeaderInfoHasBeenSet; }
49 inline void SetFileHeaderInfo(FileHeaderInfo value) { m_fileHeaderInfoHasBeenSet = true; m_fileHeaderInfo = value; }
50 inline CSVInput& WithFileHeaderInfo(FileHeaderInfo value) { SetFileHeaderInfo(value); return *this;}
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) { m_commentsHasBeenSet = true; m_comments = std::forward<CommentsT>(value); }
62 template<typename CommentsT = Aws::String>
63 CSVInput& WithComments(CommentsT&& value) { SetComments(std::forward<CommentsT>(value)); return *this;}
65
67
71 inline const Aws::String& GetQuoteEscapeCharacter() const { return m_quoteEscapeCharacter; }
72 inline bool QuoteEscapeCharacterHasBeenSet() const { return m_quoteEscapeCharacterHasBeenSet; }
73 template<typename QuoteEscapeCharacterT = Aws::String>
74 void SetQuoteEscapeCharacter(QuoteEscapeCharacterT&& value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter = std::forward<QuoteEscapeCharacterT>(value); }
75 template<typename QuoteEscapeCharacterT = Aws::String>
76 CSVInput& WithQuoteEscapeCharacter(QuoteEscapeCharacterT&& value) { SetQuoteEscapeCharacter(std::forward<QuoteEscapeCharacterT>(value)); return *this;}
78
80
83 inline const Aws::String& GetRecordDelimiter() const { return m_recordDelimiter; }
84 inline bool RecordDelimiterHasBeenSet() const { return m_recordDelimiterHasBeenSet; }
85 template<typename RecordDelimiterT = Aws::String>
86 void SetRecordDelimiter(RecordDelimiterT&& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = std::forward<RecordDelimiterT>(value); }
87 template<typename RecordDelimiterT = Aws::String>
88 CSVInput& WithRecordDelimiter(RecordDelimiterT&& value) { SetRecordDelimiter(std::forward<RecordDelimiterT>(value)); return *this;}
90
92
96 inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
97 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
98 template<typename FieldDelimiterT = Aws::String>
99 void SetFieldDelimiter(FieldDelimiterT&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::forward<FieldDelimiterT>(value); }
100 template<typename FieldDelimiterT = Aws::String>
101 CSVInput& WithFieldDelimiter(FieldDelimiterT&& value) { SetFieldDelimiter(std::forward<FieldDelimiterT>(value)); return *this;}
103
105
109 inline const Aws::String& GetQuoteCharacter() const { return m_quoteCharacter; }
110 inline bool QuoteCharacterHasBeenSet() const { return m_quoteCharacterHasBeenSet; }
111 template<typename QuoteCharacterT = Aws::String>
112 void SetQuoteCharacter(QuoteCharacterT&& value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter = std::forward<QuoteCharacterT>(value); }
113 template<typename QuoteCharacterT = Aws::String>
114 CSVInput& WithQuoteCharacter(QuoteCharacterT&& value) { SetQuoteCharacter(std::forward<QuoteCharacterT>(value)); return *this;}
116 private:
117
118 FileHeaderInfo m_fileHeaderInfo{FileHeaderInfo::NOT_SET};
119 bool m_fileHeaderInfoHasBeenSet = false;
120
121 Aws::String m_comments;
122 bool m_commentsHasBeenSet = false;
123
124 Aws::String m_quoteEscapeCharacter;
125 bool m_quoteEscapeCharacterHasBeenSet = false;
126
127 Aws::String m_recordDelimiter;
128 bool m_recordDelimiterHasBeenSet = false;
129
130 Aws::String m_fieldDelimiter;
131 bool m_fieldDelimiterHasBeenSet = false;
132
133 Aws::String m_quoteCharacter;
134 bool m_quoteCharacterHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Glacier
139} // namespace Aws
bool QuoteEscapeCharacterHasBeenSet() const
Definition CSVInput.h:72
const Aws::String & GetFieldDelimiter() const
Definition CSVInput.h:96
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:63
AWS_GLACIER_API CSVInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRecordDelimiter() const
Definition CSVInput.h:83
const Aws::String & GetQuoteCharacter() const
Definition CSVInput.h:109
void SetRecordDelimiter(RecordDelimiterT &&value)
Definition CSVInput.h:86
CSVInput & WithRecordDelimiter(RecordDelimiterT &&value)
Definition CSVInput.h:88
bool CommentsHasBeenSet() const
Definition CSVInput.h:59
bool FileHeaderInfoHasBeenSet() const
Definition CSVInput.h:48
bool RecordDelimiterHasBeenSet() const
Definition CSVInput.h:84
CSVInput & WithQuoteCharacter(QuoteCharacterT &&value)
Definition CSVInput.h:114
void SetQuoteCharacter(QuoteCharacterT &&value)
Definition CSVInput.h:112
bool FieldDelimiterHasBeenSet() const
Definition CSVInput.h:97
CSVInput & WithFieldDelimiter(FieldDelimiterT &&value)
Definition CSVInput.h:101
AWS_GLACIER_API CSVInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuoteEscapeCharacter() const
Definition CSVInput.h:71
CSVInput & WithQuoteEscapeCharacter(QuoteEscapeCharacterT &&value)
Definition CSVInput.h:76
void SetFieldDelimiter(FieldDelimiterT &&value)
Definition CSVInput.h:99
bool QuoteCharacterHasBeenSet() const
Definition CSVInput.h:110
const Aws::String & GetComments() const
Definition CSVInput.h:58
FileHeaderInfo GetFileHeaderInfo() const
Definition CSVInput.h:47
CSVInput & WithFileHeaderInfo(FileHeaderInfo value)
Definition CSVInput.h:50
void SetQuoteEscapeCharacter(QuoteEscapeCharacterT &&value)
Definition CSVInput.h:74
void SetFileHeaderInfo(FileHeaderInfo value)
Definition CSVInput.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue