Interface CostOutcome.Builder

  • Method Details

    • status

      CostOutcome.Builder status(String status)

      Whether the costs behind verdict and costs.breakEven are complete.

      Parameters:
      status - Whether the costs behind verdict and costs.breakEven are complete.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Whether the costs behind verdict and costs.breakEven are complete.

      Parameters:
      status - Whether the costs behind verdict and costs.breakEven are complete.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • coverStatus

      CostOutcome.Builder coverStatus(String coverStatus)

      Whether the recommended price covers cost to serve as modeled, was raised to cover it, or could not cover it at any price.

      Parameters:
      coverStatus - Whether the recommended price covers cost to serve as modeled, was raised to cover it, or could not cover it at any price.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • coverStatus

      CostOutcome.Builder coverStatus(CostCoverStatus coverStatus)

      Whether the recommended price covers cost to serve as modeled, was raised to cover it, or could not cover it at any price.

      Parameters:
      coverStatus - Whether the recommended price covers cost to serve as modeled, was raised to cover it, or could not cover it at any price.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • coverPrices

      CostOutcome.Builder coverPrices(Collection<CostCover> coverPrices)

      The price that covers cost to serve at each margin above 0 in the request's costs.margins. Reference only.

      Parameters:
      coverPrices - The price that covers cost to serve at each margin above 0 in the request's costs.margins . Reference only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • coverPrices

      CostOutcome.Builder coverPrices(CostCover... coverPrices)

      The price that covers cost to serve at each margin above 0 in the request's costs.margins. Reference only.

      Parameters:
      coverPrices - The price that covers cost to serve at each margin above 0 in the request's costs.margins . Reference only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • coverPrices

      CostOutcome.Builder coverPrices(Consumer<CostCover.Builder>... coverPrices)

      The price that covers cost to serve at each margin above 0 in the request's costs.margins. Reference only.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to coverPrices(List<CostCover>).

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

      CostOutcome.Builder breakEven(BreakEvenRange breakEven)

      Cost to serve one payer at the expected number of payers, at one tenth and at ten times.

      Parameters:
      breakEven - Cost to serve one payer at the expected number of payers, at one tenth and at ten times.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • breakEven

      default CostOutcome.Builder breakEven(Consumer<BreakEvenRange.Builder> breakEven)

      Cost to serve one payer at the expected number of payers, at one tenth and at ten times.

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

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

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

      CostOutcome.Builder impliedMargin(Double impliedMargin)

      Share of revenue left after cost to serve at the recommended price and expected scale, to 2 decimal places.

      Parameters:
      impliedMargin - Share of revenue left after cost to serve at the recommended price and expected scale, to 2 decimal places.
      Returns:
      Returns a reference to this object so that method calls can be chained together.