/** * 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 GlueDataBrew { namespace Model { /** *

Represents a set of options that define how DataBrew will interpret a * Microsoft Excel file when creating a dataset from that file.

See * Also:

AWS * API Reference

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

One or more named sheets in the Excel file that will be included in the * dataset.

*/ inline const Aws::Vector& GetSheetNames() const{ return m_sheetNames; } /** *

One or more named sheets in the Excel file that will be included in the * dataset.

*/ inline bool SheetNamesHasBeenSet() const { return m_sheetNamesHasBeenSet; } /** *

One or more named sheets in the Excel file that will be included in the * dataset.

*/ inline void SetSheetNames(const Aws::Vector& value) { m_sheetNamesHasBeenSet = true; m_sheetNames = value; } /** *

One or more named sheets in the Excel file that will be included in the * dataset.

*/ inline void SetSheetNames(Aws::Vector&& value) { m_sheetNamesHasBeenSet = true; m_sheetNames = std::move(value); } /** *

One or more named sheets in the Excel file that will be included in the * dataset.

*/ inline ExcelOptions& WithSheetNames(const Aws::Vector& value) { SetSheetNames(value); return *this;} /** *

One or more named sheets in the Excel file that will be included in the * dataset.

*/ inline ExcelOptions& WithSheetNames(Aws::Vector&& value) { SetSheetNames(std::move(value)); return *this;} /** *

One or more named sheets in the Excel file that will be included in the * dataset.

*/ inline ExcelOptions& AddSheetNames(const Aws::String& value) { m_sheetNamesHasBeenSet = true; m_sheetNames.push_back(value); return *this; } /** *

One or more named sheets in the Excel file that will be included in the * dataset.

*/ inline ExcelOptions& AddSheetNames(Aws::String&& value) { m_sheetNamesHasBeenSet = true; m_sheetNames.push_back(std::move(value)); return *this; } /** *

One or more named sheets in the Excel file that will be included in the * dataset.

*/ inline ExcelOptions& AddSheetNames(const char* value) { m_sheetNamesHasBeenSet = true; m_sheetNames.push_back(value); return *this; } /** *

One or more sheet numbers in the Excel file that will be included in the * dataset.

*/ inline const Aws::Vector& GetSheetIndexes() const{ return m_sheetIndexes; } /** *

One or more sheet numbers in the Excel file that will be included in the * dataset.

*/ inline bool SheetIndexesHasBeenSet() const { return m_sheetIndexesHasBeenSet; } /** *

One or more sheet numbers in the Excel file that will be included in the * dataset.

*/ inline void SetSheetIndexes(const Aws::Vector& value) { m_sheetIndexesHasBeenSet = true; m_sheetIndexes = value; } /** *

One or more sheet numbers in the Excel file that will be included in the * dataset.

*/ inline void SetSheetIndexes(Aws::Vector&& value) { m_sheetIndexesHasBeenSet = true; m_sheetIndexes = std::move(value); } /** *

One or more sheet numbers in the Excel file that will be included in the * dataset.

*/ inline ExcelOptions& WithSheetIndexes(const Aws::Vector& value) { SetSheetIndexes(value); return *this;} /** *

One or more sheet numbers in the Excel file that will be included in the * dataset.

*/ inline ExcelOptions& WithSheetIndexes(Aws::Vector&& value) { SetSheetIndexes(std::move(value)); return *this;} /** *

One or more sheet numbers in the Excel file that will be included in the * dataset.

*/ inline ExcelOptions& AddSheetIndexes(int value) { m_sheetIndexesHasBeenSet = true; m_sheetIndexes.push_back(value); return *this; } /** *

A variable that specifies whether the first row in the file is parsed as the * header. If this value is false, column names are auto-generated.

*/ inline bool GetHeaderRow() const{ return m_headerRow; } /** *

A variable that specifies whether the first row in the file is parsed as the * header. If this value is false, column names are auto-generated.

*/ inline bool HeaderRowHasBeenSet() const { return m_headerRowHasBeenSet; } /** *

A variable that specifies whether the first row in the file is parsed as the * header. If this value is false, column names are auto-generated.

*/ inline void SetHeaderRow(bool value) { m_headerRowHasBeenSet = true; m_headerRow = value; } /** *

A variable that specifies whether the first row in the file is parsed as the * header. If this value is false, column names are auto-generated.

*/ inline ExcelOptions& WithHeaderRow(bool value) { SetHeaderRow(value); return *this;} private: Aws::Vector m_sheetNames; bool m_sheetNamesHasBeenSet = false; Aws::Vector m_sheetIndexes; bool m_sheetIndexesHasBeenSet = false; bool m_headerRow; bool m_headerRowHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws