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

Describes a through resource statement.

See Also:

AWS * API Reference

*/ class ThroughResourcesStatementRequest { public: AWS_EC2_API ThroughResourcesStatementRequest(); AWS_EC2_API ThroughResourcesStatementRequest(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ThroughResourcesStatementRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The resource statement.

*/ inline const ResourceStatementRequest& GetResourceStatement() const{ return m_resourceStatement; } /** *

The resource statement.

*/ inline bool ResourceStatementHasBeenSet() const { return m_resourceStatementHasBeenSet; } /** *

The resource statement.

*/ inline void SetResourceStatement(const ResourceStatementRequest& value) { m_resourceStatementHasBeenSet = true; m_resourceStatement = value; } /** *

The resource statement.

*/ inline void SetResourceStatement(ResourceStatementRequest&& value) { m_resourceStatementHasBeenSet = true; m_resourceStatement = std::move(value); } /** *

The resource statement.

*/ inline ThroughResourcesStatementRequest& WithResourceStatement(const ResourceStatementRequest& value) { SetResourceStatement(value); return *this;} /** *

The resource statement.

*/ inline ThroughResourcesStatementRequest& WithResourceStatement(ResourceStatementRequest&& value) { SetResourceStatement(std::move(value)); return *this;} private: ResourceStatementRequest m_resourceStatement; bool m_resourceStatementHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws