Class IpPermission
- java.lang.Object
-
- software.amazon.awssdk.services.gamelift.model.IpPermission
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<IpPermission.Builder,IpPermission>
@Generated("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 processes on an instance in a fleet. Processes are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges. For container fleets, the port settings must use the same port numbers as the fleet's connection ports.
For Realtime Servers fleets, Amazon GameLift automatically opens two port ranges, one for TCP messaging and one for UDP.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIpPermission.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IpPermission.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)IntegerfromPort()A starting value for a range of allowed port numbers.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringipRange()A range of allowed IP addresses.IpProtocolprotocol()The network communication protocol used by the fleet.StringprotocolAsString()The network communication protocol used by the fleet.List<SdkField<?>>sdkFields()static Class<? extends IpPermission.Builder>serializableBuilderClass()IpPermission.BuildertoBuilder()IntegertoPort()An ending value for a range of allowed port numbers.StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
fromPort
public final Integer fromPort()
A starting value for a range of allowed port numbers.
For fleets using Linux builds, only ports
22and1026-60000are valid.For fleets using Windows builds, only ports
1026-60000are valid.- Returns:
- A starting value for a range of allowed port numbers.
For fleets using Linux builds, only ports
22and1026-60000are valid.For fleets using Windows builds, only ports
1026-60000are valid.
-
toPort
public final Integer toPort()
An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to or greater than
FromPort.For fleets using Linux builds, only ports
22and1026-60000are valid.For fleets using Windows builds, only ports
1026-60000are valid.- Returns:
- An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be
equal to or greater than
FromPort.For fleets using Linux builds, only ports
22and1026-60000are valid.For fleets using Windows builds, only ports
1026-60000are valid.
-
ipRange
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]".- Returns:
- 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]".
-
protocol
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,
protocolwill returnIpProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The network communication protocol used by the fleet.
- See Also:
IpProtocol
-
protocolAsString
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,
protocolwill returnIpProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The network communication protocol used by the fleet.
- See Also:
IpProtocol
-
toBuilder
public IpPermission.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<IpPermission.Builder,IpPermission>
-
builder
public static IpPermission.Builder builder()
-
serializableBuilderClass
public static Class<? extends IpPermission.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-