/** * 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 object's input serialization format.

See * Also:

AWS API * Reference

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

The type of JSON. Valid values: Document, Lines.

*/ inline const JSONType& GetType() const{ return m_type; } /** *

The type of JSON. Valid values: Document, Lines.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of JSON. Valid values: Document, Lines.

*/ inline void SetType(const JSONType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of JSON. Valid values: Document, Lines.

*/ inline void SetType(JSONType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of JSON. Valid values: Document, Lines.

*/ inline JSONInput& WithType(const JSONType& value) { SetType(value); return *this;} /** *

The type of JSON. Valid values: Document, Lines.

*/ inline JSONInput& WithType(JSONType&& value) { SetType(std::move(value)); return *this;} private: JSONType m_type; bool m_typeHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws