@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 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.
Modifier and Type | Class and Description |
---|---|
static interface |
IpPermission.Builder |
Modifier and Type | Method and Description |
---|---|
static IpPermission.Builder |
builder() |
boolean |
equals(Object obj) |
Integer |
fromPort()
Starting value for a range of allowed port numbers.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
ipRange()
Range of allowed IP addresses.
|
IpProtocol |
protocol()
Network communication protocol used by the fleet.
|
String |
protocolAsString()
Network communication protocol used by the fleet.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends IpPermission.Builder> |
serializableBuilderClass() |
IpPermission.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
Integer |
toPort()
Ending value for a range of allowed port numbers.
|
String |
toString() |
copy
public Integer fromPort()
Starting value for a range of allowed port numbers.
public Integer toPort()
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()
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()
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()
.
IpProtocol
public String protocolAsString()
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()
.
IpProtocol
public IpPermission.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<IpPermission.Builder,IpPermission>
public static IpPermission.Builder builder()
public static Class<? extends IpPermission.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.