Class DocumentDbConfig.Builder
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfigBuilder<DocumentDbConfig.Builder,DocumentDbConfig>
io.floci.testcontainers.config.services.DocumentDbConfig.Builder
- Enclosing class:
- DocumentDbConfig
public static class DocumentDbConfig.Builder
extends AbstractServiceConfigBuilder<DocumentDbConfig.Builder,DocumentDbConfig>
Builder for
DocumentDbConfig.-
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutableDocumentDbConfigfrom this builder.defaultImage(String defaultImage) Sets the default Docker image for DocumentDB instances.dockerNetwork(String dockerNetwork) Sets the Docker network that DocumentDB containers should join.mock(boolean mock) Sets whether DocumentDB clusters are simulated in-memory without real Docker containers.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled
-
Method Details
-
mock
Sets whether DocumentDB clusters are simulated in-memory without real Docker containers.- Parameters:
mock-trueto enable mock mode (default false)- Returns:
- this builder
-
defaultImage
Sets the default Docker image for DocumentDB instances.- Parameters:
defaultImage- the image name (default "mongo:7.0")- Returns:
- this builder
-
dockerNetwork
Sets the Docker network that DocumentDB containers should join.- Parameters:
dockerNetwork- the network name, ornullto use the default bridge- Returns:
- this builder
-
build
Creates an immutableDocumentDbConfigfrom this builder.- Specified by:
buildin classAbstractServiceConfigBuilder<DocumentDbConfig.Builder,DocumentDbConfig> - Returns:
- the DocumentDB configuration
-