public class IpPermission
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
fromPort
Starting value for a range of allowed port numbers.
|
private java.lang.String |
ipRange
Range of allowed IP addresses.
|
private java.lang.String |
protocol
Network communication protocol used by the fleet.
|
private java.lang.Integer |
toPort
Ending value for a range of allowed port numbers.
|
Constructor and Description |
---|
IpPermission() |
Modifier and Type | Method and Description |
---|---|
IpPermission |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getFromPort()
Starting value for a range of allowed port numbers.
|
java.lang.String |
getIpRange()
Range of allowed IP addresses.
|
java.lang.String |
getProtocol()
Network communication protocol used by the fleet.
|
java.lang.Integer |
getToPort()
Ending value for a range of allowed port numbers.
|
int |
hashCode() |
void |
setFromPort(java.lang.Integer fromPort)
Starting value for a range of allowed port numbers.
|
void |
setIpRange(java.lang.String ipRange)
Range of allowed IP addresses.
|
void |
setProtocol(IpProtocol protocol)
Network communication protocol used by the fleet.
|
void |
setProtocol(java.lang.String protocol)
Network communication protocol used by the fleet.
|
void |
setToPort(java.lang.Integer toPort)
Ending value for a range of allowed port numbers.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IpPermission |
withFromPort(java.lang.Integer fromPort)
Starting value for a range of allowed port numbers.
|
IpPermission |
withIpRange(java.lang.String ipRange)
Range of allowed IP addresses.
|
IpPermission |
withProtocol(IpProtocol protocol)
Network communication protocol used by the fleet.
|
IpPermission |
withProtocol(java.lang.String protocol)
Network communication protocol used by the fleet.
|
IpPermission |
withToPort(java.lang.Integer toPort)
Ending value for a range of allowed port numbers.
|
private java.lang.Integer fromPort
Starting value for a range of allowed port numbers.
private java.lang.Integer toPort
Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.
private java.lang.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]
".
private java.lang.String protocol
Network communication protocol used by the fleet.
public void setFromPort(java.lang.Integer fromPort)
Starting value for a range of allowed port numbers.
fromPort
- Starting value for a range of allowed port numbers.public java.lang.Integer getFromPort()
Starting value for a range of allowed port numbers.
public IpPermission withFromPort(java.lang.Integer fromPort)
Starting value for a range of allowed port numbers.
fromPort
- Starting value for a range of allowed port numbers.public void setToPort(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.String protocol)
Network communication protocol used by the fleet.
protocol
- Network communication protocol used by the fleet.IpProtocol
public java.lang.String getProtocol()
Network communication protocol used by the fleet.
IpProtocol
public IpPermission withProtocol(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public IpPermission clone()
clone
in class java.lang.Object