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

An object that contains the options relating to parsing delimited text as * part of an import request.

See Also:

AWS * API Reference

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

The delimiter to use for separating columns in a single row of the input.

*/ inline const Aws::String& GetDelimiter() const{ return m_delimiter; } /** *

The delimiter to use for separating columns in a single row of the input.

*/ inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; } /** *

The delimiter to use for separating columns in a single row of the input.

*/ inline void SetDelimiter(const Aws::String& value) { m_delimiterHasBeenSet = true; m_delimiter = value; } /** *

The delimiter to use for separating columns in a single row of the input.

*/ inline void SetDelimiter(Aws::String&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::move(value); } /** *

The delimiter to use for separating columns in a single row of the input.

*/ inline void SetDelimiter(const char* value) { m_delimiterHasBeenSet = true; m_delimiter.assign(value); } /** *

The delimiter to use for separating columns in a single row of the input.

*/ inline DelimitedTextImportOptions& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;} /** *

The delimiter to use for separating columns in a single row of the input.

*/ inline DelimitedTextImportOptions& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;} /** *

The delimiter to use for separating columns in a single row of the input.

*/ inline DelimitedTextImportOptions& WithDelimiter(const char* value) { SetDelimiter(value); return *this;} /** *

Indicates whether the input file has a header row at the top containing the * column names.

*/ inline bool GetHasHeaderRow() const{ return m_hasHeaderRow; } /** *

Indicates whether the input file has a header row at the top containing the * column names.

*/ inline bool HasHeaderRowHasBeenSet() const { return m_hasHeaderRowHasBeenSet; } /** *

Indicates whether the input file has a header row at the top containing the * column names.

*/ inline void SetHasHeaderRow(bool value) { m_hasHeaderRowHasBeenSet = true; m_hasHeaderRow = value; } /** *

Indicates whether the input file has a header row at the top containing the * column names.

*/ inline DelimitedTextImportOptions& WithHasHeaderRow(bool value) { SetHasHeaderRow(value); return *this;} /** *

A parameter to indicate whether empty rows should be ignored or be included * in the import.

*/ inline bool GetIgnoreEmptyRows() const{ return m_ignoreEmptyRows; } /** *

A parameter to indicate whether empty rows should be ignored or be included * in the import.

*/ inline bool IgnoreEmptyRowsHasBeenSet() const { return m_ignoreEmptyRowsHasBeenSet; } /** *

A parameter to indicate whether empty rows should be ignored or be included * in the import.

*/ inline void SetIgnoreEmptyRows(bool value) { m_ignoreEmptyRowsHasBeenSet = true; m_ignoreEmptyRows = value; } /** *

A parameter to indicate whether empty rows should be ignored or be included * in the import.

*/ inline DelimitedTextImportOptions& WithIgnoreEmptyRows(bool value) { SetIgnoreEmptyRows(value); return *this;} /** *

The encoding of the data in the input file.

*/ inline const ImportDataCharacterEncoding& GetDataCharacterEncoding() const{ return m_dataCharacterEncoding; } /** *

The encoding of the data in the input file.

*/ inline bool DataCharacterEncodingHasBeenSet() const { return m_dataCharacterEncodingHasBeenSet; } /** *

The encoding of the data in the input file.

*/ inline void SetDataCharacterEncoding(const ImportDataCharacterEncoding& value) { m_dataCharacterEncodingHasBeenSet = true; m_dataCharacterEncoding = value; } /** *

The encoding of the data in the input file.

*/ inline void SetDataCharacterEncoding(ImportDataCharacterEncoding&& value) { m_dataCharacterEncodingHasBeenSet = true; m_dataCharacterEncoding = std::move(value); } /** *

The encoding of the data in the input file.

*/ inline DelimitedTextImportOptions& WithDataCharacterEncoding(const ImportDataCharacterEncoding& value) { SetDataCharacterEncoding(value); return *this;} /** *

The encoding of the data in the input file.

*/ inline DelimitedTextImportOptions& WithDataCharacterEncoding(ImportDataCharacterEncoding&& value) { SetDataCharacterEncoding(std::move(value)); return *this;} private: Aws::String m_delimiter; bool m_delimiterHasBeenSet = false; bool m_hasHeaderRow; bool m_hasHeaderRowHasBeenSet = false; bool m_ignoreEmptyRows; bool m_ignoreEmptyRowsHasBeenSet = false; ImportDataCharacterEncoding m_dataCharacterEncoding; bool m_dataCharacterEncodingHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws