@Generated(value="software.amazon.awssdk:codegen") public final class IpPermission extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IpPermission.Builder,IpPermission>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
IpPermission.Builder |
| Modifier and Type | Method and Description |
|---|---|
static IpPermission.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Integer |
fromPort()
A starting value for a range of allowed port numbers.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
ipRange()
A range of allowed IP addresses.
|
IpProtocol |
protocol()
The network communication protocol used by the fleet.
|
String |
protocolAsString()
The network communication protocol used by the fleet.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends IpPermission.Builder> |
serializableBuilderClass() |
IpPermission.Builder |
toBuilder() |
Integer |
toPort()
An ending value for a range of allowed port numbers.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic Integer fromPort()
A starting value for a range of allowed port numbers.
public Integer toPort()
An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher
than FromPort.
FromPort.public 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]".
000.000.000.000/[subnet mask]" or optionally the shortened version "
0.0.0.0/[subnet mask]".public IpProtocol protocol()
The network communication protocol used by the fleet.
If the service returns an enum value that is not available in the current SDK version, protocol will
return IpProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
IpProtocolpublic String protocolAsString()
The network communication protocol used by the fleet.
If the service returns an enum value that is not available in the current SDK version, protocol will
return IpProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
IpProtocolpublic IpPermission.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<IpPermission.Builder,IpPermission>public static IpPermission.Builder builder()
public static Class<? extends IpPermission.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.