java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.Port.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Port>
Enclosing class:
Port

@Stability(Experimental) public static final class Port.Builder extends Object implements software.amazon.jsii.Builder<Port>
(experimental) A fluent builder for Port.
  • Method Details

    • create

      @Stability(Experimental) public static Port.Builder create()
      Returns:
      a new instance of Port.Builder.
    • fromPort

      @Stability(Experimental) public Port.Builder fromPort(Number fromPort)
      (experimental) A starting value for a range of allowed port numbers.

      For fleets using Windows and Linux builds, only ports 1026-60000 are valid.

      Parameters:
      fromPort - A starting value for a range of allowed port numbers. This parameter is required.
      Returns:
      this
    • protocol

      @Stability(Experimental) public Port.Builder protocol(Protocol protocol)
      (experimental) The protocol for the range.

      Parameters:
      protocol - The protocol for the range. This parameter is required.
      Returns:
      this
    • toPort

      @Stability(Experimental) public Port.Builder toPort(Number toPort)
      (experimental) An ending value for a range of allowed port numbers.

      Port numbers are end-inclusive. This value must be higher than fromPort.

      For fleets using Windows and Linux builds, only ports 1026-60000 are valid.

      Default: the `fromPort` value

      Parameters:
      toPort - An ending value for a range of allowed port numbers. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public Port build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Port>
      Returns:
      a newly built instance of Port.