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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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
ContainerPortMapping
directs 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. AContainerPortMapping
directs 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
ContainerPortMapping
directs 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. AContainerPortMapping
directs 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 theContainerPortMapping
directs the traffic from a connection port to a port on the container that hosts the game session.ContainerPortMapping.Builder
avoiding the need to create one manually viaContainerPortMapping.builder()
.When the
Consumer
completes,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:
-