public class IpPermission extends Object implements Serializable, Cloneable
IP addresses and port settings used to limit access by incoming traffic (players) to a fleet. Permissions specify a range of IP addresses and port settings that must be used to gain access to a game server on a fleet machine.
Constructor and Description |
---|
IpPermission() |
Modifier and Type | Method and Description |
---|---|
IpPermission |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
Starting value for a range of allowed port numbers.
|
String |
getIpRange()
Range of allowed IP addresses.
|
String |
getProtocol()
Network communication protocol used by the fleet.
|
Integer |
getToPort()
Ending value for a range of allowed port numbers.
|
int |
hashCode() |
void |
setFromPort(Integer fromPort)
Starting value for a range of allowed port numbers.
|
void |
setIpRange(String ipRange)
Range of allowed IP addresses.
|
void |
setProtocol(IpProtocol protocol)
Network communication protocol used by the fleet.
|
void |
setProtocol(String protocol)
Network communication protocol used by the fleet.
|
void |
setToPort(Integer toPort)
Ending value for a range of allowed port numbers.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IpPermission |
withFromPort(Integer fromPort)
Starting value for a range of allowed port numbers.
|
IpPermission |
withIpRange(String ipRange)
Range of allowed IP addresses.
|
IpPermission |
withProtocol(IpProtocol protocol)
Network communication protocol used by the fleet.
|
IpPermission |
withProtocol(String protocol)
Network communication protocol used by the fleet.
|
IpPermission |
withToPort(Integer toPort)
Ending value for a range of allowed port numbers.
|
public void setFromPort(Integer fromPort)
Starting value for a range of allowed port numbers.
fromPort
- Starting value for a range of allowed port numbers.public Integer getFromPort()
Starting value for a range of allowed port numbers.
public IpPermission withFromPort(Integer fromPort)
Starting value for a range of allowed port numbers.
fromPort
- Starting value for a range of allowed port numbers.public void setToPort(Integer toPort)
Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.
toPort
- Ending value for a range of allowed port numbers. Port numbers are
end-inclusive. This value must be higher than FromPort.public Integer getToPort()
Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.
public IpPermission withToPort(Integer toPort)
Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.
toPort
- Ending value for a range of allowed port numbers. Port numbers are
end-inclusive. This value must be higher than FromPort.public void setIpRange(String ipRange)
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]
".
ipRange
- 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]
".public String getIpRange()
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]
".
000.000.000.000/[subnet mask]
" or optionally the shortened version "
0.0.0.0/[subnet mask]
".public IpPermission withIpRange(String ipRange)
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]
".
ipRange
- 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]
".public void setProtocol(String protocol)
Network communication protocol used by the fleet.
protocol
- Network communication protocol used by the fleet.IpProtocol
public String getProtocol()
Network communication protocol used by the fleet.
IpProtocol
public IpPermission withProtocol(String protocol)
Network communication protocol used by the fleet.
protocol
- Network communication protocol used by the fleet.IpProtocol
public void setProtocol(IpProtocol protocol)
Network communication protocol used by the fleet.
protocol
- Network communication protocol used by the fleet.IpProtocol
public IpPermission withProtocol(IpProtocol protocol)
Network communication protocol used by the fleet.
protocol
- Network communication protocol used by the fleet.IpProtocol
public String toString()
toString
in class Object
Object.toString()
public IpPermission clone()
Copyright © 2018. All rights reserved.