Class ContainerPortMapping
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContainerPortMapping.Builder,ContainerPortMapping>
Describes a mapping between a container port and a connection port on a fleet instance. You define container ports in a container group definition. Amazon GameLift Servers assigns connection ports when it deploys the container group to an instance.
Part of: ContainerGroupPortMapping
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerPortMapping.Builderbuilder()final IntegerThe port number on the fleet instance that maps to the container port.final IntegerThe port number on the container.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IpProtocolprotocol()The network protocol for the port mapping.final StringThe network protocol for the port mapping.static Class<? extends ContainerPortMapping.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
containerPort
The port number on the container. This port is defined in the container group definition. Container port numbers must be unique within a container group definition.
- Returns:
- The port number on the container. This port is defined in the container group definition. Container port numbers must be unique within a container group definition.
-
connectionPort
The port number on the fleet instance that maps to the container port. Connection ports are assigned by Amazon GameLift Servers when the container group is deployed to an instance.
- Returns:
- The port number on the fleet instance that maps to the container port. Connection ports are assigned by Amazon GameLift Servers when the container group is deployed to an instance.
-
protocol
The network protocol for the port mapping. Valid values are
TCPorUDP.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 protocol for the port mapping. Valid values are
TCPorUDP. - See Also:
-
protocolAsString
The network protocol for the port mapping. Valid values are
TCPorUDP.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 protocol for the port mapping. Valid values are
TCPorUDP. - See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ContainerPortMapping.Builder,ContainerPortMapping> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-