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

Information about the format for a source file or files.

See * Also:

AWS * API Reference

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

File format.

*/ inline const FileFormat& GetFormat() const{ return m_format; } /** *

File format.

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

File format.

*/ inline void SetFormat(const FileFormat& value) { m_formatHasBeenSet = true; m_format = value; } /** *

File format.

*/ inline void SetFormat(FileFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *

File format.

*/ inline UploadSettings& WithFormat(const FileFormat& value) { SetFormat(value); return *this;} /** *

File format.

*/ inline UploadSettings& WithFormat(FileFormat&& value) { SetFormat(std::move(value)); return *this;} /** *

A row number to start reading data from.

*/ inline int GetStartFromRow() const{ return m_startFromRow; } /** *

A row number to start reading data from.

*/ inline bool StartFromRowHasBeenSet() const { return m_startFromRowHasBeenSet; } /** *

A row number to start reading data from.

*/ inline void SetStartFromRow(int value) { m_startFromRowHasBeenSet = true; m_startFromRow = value; } /** *

A row number to start reading data from.

*/ inline UploadSettings& WithStartFromRow(int value) { SetStartFromRow(value); return *this;} /** *

Whether the file has a header row, or the files each have a header row.

*/ inline bool GetContainsHeader() const{ return m_containsHeader; } /** *

Whether the file has a header row, or the files each have a header row.

*/ inline bool ContainsHeaderHasBeenSet() const { return m_containsHeaderHasBeenSet; } /** *

Whether the file has a header row, or the files each have a header row.

*/ inline void SetContainsHeader(bool value) { m_containsHeaderHasBeenSet = true; m_containsHeader = value; } /** *

Whether the file has a header row, or the files each have a header row.

*/ inline UploadSettings& WithContainsHeader(bool value) { SetContainsHeader(value); return *this;} /** *

Text qualifier.

*/ inline const TextQualifier& GetTextQualifier() const{ return m_textQualifier; } /** *

Text qualifier.

*/ inline bool TextQualifierHasBeenSet() const { return m_textQualifierHasBeenSet; } /** *

Text qualifier.

*/ inline void SetTextQualifier(const TextQualifier& value) { m_textQualifierHasBeenSet = true; m_textQualifier = value; } /** *

Text qualifier.

*/ inline void SetTextQualifier(TextQualifier&& value) { m_textQualifierHasBeenSet = true; m_textQualifier = std::move(value); } /** *

Text qualifier.

*/ inline UploadSettings& WithTextQualifier(const TextQualifier& value) { SetTextQualifier(value); return *this;} /** *

Text qualifier.

*/ inline UploadSettings& WithTextQualifier(TextQualifier&& value) { SetTextQualifier(std::move(value)); return *this;} /** *

The delimiter between values in the file.

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

The delimiter between values in the file.

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

The delimiter between values in the file.

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

The delimiter between values in the file.

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

The delimiter between values in the file.

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

The delimiter between values in the file.

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

The delimiter between values in the file.

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

The delimiter between values in the file.

*/ inline UploadSettings& WithDelimiter(const char* value) { SetDelimiter(value); return *this;} private: FileFormat m_format; bool m_formatHasBeenSet = false; int m_startFromRow; bool m_startFromRowHasBeenSet = false; bool m_containsHeader; bool m_containsHeaderHasBeenSet = false; TextQualifier m_textQualifier; bool m_textQualifierHasBeenSet = false; Aws::String m_delimiter; bool m_delimiterHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws