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

Specifies JSON as request's output serialization format.

See * Also:

AWS API * Reference

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

The value used to separate individual records in the output. If no value is * specified, Amazon S3 uses a newline character ('\n').

*/ inline const Aws::String& GetRecordDelimiter() const{ return m_recordDelimiter; } /** *

The value used to separate individual records in the output. If no value is * specified, Amazon S3 uses a newline character ('\n').

*/ inline bool RecordDelimiterHasBeenSet() const { return m_recordDelimiterHasBeenSet; } /** *

The value used to separate individual records in the output. If no value is * specified, Amazon S3 uses a newline character ('\n').

*/ inline void SetRecordDelimiter(const Aws::String& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = value; } /** *

The value used to separate individual records in the output. If no value is * specified, Amazon S3 uses a newline character ('\n').

*/ inline void SetRecordDelimiter(Aws::String&& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = std::move(value); } /** *

The value used to separate individual records in the output. If no value is * specified, Amazon S3 uses a newline character ('\n').

*/ inline void SetRecordDelimiter(const char* value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter.assign(value); } /** *

The value used to separate individual records in the output. If no value is * specified, Amazon S3 uses a newline character ('\n').

*/ inline JSONOutput& WithRecordDelimiter(const Aws::String& value) { SetRecordDelimiter(value); return *this;} /** *

The value used to separate individual records in the output. If no value is * specified, Amazon S3 uses a newline character ('\n').

*/ inline JSONOutput& WithRecordDelimiter(Aws::String&& value) { SetRecordDelimiter(std::move(value)); return *this;} /** *

The value used to separate individual records in the output. If no value is * specified, Amazon S3 uses a newline character ('\n').

*/ inline JSONOutput& WithRecordDelimiter(const char* value) { SetRecordDelimiter(value); return *this;} private: Aws::String m_recordDelimiter; bool m_recordDelimiterHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws