@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)
Indicates whether some other object is "equal to" this one by SDK fields.
|
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()
Take this object and create a builder that contains all of the current property values of this object.
|
Integer |
toPort()
An ending value for a range of allowed port numbers.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final Integer fromPort()
A starting value for a range of allowed port numbers.
public final 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 final 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 final 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()
.
IpProtocol
public final 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()
.
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()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.