/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class CreateSubnetResponse { public: AWS_EC2_API CreateSubnetResponse(); AWS_EC2_API CreateSubnetResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API CreateSubnetResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the subnet.

*/ inline const Subnet& GetSubnet() const{ return m_subnet; } /** *

Information about the subnet.

*/ inline void SetSubnet(const Subnet& value) { m_subnet = value; } /** *

Information about the subnet.

*/ inline void SetSubnet(Subnet&& value) { m_subnet = std::move(value); } /** *

Information about the subnet.

*/ inline CreateSubnetResponse& WithSubnet(const Subnet& value) { SetSubnet(value); return *this;} /** *

Information about the subnet.

*/ inline CreateSubnetResponse& WithSubnet(Subnet&& value) { SetSubnet(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline CreateSubnetResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreateSubnetResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Subnet m_subnet; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws