Class PortOverride.Builder

java.lang.Object
software.amazon.awscdk.services.globalaccelerator.PortOverride.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<PortOverride>
Enclosing interface:
PortOverride

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

    • Builder

      public Builder()
  • Method Details

    • endpointPort

      @Stability(Stable) public PortOverride.Builder endpointPort(Number endpointPort)
      Parameters:
      endpointPort - The endpoint port that you want a listener port to be mapped to. This parameter is required. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
      Returns:
      this
    • listenerPort

      @Stability(Stable) public PortOverride.Builder listenerPort(Number listenerPort)
      Parameters:
      listenerPort - The listener port that you want to map to a specific endpoint port. This parameter is required. This is the port that user traffic arrives to the Global Accelerator on.
      Returns:
      this
    • build

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