Interface PricingPlan.Builder

  • Method Details

    • pricingPlanId

      PricingPlan.Builder pricingPlanId(String pricingPlanId)

      The unique identifier for the pricing plan.

      Parameters:
      pricingPlanId - The unique identifier for the pricing plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the pricing plan.

      Parameters:
      name - The name of the pricing plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      PricingPlan.Builder description(String description)

      A description of the pricing plan.

      Parameters:
      description - A description of the pricing plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startDate

      PricingPlan.Builder startDate(Instant startDate)

      The start date of the pricing plan.

      Parameters:
      startDate - The start date of the pricing plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endDate

      PricingPlan.Builder endDate(Instant endDate)

      The end date of the pricing plan.

      Parameters:
      endDate - The end date of the pricing plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • planDiscountPercent

      PricingPlan.Builder planDiscountPercent(String planDiscountPercent)

      The discount percentage applied by this pricing plan.

      Parameters:
      planDiscountPercent - The discount percentage applied by this pricing plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • discountAppliesToMinimumCharge

      PricingPlan.Builder discountAppliesToMinimumCharge(Boolean discountAppliesToMinimumCharge)

      Whether the discount applies to the minimum Support charge.

      Parameters:
      discountAppliesToMinimumCharge - Whether the discount applies to the minimum Support charge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • minimumCharge

      PricingPlan.Builder minimumCharge(String minimumCharge)

      The minimum Support charge amount for this pricing plan.

      Parameters:
      minimumCharge - The minimum Support charge amount for this pricing plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tiered

      PricingPlan.Builder tiered(String tiered)

      Whether the pricing plan uses tiered pricing.

      Parameters:
      tiered - Whether the pricing plan uses tiered pricing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tiers

      The pricing tiers within this plan.

      Parameters:
      tiers - The pricing tiers within this plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tiers

      The pricing tiers within this plan.

      Parameters:
      tiers - The pricing tiers within this plan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tiers

      The pricing tiers within this plan.

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

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

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