Class EcsConfig.Builder
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfigBuilder<EcsConfig.Builder,EcsConfig>
io.floci.testcontainers.config.services.EcsConfig.Builder
- Enclosing class:
- EcsConfig
public static class EcsConfig.Builder
extends AbstractServiceConfigBuilder<EcsConfig.Builder,EcsConfig>
Builder for
EcsConfig.-
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutableEcsConfigfrom this builder.defaultCpuUnits(int defaultCpuUnits) Sets the default CPU units for ECS tasks.defaultMemoryMb(int defaultMemoryMb) Sets the default memory size for ECS tasks in megabytes.dockerNetwork(String dockerNetwork) Sets the Docker network that ECS task containers should join.mock(boolean mock) Sets whether ECS tasks go straight to RUNNING without starting real Docker containers.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled
-
Method Details
-
mock
Sets whether ECS tasks go straight to RUNNING without starting real Docker containers.- Parameters:
mock-trueto enable mock mode (default false)- Returns:
- this builder
-
dockerNetwork
Sets the Docker network that ECS task containers should join.- Parameters:
dockerNetwork- the network name, ornullto use the default bridge- Returns:
- this builder
-
defaultMemoryMb
Sets the default memory size for ECS tasks in megabytes.- Parameters:
defaultMemoryMb- memory in MB (default 512)- Returns:
- this builder
-
defaultCpuUnits
Sets the default CPU units for ECS tasks.- Parameters:
defaultCpuUnits- CPU units (default 256)- Returns:
- this builder
-
build
Creates an immutableEcsConfigfrom this builder.- Specified by:
buildin classAbstractServiceConfigBuilder<EcsConfig.Builder,EcsConfig> - Returns:
- the ECS configuration
-