@Generated(value="software.amazon.awssdk:codegen") public class IpPermission extends Object implements StructuredPojo, 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.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
IpProtocol |
protocol()
Network communication protocol used by the fleet.
|
String |
protocolString()
Network communication protocol used by the fleet.
|
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
protocolString()
.
IpProtocol
public String protocolString()
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
protocolString()
.
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 void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.