/** * 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 { /** *

Contains the output of CreateNetworkInterfacePermission.

See * Also:

AWS * API Reference

*/ class CreateNetworkInterfacePermissionResponse { public: AWS_EC2_API CreateNetworkInterfacePermissionResponse(); AWS_EC2_API CreateNetworkInterfacePermissionResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API CreateNetworkInterfacePermissionResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the permission for the network interface.

*/ inline const NetworkInterfacePermission& GetInterfacePermission() const{ return m_interfacePermission; } /** *

Information about the permission for the network interface.

*/ inline void SetInterfacePermission(const NetworkInterfacePermission& value) { m_interfacePermission = value; } /** *

Information about the permission for the network interface.

*/ inline void SetInterfacePermission(NetworkInterfacePermission&& value) { m_interfacePermission = std::move(value); } /** *

Information about the permission for the network interface.

*/ inline CreateNetworkInterfacePermissionResponse& WithInterfacePermission(const NetworkInterfacePermission& value) { SetInterfacePermission(value); return *this;} /** *

Information about the permission for the network interface.

*/ inline CreateNetworkInterfacePermissionResponse& WithInterfacePermission(NetworkInterfacePermission&& value) { SetInterfacePermission(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 CreateNetworkInterfacePermissionResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreateNetworkInterfacePermissionResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: NetworkInterfacePermission m_interfacePermission; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws