Interface ContainerAttributes.Builder

  • 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. A ContainerPortMapping 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(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. A ContainerPortMapping 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 ContainerPortMapping directs the traffic from a connection port to a port on the container that hosts the game session.

      This is a convenience method that creates an instance of the ContainerPortMapping.Builder avoiding the need to create one manually via ContainerPortMapping.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to containerPortMappings(List<ContainerPortMapping>).

      Parameters:
      containerPortMappings - a consumer that will call methods on ContainerPortMapping.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: