@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IpPermission extends Object implements Serializable, Cloneable, StructuredPojo
A range of IP addresses and port settings that allow inbound traffic to connect to processes on an instance in a fleet. Processes are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges. For container fleets, the port settings must use the same port numbers as the fleet's connection ports.
For Realtime Servers fleets, Amazon GameLift automatically opens two port ranges, one for TCP messaging and one for UDP.
Constructor and Description |
---|
IpPermission() |
Modifier and Type | Method and Description |
---|---|
IpPermission |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
A starting value for a range of allowed port numbers.
|
String |
getIpRange()
A range of allowed IP addresses.
|
String |
getProtocol()
The network communication protocol used by the fleet.
|
Integer |
getToPort()
An ending value for a range of allowed port numbers.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFromPort(Integer fromPort)
A starting value for a range of allowed port numbers.
|
void |
setIpRange(String ipRange)
A range of allowed IP addresses.
|
void |
setProtocol(IpProtocol protocol)
The network communication protocol used by the fleet.
|
void |
setProtocol(String protocol)
The network communication protocol used by the fleet.
|
void |
setToPort(Integer toPort)
An ending value for a range of allowed port numbers.
|
String |
toString()
Returns a string representation of this object.
|
IpPermission |
withFromPort(Integer fromPort)
A starting value for a range of allowed port numbers.
|
IpPermission |
withIpRange(String ipRange)
A range of allowed IP addresses.
|
IpPermission |
withProtocol(IpProtocol protocol)
The network communication protocol used by the fleet.
|
IpPermission |
withProtocol(String protocol)
The network communication protocol used by the fleet.
|
IpPermission |
withToPort(Integer toPort)
An ending value for a range of allowed port numbers.
|
public void setFromPort(Integer fromPort)
A starting value for a range of allowed port numbers.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
fromPort
- A starting value for a range of allowed port numbers.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
public Integer getFromPort()
A starting value for a range of allowed port numbers.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
public IpPermission withFromPort(Integer fromPort)
A starting value for a range of allowed port numbers.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
fromPort
- A starting value for a range of allowed port numbers.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
public void setToPort(Integer toPort)
An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to
or greater than FromPort
.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
toPort
- An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be
equal to or greater than FromPort
.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
public Integer getToPort()
An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to
or greater than FromPort
.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
FromPort
.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
public IpPermission withToPort(Integer toPort)
An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to
or greater than FromPort
.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
toPort
- An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be
equal to or greater than FromPort
.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
public void setIpRange(String ipRange)
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]
".
ipRange
- 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]
".public String getIpRange()
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]
".
000.000.000.000/[subnet mask]
" or optionally the shortened version "
0.0.0.0/[subnet mask]
".public IpPermission withIpRange(String ipRange)
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]
".
ipRange
- 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]
".public void setProtocol(String protocol)
The network communication protocol used by the fleet.
protocol
- The network communication protocol used by the fleet.IpProtocol
public String getProtocol()
The network communication protocol used by the fleet.
IpProtocol
public IpPermission withProtocol(String protocol)
The network communication protocol used by the fleet.
protocol
- The network communication protocol used by the fleet.IpProtocol
public void setProtocol(IpProtocol protocol)
The network communication protocol used by the fleet.
protocol
- The network communication protocol used by the fleet.IpProtocol
public IpPermission withProtocol(IpProtocol protocol)
The network communication protocol used by the fleet.
protocol
- The network communication protocol used by the fleet.IpProtocol
public String toString()
toString
in class Object
Object.toString()
public IpPermission clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.