Interface EvaluatedPlanPrice.Builder

  • Method Details

    • planCode

      EvaluatedPlanPrice.Builder planCode(String planCode)

      The plan code this price was evaluated for.

      Parameters:
      planCode - The plan code this price was evaluated for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • price

      The price evaluated: for pay_as_you_go with an actionName in the request, that action's rate.

      Parameters:
      price - The price evaluated: for pay_as_you_go with an actionName in the request, that action's rate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • price

      The price evaluated: for pay_as_you_go with an actionName in the request, that action's rate.

      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:
    • monthlyProfit

      EvaluatedPlanPrice.Builder monthlyProfit(String monthlyProfit)

      Modeled monthly profit at this price, which can be negative.

      Parameters:
      monthlyProfit - Modeled monthly profit at this price, which can be negative.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paidShare

      EvaluatedPlanPrice.Builder paidShare(Double paidShare)

      Modeled share of potential customers who pay, to 2 decimal places.

      Parameters:
      paidShare - Modeled share of potential customers who pay, to 2 decimal places.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • verdict

      Viability verdict at this price.

      Parameters:
      verdict - Viability verdict at this price.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • verdict

      Viability verdict at this price.

      Parameters:
      verdict - Viability verdict at this price.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • plans

      The recommended plans rebuilt at this price by the same rules, in the same form as the response's plans: a pro price sets Pro's overage rates and the annual plan, and a pay_as_you_go rate sets that action's rate. At the recommended price, equal to plans.

      Parameters:
      plans - The recommended plans rebuilt at this price by the same rules, in the same form as the response's plans: a pro price sets Pro's overage rates and the annual plan, and a pay_as_you_go rate sets that action's rate. At the recommended price, equal to plans.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • plans

      The recommended plans rebuilt at this price by the same rules, in the same form as the response's plans: a pro price sets Pro's overage rates and the annual plan, and a pay_as_you_go rate sets that action's rate. At the recommended price, equal to plans.

      Parameters:
      plans - The recommended plans rebuilt at this price by the same rules, in the same form as the response's plans: a pro price sets Pro's overage rates and the annual plan, and a pay_as_you_go rate sets that action's rate. At the recommended price, equal to plans.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • plans

      The recommended plans rebuilt at this price by the same rules, in the same form as the response's plans: a pro price sets Pro's overage rates and the annual plan, and a pay_as_you_go rate sets that action's rate. At the recommended price, equal to plans.

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

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

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

      The credit packs at this price, in the same form as the response's creditPacks. At the recommended price, equal to creditPacks.

      Parameters:
      creditPacks - The credit packs at this price, in the same form as the response's creditPacks. At the recommended price, equal to creditPacks.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creditPacks

      The credit packs at this price, in the same form as the response's creditPacks. At the recommended price, equal to creditPacks.

      Parameters:
      creditPacks - The credit packs at this price, in the same form as the response's creditPacks. At the recommended price, equal to creditPacks.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creditPacks

      The credit packs at this price, in the same form as the response's creditPacks. At the recommended price, equal to creditPacks.

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

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

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