Class ElbV2Config.Builder

Enclosing class:
ElbV2Config

public static class ElbV2Config.Builder extends AbstractServiceConfigBuilder<ElbV2Config.Builder,ElbV2Config>
Builder for ElbV2Config.
  • Method Details

    • mock

      public ElbV2Config.Builder mock(boolean mock)
      Sets whether load balancers are simulated without starting a real load balancer
      Parameters:
      mock - true to enable mock mode (default false)
      Returns:
      this builder
    • listenerPort

      public ElbV2Config.Builder listenerPort(int port)
      Adds a listener port to be pre-exposed on the container. Call once per port you intend to create a listener on, so the port is accessible from the host.
      Parameters:
      port - the listener port to expose
      Returns:
      this builder
    • build

      public ElbV2Config build()
      Creates an immutable ElbV2Config from this builder.
      Specified by:
      build in class AbstractServiceConfigBuilder<ElbV2Config.Builder,ElbV2Config>
      Returns:
      the ELBv2 configuration