Interface Comparable.Builder

  • Method Details

    • name

      Short name of the comparable app. Absent: the host of url, lowercased, without a leading www.; when two comparables get the same name, the later ones get (2), (3).

      Parameters:
      name - Short name of the comparable app. Absent: the host of url, lowercased, without a leading www.; when two comparables get the same name, the later ones get (2), (3).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • url

      The public pricing page the price was read from.

      Parameters:
      url - The public pricing page the price was read from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mechanism

      Comparable.Builder mechanism(String mechanism)

      How the comparable charges.

      Parameters:
      mechanism - How the comparable charges.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • mechanism

      How the comparable charges.

      Parameters:
      mechanism - How the comparable charges.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • price

      Comparable.Builder price(Price price)

      Its price: per month for PAID_SUB, per use for PER_REQUEST, 0 for FREE_CAPPED and FREEMIUM, the one-time price for ONE_TIME. USD only: another currencyCode is rejected.

      Parameters:
      price - Its price: per month for PAID_SUB, per use for PER_REQUEST, 0 for FREE_CAPPED and FREEMIUM, the one-time price for ONE_TIME. USD only: another currencyCode is rejected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • price

      default Comparable.Builder price(Consumer<Price.Builder> price)

      Its price: per month for PAID_SUB, per use for PER_REQUEST, 0 for FREE_CAPPED and FREEMIUM, the one-time price for ONE_TIME. USD only: another currencyCode is rejected.

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

      Monthly usage cap of the free tier, for FREE_CAPPED and FREEMIUM. A free tier without a cap is not used.

      Parameters:
      cap - Monthly usage cap of the free tier, for FREE_CAPPED and FREEMIUM. A free tier without a cap is not used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • includedUnits

      Comparable.Builder includedUnits(Double includedUnits)

      For PAID_SUB: units of this app's billable action the plan includes per month. With overageRate, a customer pays the plan price plus overage at their own usage; without it, the plan stops at this allowance. Absent: the plan price covers any usage.

      Parameters:
      includedUnits - For PAID_SUB: units of this app's billable action the plan includes per month. With overageRate, a customer pays the plan price plus overage at their own usage; without it, the plan stops at this allowance. Absent: the plan price covers any usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overageRate

      Comparable.Builder overageRate(Double overageRate)

      For PAID_SUB with includedUnits: price per unit past the allowance, in USD. Absent: the plan stops at includedUnits (no overage).

      Parameters:
      overageRate - For PAID_SUB with includedUnits: price per unit past the allowance, in USD. Absent: the plan stops at includedUnits (no overage).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • quality

      Comparable.Builder quality(Double quality)

      How good it is compared with this app, where this app is 1.

      Parameters:
      quality - How good it is compared with this app, where this app is 1.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • features

      Comparable.Builder features(Map<String,Double> features)

      Its scores on the characteristics in features, instead of quality. Required when quality is absent.

      Parameters:
      features - Its scores on the characteristics in features, instead of quality. Required when quality is absent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.