Class PricingPlan.Builder

  • Enclosing class:
    PricingPlan

    public static class PricingPlan.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • planName

        public PricingPlan.Builder planName​(String planName)
        The name of the subscription plan used to identify the plan.
        Parameters:
        planName - the value to set
        Returns:
        this builder
      • planDescription

        public PricingPlan.Builder planDescription​(String planDescription)
        A detailed explanation of the subscription plan.
        Parameters:
        planDescription - the value to set
        Returns:
        this builder
      • billingFrequency

        public PricingPlan.Builder billingFrequency​(BillingFrequency billingFrequency)
        Specifies the interval at which billing occurs for the subscription plan or usage dimension.
        Parameters:
        billingFrequency - the value to set
        Returns:
        this builder
      • rates

        public PricingPlan.Builder rates​(List<PricingRate> rates)
        The pricing details of the subscription plan in various supported currencies.
        Parameters:
        rates - the value to set
        Returns:
        this builder
      • dimensions

        public PricingPlan.Builder dimensions​(List<UsageDimension> dimensions)
        Metered usage dimensions associated with the pricing plan.
        Parameters:
        dimensions - the value to set
        Returns:
        this builder