AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetColumnSeparator(const Aws::String& value) { m_columnSeparatorHasBeenSet = true; m_columnSeparator = value; }
49 inline void SetColumnSeparator(Aws::String&& value) { m_columnSeparatorHasBeenSet = true; m_columnSeparator = std::move(value); }
50 inline void SetColumnSeparator(const char* value) { m_columnSeparatorHasBeenSet = true; m_columnSeparator.assign(value); }
51 inline CsvConfiguration& WithColumnSeparator(const Aws::String& value) { SetColumnSeparator(value); return *this;}
52 inline CsvConfiguration& WithColumnSeparator(Aws::String&& value) { SetColumnSeparator(std::move(value)); return *this;}
53 inline CsvConfiguration& WithColumnSeparator(const char* value) { SetColumnSeparator(value); return *this;}
55
57
60 inline const Aws::String& GetEscapeChar() const{ return m_escapeChar; }
61 inline bool EscapeCharHasBeenSet() const { return m_escapeCharHasBeenSet; }
62 inline void SetEscapeChar(const Aws::String& value) { m_escapeCharHasBeenSet = true; m_escapeChar = value; }
63 inline void SetEscapeChar(Aws::String&& value) { m_escapeCharHasBeenSet = true; m_escapeChar = std::move(value); }
64 inline void SetEscapeChar(const char* value) { m_escapeCharHasBeenSet = true; m_escapeChar.assign(value); }
65 inline CsvConfiguration& WithEscapeChar(const Aws::String& value) { SetEscapeChar(value); return *this;}
66 inline CsvConfiguration& WithEscapeChar(Aws::String&& value) { SetEscapeChar(std::move(value)); return *this;}
67 inline CsvConfiguration& WithEscapeChar(const char* value) { SetEscapeChar(value); return *this;}
69
71
74 inline const Aws::String& GetQuoteChar() const{ return m_quoteChar; }
75 inline bool QuoteCharHasBeenSet() const { return m_quoteCharHasBeenSet; }
76 inline void SetQuoteChar(const Aws::String& value) { m_quoteCharHasBeenSet = true; m_quoteChar = value; }
77 inline void SetQuoteChar(Aws::String&& value) { m_quoteCharHasBeenSet = true; m_quoteChar = std::move(value); }
78 inline void SetQuoteChar(const char* value) { m_quoteCharHasBeenSet = true; m_quoteChar.assign(value); }
79 inline CsvConfiguration& WithQuoteChar(const Aws::String& value) { SetQuoteChar(value); return *this;}
80 inline CsvConfiguration& WithQuoteChar(Aws::String&& value) { SetQuoteChar(std::move(value)); return *this;}
81 inline CsvConfiguration& WithQuoteChar(const char* value) { SetQuoteChar(value); return *this;}
83
85
88 inline const Aws::String& GetNullValue() const{ return m_nullValue; }
89 inline bool NullValueHasBeenSet() const { return m_nullValueHasBeenSet; }
90 inline void SetNullValue(const Aws::String& value) { m_nullValueHasBeenSet = true; m_nullValue = value; }
91 inline void SetNullValue(Aws::String&& value) { m_nullValueHasBeenSet = true; m_nullValue = std::move(value); }
92 inline void SetNullValue(const char* value) { m_nullValueHasBeenSet = true; m_nullValue.assign(value); }
93 inline CsvConfiguration& WithNullValue(const Aws::String& value) { SetNullValue(value); return *this;}
94 inline CsvConfiguration& WithNullValue(Aws::String&& value) { SetNullValue(std::move(value)); return *this;}
95 inline CsvConfiguration& WithNullValue(const char* value) { SetNullValue(value); return *this;}
97
99
102 inline bool GetTrimWhiteSpace() const{ return m_trimWhiteSpace; }
103 inline bool TrimWhiteSpaceHasBeenSet() const { return m_trimWhiteSpaceHasBeenSet; }
104 inline void SetTrimWhiteSpace(bool value) { m_trimWhiteSpaceHasBeenSet = true; m_trimWhiteSpace = value; }
105 inline CsvConfiguration& WithTrimWhiteSpace(bool value) { SetTrimWhiteSpace(value); return *this;}
107 private:
108
109 Aws::String m_columnSeparator;
110 bool m_columnSeparatorHasBeenSet = false;
111
112 Aws::String m_escapeChar;
113 bool m_escapeCharHasBeenSet = false;
114
115 Aws::String m_quoteChar;
116 bool m_quoteCharHasBeenSet = false;
117
118 Aws::String m_nullValue;
119 bool m_nullValueHasBeenSet = false;
120
121 bool m_trimWhiteSpace;
122 bool m_trimWhiteSpaceHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace TimestreamWrite
127} // namespace Aws
CsvConfiguration & WithColumnSeparator(const Aws::String &value)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
CsvConfiguration & WithTrimWhiteSpace(bool value)
CsvConfiguration & WithColumnSeparator(Aws::String &&value)
CsvConfiguration & WithQuoteChar(const char *value)
AWS_TIMESTREAMWRITE_API CsvConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
CsvConfiguration & WithNullValue(Aws::String &&value)
CsvConfiguration & WithQuoteChar(Aws::String &&value)
CsvConfiguration & WithQuoteChar(const Aws::String &value)
CsvConfiguration & WithEscapeChar(const Aws::String &value)
void SetColumnSeparator(const Aws::String &value)
CsvConfiguration & WithNullValue(const char *value)
AWS_TIMESTREAMWRITE_API CsvConfiguration()
AWS_TIMESTREAMWRITE_API CsvConfiguration(Aws::Utils::Json::JsonView jsonValue)
CsvConfiguration & WithColumnSeparator(const char *value)
CsvConfiguration & WithEscapeChar(const char *value)
void SetEscapeChar(const Aws::String &value)
CsvConfiguration & WithNullValue(const Aws::String &value)
CsvConfiguration & WithEscapeChar(Aws::String &&value)
void SetNullValue(const Aws::String &value)
void SetQuoteChar(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue