Class ElbV2Config.Builder
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfigBuilder<ElbV2Config.Builder,ElbV2Config>
io.floci.testcontainers.config.services.ElbV2Config.Builder
- Enclosing class:
- ElbV2Config
public static class ElbV2Config.Builder
extends AbstractServiceConfigBuilder<ElbV2Config.Builder,ElbV2Config>
Builder for
ElbV2Config.-
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutableElbV2Configfrom this builder.listenerPort(int port) Adds a listener port to be pre-exposed on the container.mock(boolean mock) Sets whether load balancers are simulated without starting a real load balancerMethods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled
-
Method Details
-
mock
Sets whether load balancers are simulated without starting a real load balancer- Parameters:
mock-trueto enable mock mode (default false)- Returns:
- this builder
-
listenerPort
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
Creates an immutableElbV2Configfrom this builder.- Specified by:
buildin classAbstractServiceConfigBuilder<ElbV2Config.Builder,ElbV2Config> - Returns:
- the ELBv2 configuration
-