AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CSVOutput.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/QuoteFields.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 CSVOutput {
30 public:
31 AWS_GLACIER_API CSVOutput() = default;
32 AWS_GLACIER_API CSVOutput(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLACIER_API CSVOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline QuoteFields GetQuoteFields() const { return m_quoteFields; }
42 inline bool QuoteFieldsHasBeenSet() const { return m_quoteFieldsHasBeenSet; }
43 inline void SetQuoteFields(QuoteFields value) {
44 m_quoteFieldsHasBeenSet = true;
45 m_quoteFields = value;
46 }
48 SetQuoteFields(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetQuoteEscapeCharacter() const { return m_quoteEscapeCharacter; }
59 inline bool QuoteEscapeCharacterHasBeenSet() const { return m_quoteEscapeCharacterHasBeenSet; }
60 template <typename QuoteEscapeCharacterT = Aws::String>
61 void SetQuoteEscapeCharacter(QuoteEscapeCharacterT&& value) {
62 m_quoteEscapeCharacterHasBeenSet = true;
63 m_quoteEscapeCharacter = std::forward<QuoteEscapeCharacterT>(value);
64 }
65 template <typename QuoteEscapeCharacterT = Aws::String>
66 CSVOutput& WithQuoteEscapeCharacter(QuoteEscapeCharacterT&& value) {
67 SetQuoteEscapeCharacter(std::forward<QuoteEscapeCharacterT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRecordDelimiter() const { return m_recordDelimiter; }
77 inline bool RecordDelimiterHasBeenSet() const { return m_recordDelimiterHasBeenSet; }
78 template <typename RecordDelimiterT = Aws::String>
79 void SetRecordDelimiter(RecordDelimiterT&& value) {
80 m_recordDelimiterHasBeenSet = true;
81 m_recordDelimiter = std::forward<RecordDelimiterT>(value);
82 }
83 template <typename RecordDelimiterT = Aws::String>
84 CSVOutput& WithRecordDelimiter(RecordDelimiterT&& value) {
85 SetRecordDelimiter(std::forward<RecordDelimiterT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
96 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
97 template <typename FieldDelimiterT = Aws::String>
98 void SetFieldDelimiter(FieldDelimiterT&& value) {
99 m_fieldDelimiterHasBeenSet = true;
100 m_fieldDelimiter = std::forward<FieldDelimiterT>(value);
101 }
102 template <typename FieldDelimiterT = Aws::String>
103 CSVOutput& WithFieldDelimiter(FieldDelimiterT&& value) {
104 SetFieldDelimiter(std::forward<FieldDelimiterT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetQuoteCharacter() const { return m_quoteCharacter; }
115 inline bool QuoteCharacterHasBeenSet() const { return m_quoteCharacterHasBeenSet; }
116 template <typename QuoteCharacterT = Aws::String>
117 void SetQuoteCharacter(QuoteCharacterT&& value) {
118 m_quoteCharacterHasBeenSet = true;
119 m_quoteCharacter = std::forward<QuoteCharacterT>(value);
120 }
121 template <typename QuoteCharacterT = Aws::String>
122 CSVOutput& WithQuoteCharacter(QuoteCharacterT&& value) {
123 SetQuoteCharacter(std::forward<QuoteCharacterT>(value));
124 return *this;
125 }
127 private:
128 QuoteFields m_quoteFields{QuoteFields::NOT_SET};
129 bool m_quoteFieldsHasBeenSet = false;
130
131 Aws::String m_quoteEscapeCharacter;
132 bool m_quoteEscapeCharacterHasBeenSet = false;
133
134 Aws::String m_recordDelimiter;
135 bool m_recordDelimiterHasBeenSet = false;
136
137 Aws::String m_fieldDelimiter;
138 bool m_fieldDelimiterHasBeenSet = false;
139
140 Aws::String m_quoteCharacter;
141 bool m_quoteCharacterHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace Glacier
146} // namespace Aws
const Aws::String & GetRecordDelimiter() const
Definition CSVOutput.h:76
bool RecordDelimiterHasBeenSet() const
Definition CSVOutput.h:77
void SetQuoteEscapeCharacter(QuoteEscapeCharacterT &&value)
Definition CSVOutput.h:61
const Aws::String & GetFieldDelimiter() const
Definition CSVOutput.h:95
void SetQuoteCharacter(QuoteCharacterT &&value)
Definition CSVOutput.h:117
QuoteFields GetQuoteFields() const
Definition CSVOutput.h:41
bool FieldDelimiterHasBeenSet() const
Definition CSVOutput.h:96
CSVOutput & WithFieldDelimiter(FieldDelimiterT &&value)
Definition CSVOutput.h:103
AWS_GLACIER_API CSVOutput(Aws::Utils::Json::JsonView jsonValue)
void SetFieldDelimiter(FieldDelimiterT &&value)
Definition CSVOutput.h:98
void SetQuoteFields(QuoteFields value)
Definition CSVOutput.h:43
const Aws::String & GetQuoteEscapeCharacter() const
Definition CSVOutput.h:58
CSVOutput & WithQuoteEscapeCharacter(QuoteEscapeCharacterT &&value)
Definition CSVOutput.h:66
const Aws::String & GetQuoteCharacter() const
Definition CSVOutput.h:114
bool QuoteEscapeCharacterHasBeenSet() const
Definition CSVOutput.h:59
AWS_GLACIER_API CSVOutput()=default
bool QuoteCharacterHasBeenSet() const
Definition CSVOutput.h:115
CSVOutput & WithQuoteCharacter(QuoteCharacterT &&value)
Definition CSVOutput.h:122
void SetRecordDelimiter(RecordDelimiterT &&value)
Definition CSVOutput.h:79
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
bool QuoteFieldsHasBeenSet() const
Definition CSVOutput.h:42
CSVOutput & WithQuoteFields(QuoteFields value)
Definition CSVOutput.h:47
AWS_GLACIER_API CSVOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
CSVOutput & WithRecordDelimiter(RecordDelimiterT &&value)
Definition CSVOutput.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue