Class PricingConfig.Builder

Enclosing class:
PricingConfig

public static class PricingConfig.Builder extends AbstractServiceConfigBuilder<PricingConfig.Builder,PricingConfig>
Builder for PricingConfig.
  • Method Details

    • snapshotPath

      public PricingConfig.Builder snapshotPath(String 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>.json are read in preference to the classpath copy.

      Parameters:
      snapshotPath - the host path to the snapshot directory, or null to unset
      Returns:
      this builder
    • build

      public PricingConfig build()
      Creates an immutable PricingConfig from this builder.
      Specified by:
      build in class AbstractServiceConfigBuilder<PricingConfig.Builder,PricingConfig>
      Returns:
      the Pricing configuration