/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents a port mapping.See Also:
AWS
* API Reference
The port used for the port mapping. Specify one protocol.
*/ inline int GetPort() const{ return m_port; } /** *The port used for the port mapping. Specify one protocol.
*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *The port used for the port mapping. Specify one protocol.
*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *The port used for the port mapping. Specify one protocol.
*/ inline VirtualGatewayPortMapping& WithPort(int value) { SetPort(value); return *this;} /** *The protocol used for the port mapping.
*/ inline const VirtualGatewayPortProtocol& GetProtocol() const{ return m_protocol; } /** *The protocol used for the port mapping.
*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *The protocol used for the port mapping.
*/ inline void SetProtocol(const VirtualGatewayPortProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *The protocol used for the port mapping.
*/ inline void SetProtocol(VirtualGatewayPortProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *The protocol used for the port mapping.
*/ inline VirtualGatewayPortMapping& WithProtocol(const VirtualGatewayPortProtocol& value) { SetProtocol(value); return *this;} /** *The protocol used for the port mapping.
*/ inline VirtualGatewayPortMapping& WithProtocol(VirtualGatewayPortProtocol&& value) { SetProtocol(std::move(value)); return *this;} private: int m_port; bool m_portHasBeenSet = false; VirtualGatewayPortProtocol m_protocol; bool m_protocolHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws