Interface ContainerAttributes.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContainerAttributes.Builder,,ContainerAttributes> SdkBuilder<ContainerAttributes.Builder,,ContainerAttributes> SdkPojo
- Enclosing class:
ContainerAttributes
-
Method Summary
Modifier and TypeMethodDescriptioncontainerPortMappings(Collection<ContainerPortMapping> containerPortMappings) Describes how container ports map to connection ports on the fleet instance.containerPortMappings(Consumer<ContainerPortMapping.Builder>... containerPortMappings) Describes how container ports map to connection ports on the fleet instance.containerPortMappings(ContainerPortMapping... containerPortMappings) Describes how container ports map to connection ports on the fleet instance.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, sdkFields
-
Method Details
-
containerPortMappings
ContainerAttributes.Builder containerPortMappings(Collection<ContainerPortMapping> containerPortMappings) Describes how container ports map to connection ports on the fleet instance. Incoming traffic connects to a game via a connection port. A
ContainerPortMappingdirects the traffic from a connection port to a port on the container that hosts the game session.- Parameters:
containerPortMappings- Describes how container ports map to connection ports on the fleet instance. Incoming traffic connects to a game via a connection port. AContainerPortMappingdirects the traffic from a connection port to a port on the container that hosts the game session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerPortMappings
Describes how container ports map to connection ports on the fleet instance. Incoming traffic connects to a game via a connection port. A
ContainerPortMappingdirects the traffic from a connection port to a port on the container that hosts the game session.- Parameters:
containerPortMappings- Describes how container ports map to connection ports on the fleet instance. Incoming traffic connects to a game via a connection port. AContainerPortMappingdirects the traffic from a connection port to a port on the container that hosts the game session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerPortMappings
ContainerAttributes.Builder containerPortMappings(Consumer<ContainerPortMapping.Builder>... containerPortMappings) Describes how container ports map to connection ports on the fleet instance. Incoming traffic connects to a game via a connection port. A
This is a convenience method that creates an instance of theContainerPortMappingdirects the traffic from a connection port to a port on the container that hosts the game session.ContainerPortMapping.Builderavoiding the need to create one manually viaContainerPortMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontainerPortMappings(List<ContainerPortMapping>).- Parameters:
containerPortMappings- a consumer that will call methods onContainerPortMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-