Class AthenaConfig
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfig<AthenaConfig.Builder>
io.floci.testcontainers.config.services.AthenaConfig
Configuration for Athena-specific container settings.
Instances are created via AthenaConfig.Builder:
AthenaConfig config = AthenaConfig.builder()
.mock(false)
.build();
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfig
DEFAULT_ENABLED -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEnvVarsToContainer(org.testcontainers.containers.Container<?> container) Applies this service configuration to the given container by setting the appropriate environment variables.static AthenaConfig.Builderbuilder()Returns a newAthenaConfig.Builderfor this configuration.booleanisMock()Returns whether Athena operates in mock mode (no real DuckDB backend).Returns a newAthenaConfig.Builderfor this configuration, initialized with the current values of this instance.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfig
applyExposedPortsToContainer, isEnabled
-
Method Details
-
builder
Returns a newAthenaConfig.Builderfor this configuration.- Returns:
- a new builder
-
toBuilder
Returns a newAthenaConfig.Builderfor this configuration, initialized with the current values of this instance.- Specified by:
toBuilderin classAbstractServiceConfig<AthenaConfig.Builder>- Returns:
- a new builder pre-populated with this configuration's values
-
isMock
public boolean isMock()Returns whether Athena operates in mock mode (no real DuckDB backend).- Returns:
trueif mock mode is enabled
-
applyEnvVarsToContainer
public void applyEnvVarsToContainer(org.testcontainers.containers.Container<?> container) Description copied from class:AbstractServiceConfigApplies this service configuration to the given container by setting the appropriate environment variables.- Overrides:
applyEnvVarsToContainerin classAbstractServiceConfig<AthenaConfig.Builder>- Parameters:
container- the container to configure
-