@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 Amazon GameLift. Each game session hosted on a fleet is assigned a unique combination of IP address and port number, which must fall into the fleet's allowed ranges. This combination is included in the GameSession object.
| 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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
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.
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.IpProtocolpublic String getProtocol()
Network communication protocol used by the fleet.
IpProtocolpublic IpPermission withProtocol(String protocol)
Network communication protocol used by the fleet.
protocol - Network communication protocol used by the fleet.IpProtocolpublic void setProtocol(IpProtocol protocol)
Network communication protocol used by the fleet.
protocol - Network communication protocol used by the fleet.IpProtocolpublic IpPermission withProtocol(IpProtocol protocol)
Network communication protocol used by the fleet.
protocol - Network communication protocol used by the fleet.IpProtocolpublic String toString()
toString in class ObjectObject.toString()public IpPermission clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.