@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 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.
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.
fromPort
- A starting value for a range of allowed port numbers.public Integer getFromPort()
A starting value for a range of allowed port numbers.
public IpPermission withFromPort(Integer fromPort)
A starting value for a range of allowed port numbers.
fromPort
- A starting value for a range of allowed port numbers.public void setToPort(Integer toPort)
An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher
than FromPort
.
toPort
- An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be
higher than FromPort
.public Integer getToPort()
An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher
than FromPort
.
FromPort
.public IpPermission withToPort(Integer toPort)
An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher
than FromPort
.
toPort
- An 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)
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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.