Interface CostCover.Builder

  • Method Details

    • margin

      CostCover.Builder margin(Double margin)

      The target margin this price covers.

      Parameters:
      margin - The target margin this price covers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • price

      CostCover.Builder price(Price price)

      Up to 4 decimal places.

      Parameters:
      price - Up to 4 decimal places.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • price

      default CostCover.Builder price(Consumer<Price.Builder> price)

      Up to 4 decimal places.

      This is a convenience method that creates an instance of the Price.Builder avoiding the need to create one manually via Price.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to price(Price).

      Parameters:
      price - a consumer that will call methods on Price.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: