Interface AllowedPort.Builder

  • Method Details

    • port

      A single port that is reachable through the runtime's session URL.

      Parameters:
      port - A single port that is reachable through the runtime's session URL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • portRange

      AllowedPort.Builder portRange(PortRange portRange)

      An inclusive range of ports that are reachable through the runtime's session URL.

      Parameters:
      portRange - An inclusive range of ports that are reachable through the runtime's session URL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • portRange

      default AllowedPort.Builder portRange(Consumer<PortRange.Builder> portRange)

      An inclusive range of ports that are reachable through the runtime's session URL.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to portRange(PortRange).

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