/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3Crt { namespace Model { /** *

Describes how results of the Select job are serialized.

See * Also:

AWS * API Reference

*/ class OutputSerialization { public: AWS_S3CRT_API OutputSerialization(); AWS_S3CRT_API OutputSerialization(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CRT_API OutputSerialization& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

Describes the serialization of CSV-encoded Select results.

*/ inline const CSVOutput& GetCSV() const{ return m_cSV; } /** *

Describes the serialization of CSV-encoded Select results.

*/ inline bool CSVHasBeenSet() const { return m_cSVHasBeenSet; } /** *

Describes the serialization of CSV-encoded Select results.

*/ inline void SetCSV(const CSVOutput& value) { m_cSVHasBeenSet = true; m_cSV = value; } /** *

Describes the serialization of CSV-encoded Select results.

*/ inline void SetCSV(CSVOutput&& value) { m_cSVHasBeenSet = true; m_cSV = std::move(value); } /** *

Describes the serialization of CSV-encoded Select results.

*/ inline OutputSerialization& WithCSV(const CSVOutput& value) { SetCSV(value); return *this;} /** *

Describes the serialization of CSV-encoded Select results.

*/ inline OutputSerialization& WithCSV(CSVOutput&& value) { SetCSV(std::move(value)); return *this;} /** *

Specifies JSON as request's output serialization format.

*/ inline const JSONOutput& GetJSON() const{ return m_jSON; } /** *

Specifies JSON as request's output serialization format.

*/ inline bool JSONHasBeenSet() const { return m_jSONHasBeenSet; } /** *

Specifies JSON as request's output serialization format.

*/ inline void SetJSON(const JSONOutput& value) { m_jSONHasBeenSet = true; m_jSON = value; } /** *

Specifies JSON as request's output serialization format.

*/ inline void SetJSON(JSONOutput&& value) { m_jSONHasBeenSet = true; m_jSON = std::move(value); } /** *

Specifies JSON as request's output serialization format.

*/ inline OutputSerialization& WithJSON(const JSONOutput& value) { SetJSON(value); return *this;} /** *

Specifies JSON as request's output serialization format.

*/ inline OutputSerialization& WithJSON(JSONOutput&& value) { SetJSON(std::move(value)); return *this;} private: CSVOutput m_cSV; bool m_cSVHasBeenSet = false; JSONOutput m_jSON; bool m_jSONHasBeenSet = false; }; } // namespace Model } // namespace S3Crt } // namespace Aws