/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A range of IP addresses and port settings that allow inbound traffic to
* connect to server processes on an Amazon GameLift hosting resource. New game
* sessions that are started on the fleet are assigned an IP address/port number
* combination, which must fall into the fleet's allowed ranges. For fleets created
* with a custom game server, the ranges reflect the server's game session
* assignments. For Realtime Servers fleets, Amazon GameLift automatically opens
* two port ranges, one for TCP messaging and one for UDP for use by the Realtime
* servers.See Also:
AWS
* API Reference
A starting value for a range of allowed port numbers.
*/ inline int GetFromPort() const{ return m_fromPort; } /** *A starting value for a range of allowed port numbers.
*/ inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; } /** *A starting value for a range of allowed port numbers.
*/ inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; } /** *A starting value for a range of allowed port numbers.
*/ inline IpPermission& WithFromPort(int value) { SetFromPort(value); return *this;} /** *An ending value for a range of allowed port numbers. Port numbers are
* end-inclusive. This value must be higher than FromPort.
An ending value for a range of allowed port numbers. Port numbers are
* end-inclusive. This value must be higher than FromPort.
An ending value for a range of allowed port numbers. Port numbers are
* end-inclusive. This value must be higher than FromPort.
An ending value for a range of allowed port numbers. Port numbers are
* end-inclusive. This value must be higher than FromPort.
A range of allowed IP addresses. This value must be expressed in CIDR
* notation. Example: "000.000.000.000/[subnet mask]" or optionally
* the shortened version "0.0.0.0/[subnet mask]".
A range of allowed IP addresses. This value must be expressed in CIDR
* notation. Example: "000.000.000.000/[subnet mask]" or optionally
* the shortened version "0.0.0.0/[subnet mask]".
A range of allowed IP addresses. This value must be expressed in CIDR
* notation. Example: "000.000.000.000/[subnet mask]" or optionally
* the shortened version "0.0.0.0/[subnet mask]".
A range of allowed IP addresses. This value must be expressed in CIDR
* notation. Example: "000.000.000.000/[subnet mask]" or optionally
* the shortened version "0.0.0.0/[subnet mask]".
A range of allowed IP addresses. This value must be expressed in CIDR
* notation. Example: "000.000.000.000/[subnet mask]" or optionally
* the shortened version "0.0.0.0/[subnet mask]".
A range of allowed IP addresses. This value must be expressed in CIDR
* notation. Example: "000.000.000.000/[subnet mask]" or optionally
* the shortened version "0.0.0.0/[subnet mask]".
A range of allowed IP addresses. This value must be expressed in CIDR
* notation. Example: "000.000.000.000/[subnet mask]" or optionally
* the shortened version "0.0.0.0/[subnet mask]".
A range of allowed IP addresses. This value must be expressed in CIDR
* notation. Example: "000.000.000.000/[subnet mask]" or optionally
* the shortened version "0.0.0.0/[subnet mask]".
The network communication protocol used by the fleet.
*/ inline const IpProtocol& GetProtocol() const{ return m_protocol; } /** *The network communication protocol used by the fleet.
*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *The network communication protocol used by the fleet.
*/ inline void SetProtocol(const IpProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *The network communication protocol used by the fleet.
*/ inline void SetProtocol(IpProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *The network communication protocol used by the fleet.
*/ inline IpPermission& WithProtocol(const IpProtocol& value) { SetProtocol(value); return *this;} /** *The network communication protocol used by the fleet.
*/ inline IpPermission& WithProtocol(IpProtocol&& value) { SetProtocol(std::move(value)); return *this;} private: int m_fromPort; bool m_fromPortHasBeenSet; int m_toPort; bool m_toPortHasBeenSet; Aws::String m_ipRange; bool m_ipRangeHasBeenSet; IpProtocol m_protocol; bool m_protocolHasBeenSet; }; } // namespace Model } // namespace GameLift } // namespace Aws