Class PortProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • fromPort

      @Stability(Experimental) public PortProps.Builder fromPort(Number fromPort)
      Sets the value of PortProps.getFromPort()
      Parameters:
      fromPort - A starting value for a range of allowed port numbers. This parameter is required. For fleets using Windows and Linux builds, only ports 1026-60000 are valid.
      Returns:
      this
    • protocol

      @Stability(Experimental) public PortProps.Builder protocol(Protocol protocol)
      Sets the value of PortProps.getProtocol()
      Parameters:
      protocol - The protocol for the range. This parameter is required.
      Returns:
      this
    • toPort

      @Stability(Experimental) public PortProps.Builder toPort(Number toPort)
      Sets the value of PortProps.getToPort()
      Parameters:
      toPort - 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.

      Returns:
      this
    • build

      @Stability(Experimental) public PortProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<PortProps>
      Returns:
      a new instance of PortProps
      Throws:
      NullPointerException - if any required attribute was not provided