Class PricingConfig.Builder
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfigBuilder<PricingConfig.Builder,PricingConfig>
io.floci.testcontainers.config.services.PricingConfig.Builder
- Enclosing class:
- PricingConfig
public static class PricingConfig.Builder
extends AbstractServiceConfigBuilder<PricingConfig.Builder,PricingConfig>
Builder for
PricingConfig.-
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutablePricingConfigfrom this builder.snapshotPath(String snapshotPath) Sets the filesystem directory that overrides the bundled pricing snapshot.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled
-
Method Details
-
snapshotPath
Sets the filesystem directory that overrides the bundled pricing snapshot.When set, files at
<path>/services.json,<path>/products/<service>/<region>.json,<path>/attribute-values/<service>/<attribute>.json, and<path>/price-lists/<service>.jsonare read in preference to the classpath copy.- Parameters:
snapshotPath- the host path to the snapshot directory, ornullto unset- Returns:
- this builder
-
build
Creates an immutablePricingConfigfrom this builder.- Specified by:
buildin classAbstractServiceConfigBuilder<PricingConfig.Builder,PricingConfig> - Returns:
- the Pricing configuration
-