AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CsvConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace TimestreamWrite {
20namespace Model {
21
29 public:
30 AWS_TIMESTREAMWRITE_API CsvConfiguration() = default;
31 AWS_TIMESTREAMWRITE_API CsvConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_TIMESTREAMWRITE_API CsvConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetColumnSeparator() const { return m_columnSeparator; }
41 inline bool ColumnSeparatorHasBeenSet() const { return m_columnSeparatorHasBeenSet; }
42 template <typename ColumnSeparatorT = Aws::String>
43 void SetColumnSeparator(ColumnSeparatorT&& value) {
44 m_columnSeparatorHasBeenSet = true;
45 m_columnSeparator = std::forward<ColumnSeparatorT>(value);
46 }
47 template <typename ColumnSeparatorT = Aws::String>
48 CsvConfiguration& WithColumnSeparator(ColumnSeparatorT&& value) {
49 SetColumnSeparator(std::forward<ColumnSeparatorT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetEscapeChar() const { return m_escapeChar; }
59 inline bool EscapeCharHasBeenSet() const { return m_escapeCharHasBeenSet; }
60 template <typename EscapeCharT = Aws::String>
61 void SetEscapeChar(EscapeCharT&& value) {
62 m_escapeCharHasBeenSet = true;
63 m_escapeChar = std::forward<EscapeCharT>(value);
64 }
65 template <typename EscapeCharT = Aws::String>
66 CsvConfiguration& WithEscapeChar(EscapeCharT&& value) {
67 SetEscapeChar(std::forward<EscapeCharT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetQuoteChar() const { return m_quoteChar; }
77 inline bool QuoteCharHasBeenSet() const { return m_quoteCharHasBeenSet; }
78 template <typename QuoteCharT = Aws::String>
79 void SetQuoteChar(QuoteCharT&& value) {
80 m_quoteCharHasBeenSet = true;
81 m_quoteChar = std::forward<QuoteCharT>(value);
82 }
83 template <typename QuoteCharT = Aws::String>
84 CsvConfiguration& WithQuoteChar(QuoteCharT&& value) {
85 SetQuoteChar(std::forward<QuoteCharT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetNullValue() const { return m_nullValue; }
95 inline bool NullValueHasBeenSet() const { return m_nullValueHasBeenSet; }
96 template <typename NullValueT = Aws::String>
97 void SetNullValue(NullValueT&& value) {
98 m_nullValueHasBeenSet = true;
99 m_nullValue = std::forward<NullValueT>(value);
100 }
101 template <typename NullValueT = Aws::String>
102 CsvConfiguration& WithNullValue(NullValueT&& value) {
103 SetNullValue(std::forward<NullValueT>(value));
104 return *this;
105 }
107
109
112 inline bool GetTrimWhiteSpace() const { return m_trimWhiteSpace; }
113 inline bool TrimWhiteSpaceHasBeenSet() const { return m_trimWhiteSpaceHasBeenSet; }
114 inline void SetTrimWhiteSpace(bool value) {
115 m_trimWhiteSpaceHasBeenSet = true;
116 m_trimWhiteSpace = value;
117 }
119 SetTrimWhiteSpace(value);
120 return *this;
121 }
123 private:
124 Aws::String m_columnSeparator;
125
126 Aws::String m_escapeChar;
127
128 Aws::String m_quoteChar;
129
130 Aws::String m_nullValue;
131
132 bool m_trimWhiteSpace{false};
133 bool m_columnSeparatorHasBeenSet = false;
134 bool m_escapeCharHasBeenSet = false;
135 bool m_quoteCharHasBeenSet = false;
136 bool m_nullValueHasBeenSet = false;
137 bool m_trimWhiteSpaceHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace TimestreamWrite
142} // namespace Aws
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
CsvConfiguration & WithTrimWhiteSpace(bool value)
CsvConfiguration & WithNullValue(NullValueT &&value)
AWS_TIMESTREAMWRITE_API CsvConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
CsvConfiguration & WithEscapeChar(EscapeCharT &&value)
CsvConfiguration & WithColumnSeparator(ColumnSeparatorT &&value)
void SetColumnSeparator(ColumnSeparatorT &&value)
AWS_TIMESTREAMWRITE_API CsvConfiguration(Aws::Utils::Json::JsonView jsonValue)
CsvConfiguration & WithQuoteChar(QuoteCharT &&value)
AWS_TIMESTREAMWRITE_API CsvConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue