/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace TimestreamWrite { namespace Model { /** *

A delimited data format where the column separator can be a comma and the * record separator is a newline character.

See Also:

AWS * API Reference

*/ class CsvConfiguration { public: AWS_TIMESTREAMWRITE_API CsvConfiguration(); AWS_TIMESTREAMWRITE_API CsvConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_TIMESTREAMWRITE_API CsvConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Column separator can be one of comma (','), pipe ('|), semicolon (';'), * tab('/t'), or blank space (' ').

*/ inline const Aws::String& GetColumnSeparator() const{ return m_columnSeparator; } /** *

Column separator can be one of comma (','), pipe ('|), semicolon (';'), * tab('/t'), or blank space (' ').

*/ inline bool ColumnSeparatorHasBeenSet() const { return m_columnSeparatorHasBeenSet; } /** *

Column separator can be one of comma (','), pipe ('|), semicolon (';'), * tab('/t'), or blank space (' ').

*/ inline void SetColumnSeparator(const Aws::String& value) { m_columnSeparatorHasBeenSet = true; m_columnSeparator = value; } /** *

Column separator can be one of comma (','), pipe ('|), semicolon (';'), * tab('/t'), or blank space (' ').

*/ inline void SetColumnSeparator(Aws::String&& value) { m_columnSeparatorHasBeenSet = true; m_columnSeparator = std::move(value); } /** *

Column separator can be one of comma (','), pipe ('|), semicolon (';'), * tab('/t'), or blank space (' ').

*/ inline void SetColumnSeparator(const char* value) { m_columnSeparatorHasBeenSet = true; m_columnSeparator.assign(value); } /** *

Column separator can be one of comma (','), pipe ('|), semicolon (';'), * tab('/t'), or blank space (' ').

*/ inline CsvConfiguration& WithColumnSeparator(const Aws::String& value) { SetColumnSeparator(value); return *this;} /** *

Column separator can be one of comma (','), pipe ('|), semicolon (';'), * tab('/t'), or blank space (' ').

*/ inline CsvConfiguration& WithColumnSeparator(Aws::String&& value) { SetColumnSeparator(std::move(value)); return *this;} /** *

Column separator can be one of comma (','), pipe ('|), semicolon (';'), * tab('/t'), or blank space (' ').

*/ inline CsvConfiguration& WithColumnSeparator(const char* value) { SetColumnSeparator(value); return *this;} /** *

Escape character can be one of

*/ inline const Aws::String& GetEscapeChar() const{ return m_escapeChar; } /** *

Escape character can be one of

*/ inline bool EscapeCharHasBeenSet() const { return m_escapeCharHasBeenSet; } /** *

Escape character can be one of

*/ inline void SetEscapeChar(const Aws::String& value) { m_escapeCharHasBeenSet = true; m_escapeChar = value; } /** *

Escape character can be one of

*/ inline void SetEscapeChar(Aws::String&& value) { m_escapeCharHasBeenSet = true; m_escapeChar = std::move(value); } /** *

Escape character can be one of

*/ inline void SetEscapeChar(const char* value) { m_escapeCharHasBeenSet = true; m_escapeChar.assign(value); } /** *

Escape character can be one of

*/ inline CsvConfiguration& WithEscapeChar(const Aws::String& value) { SetEscapeChar(value); return *this;} /** *

Escape character can be one of

*/ inline CsvConfiguration& WithEscapeChar(Aws::String&& value) { SetEscapeChar(std::move(value)); return *this;} /** *

Escape character can be one of

*/ inline CsvConfiguration& WithEscapeChar(const char* value) { SetEscapeChar(value); return *this;} /** *

Can be single quote (') or double quote (").

*/ inline const Aws::String& GetQuoteChar() const{ return m_quoteChar; } /** *

Can be single quote (') or double quote (").

*/ inline bool QuoteCharHasBeenSet() const { return m_quoteCharHasBeenSet; } /** *

Can be single quote (') or double quote (").

*/ inline void SetQuoteChar(const Aws::String& value) { m_quoteCharHasBeenSet = true; m_quoteChar = value; } /** *

Can be single quote (') or double quote (").

*/ inline void SetQuoteChar(Aws::String&& value) { m_quoteCharHasBeenSet = true; m_quoteChar = std::move(value); } /** *

Can be single quote (') or double quote (").

*/ inline void SetQuoteChar(const char* value) { m_quoteCharHasBeenSet = true; m_quoteChar.assign(value); } /** *

Can be single quote (') or double quote (").

*/ inline CsvConfiguration& WithQuoteChar(const Aws::String& value) { SetQuoteChar(value); return *this;} /** *

Can be single quote (') or double quote (").

*/ inline CsvConfiguration& WithQuoteChar(Aws::String&& value) { SetQuoteChar(std::move(value)); return *this;} /** *

Can be single quote (') or double quote (").

*/ inline CsvConfiguration& WithQuoteChar(const char* value) { SetQuoteChar(value); return *this;} /** *

Can be blank space (' ').

*/ inline const Aws::String& GetNullValue() const{ return m_nullValue; } /** *

Can be blank space (' ').

*/ inline bool NullValueHasBeenSet() const { return m_nullValueHasBeenSet; } /** *

Can be blank space (' ').

*/ inline void SetNullValue(const Aws::String& value) { m_nullValueHasBeenSet = true; m_nullValue = value; } /** *

Can be blank space (' ').

*/ inline void SetNullValue(Aws::String&& value) { m_nullValueHasBeenSet = true; m_nullValue = std::move(value); } /** *

Can be blank space (' ').

*/ inline void SetNullValue(const char* value) { m_nullValueHasBeenSet = true; m_nullValue.assign(value); } /** *

Can be blank space (' ').

*/ inline CsvConfiguration& WithNullValue(const Aws::String& value) { SetNullValue(value); return *this;} /** *

Can be blank space (' ').

*/ inline CsvConfiguration& WithNullValue(Aws::String&& value) { SetNullValue(std::move(value)); return *this;} /** *

Can be blank space (' ').

*/ inline CsvConfiguration& WithNullValue(const char* value) { SetNullValue(value); return *this;} /** *

Specifies to trim leading and trailing white space.

*/ inline bool GetTrimWhiteSpace() const{ return m_trimWhiteSpace; } /** *

Specifies to trim leading and trailing white space.

*/ inline bool TrimWhiteSpaceHasBeenSet() const { return m_trimWhiteSpaceHasBeenSet; } /** *

Specifies to trim leading and trailing white space.

*/ inline void SetTrimWhiteSpace(bool value) { m_trimWhiteSpaceHasBeenSet = true; m_trimWhiteSpace = value; } /** *

Specifies to trim leading and trailing white space.

*/ inline CsvConfiguration& WithTrimWhiteSpace(bool value) { SetTrimWhiteSpace(value); return *this;} private: Aws::String m_columnSeparator; bool m_columnSeparatorHasBeenSet = false; Aws::String m_escapeChar; bool m_escapeCharHasBeenSet = false; Aws::String m_quoteChar; bool m_quoteCharHasBeenSet = false; Aws::String m_nullValue; bool m_nullValueHasBeenSet = false; bool m_trimWhiteSpace; bool m_trimWhiteSpaceHasBeenSet = false; }; } // namespace Model } // namespace TimestreamWrite } // namespace Aws