Interface FreeTierOutcome.Builder

  • Method Details

    • status

      Whether a Free plan is included, or what is suggested instead.

      Parameters:
      status - Whether a Free plan is included, or what is suggested instead.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Whether a Free plan is included, or what is suggested instead.

      Parameters:
      status - Whether a Free plan is included, or what is suggested instead.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusSource

      FreeTierOutcome.Builder statusSource(String statusSource)

      Whether status follows the request's planOptions.freeTierInclusion or the segment's default.

      Parameters:
      statusSource - Whether status follows the request's planOptions.freeTierInclusion or the segment's default.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusSource

      FreeTierOutcome.Builder statusSource(FreeTierStatusSource statusSource)

      Whether status follows the request's planOptions.freeTierInclusion or the segment's default.

      Parameters:
      statusSource - Whether status follows the request's planOptions.freeTierInclusion or the segment's default.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • trialDays

      FreeTierOutcome.Builder trialDays(Integer trialDays)

      Length of the suggested free trial. TRIAL_SUGGESTED only.

      Parameters:
      trialDays - Length of the suggested free trial. TRIAL_SUGGESTED only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • freeUsers

      FreeTierOutcome.Builder freeUsers(Double freeUsers)

      Modeled number of free users, as a whole number. INCLUDED, or NOT_INCLUDED with what a Free plan would cost.

      Parameters:
      freeUsers - Modeled number of free users, as a whole number. INCLUDED, or NOT_INCLUDED with what a Free plan would cost.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conversion

      FreeTierOutcome.Builder conversion(Double conversion)

      Modeled share of free users who convert to the paid plan. Not returned.

      Parameters:
      conversion - Modeled share of free users who convert to the paid plan. Not returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • monthlyCost

      FreeTierOutcome.Builder monthlyCost(Price monthlyCost)

      Monthly cost of serving the free users: for INCLUDED, the Free plan's cost; for TRIAL_SUGGESTED and NOT_INCLUDED, what a Free plan at the default quota would cost. Up to 4 decimal places.

      Parameters:
      monthlyCost - Monthly cost of serving the free users: for INCLUDED, the Free plan's cost; for TRIAL_SUGGESTED and NOT_INCLUDED, what a Free plan at the default quota would cost. Up to 4 decimal places.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • monthlyCost

      default FreeTierOutcome.Builder monthlyCost(Consumer<Price.Builder> monthlyCost)

      Monthly cost of serving the free users: for INCLUDED, the Free plan's cost; for TRIAL_SUGGESTED and NOT_INCLUDED, what a Free plan at the default quota would cost. 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 monthlyCost(Price).

      Parameters:
      monthlyCost - 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: