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

Read options for an annotation import job.

See Also:

AWS * API Reference

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

The file's field separator.

*/ inline const Aws::String& GetSep() const{ return m_sep; } /** *

The file's field separator.

*/ inline bool SepHasBeenSet() const { return m_sepHasBeenSet; } /** *

The file's field separator.

*/ inline void SetSep(const Aws::String& value) { m_sepHasBeenSet = true; m_sep = value; } /** *

The file's field separator.

*/ inline void SetSep(Aws::String&& value) { m_sepHasBeenSet = true; m_sep = std::move(value); } /** *

The file's field separator.

*/ inline void SetSep(const char* value) { m_sepHasBeenSet = true; m_sep.assign(value); } /** *

The file's field separator.

*/ inline ReadOptions& WithSep(const Aws::String& value) { SetSep(value); return *this;} /** *

The file's field separator.

*/ inline ReadOptions& WithSep(Aws::String&& value) { SetSep(std::move(value)); return *this;} /** *

The file's field separator.

*/ inline ReadOptions& WithSep(const char* value) { SetSep(value); return *this;} /** *

The file's encoding.

*/ inline const Aws::String& GetEncoding() const{ return m_encoding; } /** *

The file's encoding.

*/ inline bool EncodingHasBeenSet() const { return m_encodingHasBeenSet; } /** *

The file's encoding.

*/ inline void SetEncoding(const Aws::String& value) { m_encodingHasBeenSet = true; m_encoding = value; } /** *

The file's encoding.

*/ inline void SetEncoding(Aws::String&& value) { m_encodingHasBeenSet = true; m_encoding = std::move(value); } /** *

The file's encoding.

*/ inline void SetEncoding(const char* value) { m_encodingHasBeenSet = true; m_encoding.assign(value); } /** *

The file's encoding.

*/ inline ReadOptions& WithEncoding(const Aws::String& value) { SetEncoding(value); return *this;} /** *

The file's encoding.

*/ inline ReadOptions& WithEncoding(Aws::String&& value) { SetEncoding(std::move(value)); return *this;} /** *

The file's encoding.

*/ inline ReadOptions& WithEncoding(const char* value) { SetEncoding(value); return *this;} /** *

The file's quote character.

*/ inline const Aws::String& GetQuote() const{ return m_quote; } /** *

The file's quote character.

*/ inline bool QuoteHasBeenSet() const { return m_quoteHasBeenSet; } /** *

The file's quote character.

*/ inline void SetQuote(const Aws::String& value) { m_quoteHasBeenSet = true; m_quote = value; } /** *

The file's quote character.

*/ inline void SetQuote(Aws::String&& value) { m_quoteHasBeenSet = true; m_quote = std::move(value); } /** *

The file's quote character.

*/ inline void SetQuote(const char* value) { m_quoteHasBeenSet = true; m_quote.assign(value); } /** *

The file's quote character.

*/ inline ReadOptions& WithQuote(const Aws::String& value) { SetQuote(value); return *this;} /** *

The file's quote character.

*/ inline ReadOptions& WithQuote(Aws::String&& value) { SetQuote(std::move(value)); return *this;} /** *

The file's quote character.

*/ inline ReadOptions& WithQuote(const char* value) { SetQuote(value); return *this;} /** *

Whether all values need to be quoted, or just those that contain quotes.

*/ inline bool GetQuoteAll() const{ return m_quoteAll; } /** *

Whether all values need to be quoted, or just those that contain quotes.

*/ inline bool QuoteAllHasBeenSet() const { return m_quoteAllHasBeenSet; } /** *

Whether all values need to be quoted, or just those that contain quotes.

*/ inline void SetQuoteAll(bool value) { m_quoteAllHasBeenSet = true; m_quoteAll = value; } /** *

Whether all values need to be quoted, or just those that contain quotes.

*/ inline ReadOptions& WithQuoteAll(bool value) { SetQuoteAll(value); return *this;} /** *

A character for escaping quotes in the file.

*/ inline const Aws::String& GetEscape() const{ return m_escape; } /** *

A character for escaping quotes in the file.

*/ inline bool EscapeHasBeenSet() const { return m_escapeHasBeenSet; } /** *

A character for escaping quotes in the file.

*/ inline void SetEscape(const Aws::String& value) { m_escapeHasBeenSet = true; m_escape = value; } /** *

A character for escaping quotes in the file.

*/ inline void SetEscape(Aws::String&& value) { m_escapeHasBeenSet = true; m_escape = std::move(value); } /** *

A character for escaping quotes in the file.

*/ inline void SetEscape(const char* value) { m_escapeHasBeenSet = true; m_escape.assign(value); } /** *

A character for escaping quotes in the file.

*/ inline ReadOptions& WithEscape(const Aws::String& value) { SetEscape(value); return *this;} /** *

A character for escaping quotes in the file.

*/ inline ReadOptions& WithEscape(Aws::String&& value) { SetEscape(std::move(value)); return *this;} /** *

A character for escaping quotes in the file.

*/ inline ReadOptions& WithEscape(const char* value) { SetEscape(value); return *this;} /** *

Whether quotes need to be escaped in the file.

*/ inline bool GetEscapeQuotes() const{ return m_escapeQuotes; } /** *

Whether quotes need to be escaped in the file.

*/ inline bool EscapeQuotesHasBeenSet() const { return m_escapeQuotesHasBeenSet; } /** *

Whether quotes need to be escaped in the file.

*/ inline void SetEscapeQuotes(bool value) { m_escapeQuotesHasBeenSet = true; m_escapeQuotes = value; } /** *

Whether quotes need to be escaped in the file.

*/ inline ReadOptions& WithEscapeQuotes(bool value) { SetEscapeQuotes(value); return *this;} /** *

The file's comment character.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

The file's comment character.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

The file's comment character.

*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

The file's comment character.

*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

The file's comment character.

*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *

The file's comment character.

*/ inline ReadOptions& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

The file's comment character.

*/ inline ReadOptions& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

The file's comment character.

*/ inline ReadOptions& WithComment(const char* value) { SetComment(value); return *this;} /** *

Whether the file has a header row.

*/ inline bool GetHeader() const{ return m_header; } /** *

Whether the file has a header row.

*/ inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; } /** *

Whether the file has a header row.

*/ inline void SetHeader(bool value) { m_headerHasBeenSet = true; m_header = value; } /** *

Whether the file has a header row.

*/ inline ReadOptions& WithHeader(bool value) { SetHeader(value); return *this;} /** *

A line separator for the file.

*/ inline const Aws::String& GetLineSep() const{ return m_lineSep; } /** *

A line separator for the file.

*/ inline bool LineSepHasBeenSet() const { return m_lineSepHasBeenSet; } /** *

A line separator for the file.

*/ inline void SetLineSep(const Aws::String& value) { m_lineSepHasBeenSet = true; m_lineSep = value; } /** *

A line separator for the file.

*/ inline void SetLineSep(Aws::String&& value) { m_lineSepHasBeenSet = true; m_lineSep = std::move(value); } /** *

A line separator for the file.

*/ inline void SetLineSep(const char* value) { m_lineSepHasBeenSet = true; m_lineSep.assign(value); } /** *

A line separator for the file.

*/ inline ReadOptions& WithLineSep(const Aws::String& value) { SetLineSep(value); return *this;} /** *

A line separator for the file.

*/ inline ReadOptions& WithLineSep(Aws::String&& value) { SetLineSep(std::move(value)); return *this;} /** *

A line separator for the file.

*/ inline ReadOptions& WithLineSep(const char* value) { SetLineSep(value); return *this;} private: Aws::String m_sep; bool m_sepHasBeenSet = false; Aws::String m_encoding; bool m_encodingHasBeenSet = false; Aws::String m_quote; bool m_quoteHasBeenSet = false; bool m_quoteAll; bool m_quoteAllHasBeenSet = false; Aws::String m_escape; bool m_escapeHasBeenSet = false; bool m_escapeQuotes; bool m_escapeQuotesHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; bool m_header; bool m_headerHasBeenSet = false; Aws::String m_lineSep; bool m_lineSepHasBeenSet = false; }; } // namespace Model } // namespace Omics } // namespace Aws