Interface ContainerPortMapping.Builder

  • Method Details

    • containerPort

      ContainerPortMapping.Builder containerPort(Integer 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

      ContainerPortMapping.Builder connectionPort(Integer 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 TCP or UDP.

      Parameters:
      protocol - The network protocol for the port mapping. Valid values are TCP or UDP.
      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 TCP or UDP.

      Parameters:
      protocol - The network protocol for the port mapping. Valid values are TCP or UDP.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: