Interface ContainerPortMapping.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContainerPortMapping.Builder,,ContainerPortMapping> SdkBuilder<ContainerPortMapping.Builder,,ContainerPortMapping> SdkPojo
- Enclosing class:
ContainerPortMapping
@Mutable
@NotThreadSafe
public static interface ContainerPortMapping.Builder
extends SdkPojo, CopyableBuilder<ContainerPortMapping.Builder,ContainerPortMapping>
-
Method Summary
Modifier and TypeMethodDescriptionconnectionPort(Integer connectionPort) The port number on the fleet instance that maps to the container port.containerPort(Integer containerPort) The port number on the container.The network protocol for the port mapping.protocol(IpProtocol protocol) The network protocol for the port mapping.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
The network protocol for the port mapping. Valid values are
TCPorUDP.- Parameters:
protocol- The network protocol for the port mapping. Valid values areTCPorUDP.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protocol
The network protocol for the port mapping. Valid values are
TCPorUDP.- Parameters:
protocol- The network protocol for the port mapping. Valid values areTCPorUDP.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-