AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CsvConfiguration.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace TimestreamWrite
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_TIMESTREAMWRITE_API CsvConfiguration() = default;
36 AWS_TIMESTREAMWRITE_API CsvConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TIMESTREAMWRITE_API CsvConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetColumnSeparator() const { return m_columnSeparator; }
47 inline bool ColumnSeparatorHasBeenSet() const { return m_columnSeparatorHasBeenSet; }
48 template<typename ColumnSeparatorT = Aws::String>
49 void SetColumnSeparator(ColumnSeparatorT&& value) { m_columnSeparatorHasBeenSet = true; m_columnSeparator = std::forward<ColumnSeparatorT>(value); }
50 template<typename ColumnSeparatorT = Aws::String>
51 CsvConfiguration& WithColumnSeparator(ColumnSeparatorT&& value) { SetColumnSeparator(std::forward<ColumnSeparatorT>(value)); return *this;}
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) { m_escapeCharHasBeenSet = true; m_escapeChar = std::forward<EscapeCharT>(value); }
62 template<typename EscapeCharT = Aws::String>
63 CsvConfiguration& WithEscapeChar(EscapeCharT&& value) { SetEscapeChar(std::forward<EscapeCharT>(value)); return *this;}
65
67
70 inline const Aws::String& GetQuoteChar() const { return m_quoteChar; }
71 inline bool QuoteCharHasBeenSet() const { return m_quoteCharHasBeenSet; }
72 template<typename QuoteCharT = Aws::String>
73 void SetQuoteChar(QuoteCharT&& value) { m_quoteCharHasBeenSet = true; m_quoteChar = std::forward<QuoteCharT>(value); }
74 template<typename QuoteCharT = Aws::String>
75 CsvConfiguration& WithQuoteChar(QuoteCharT&& value) { SetQuoteChar(std::forward<QuoteCharT>(value)); return *this;}
77
79
82 inline const Aws::String& GetNullValue() const { return m_nullValue; }
83 inline bool NullValueHasBeenSet() const { return m_nullValueHasBeenSet; }
84 template<typename NullValueT = Aws::String>
85 void SetNullValue(NullValueT&& value) { m_nullValueHasBeenSet = true; m_nullValue = std::forward<NullValueT>(value); }
86 template<typename NullValueT = Aws::String>
87 CsvConfiguration& WithNullValue(NullValueT&& value) { SetNullValue(std::forward<NullValueT>(value)); return *this;}
89
91
94 inline bool GetTrimWhiteSpace() const { return m_trimWhiteSpace; }
95 inline bool TrimWhiteSpaceHasBeenSet() const { return m_trimWhiteSpaceHasBeenSet; }
96 inline void SetTrimWhiteSpace(bool value) { m_trimWhiteSpaceHasBeenSet = true; m_trimWhiteSpace = value; }
97 inline CsvConfiguration& WithTrimWhiteSpace(bool value) { SetTrimWhiteSpace(value); return *this;}
99 private:
100
101 Aws::String m_columnSeparator;
102 bool m_columnSeparatorHasBeenSet = false;
103
104 Aws::String m_escapeChar;
105 bool m_escapeCharHasBeenSet = false;
106
107 Aws::String m_quoteChar;
108 bool m_quoteCharHasBeenSet = false;
109
110 Aws::String m_nullValue;
111 bool m_nullValueHasBeenSet = false;
112
113 bool m_trimWhiteSpace{false};
114 bool m_trimWhiteSpaceHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace TimestreamWrite
119} // 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