Interface OneTimePriceDefinition.Builder

  • Method Details

    • name

      A human-readable display name for the one-time price.

      Parameters:
      name - A human-readable display name for the one-time price.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • price

      The amount and currency charged for one purchase of the one-time price.

      Parameters:
      price - The amount and currency charged for one purchase of the one-time price.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • price

      The amount and currency charged for one purchase of the one-time price.

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

      The metric one purchase credits.

      Parameters:
      metricId - The metric one purchase credits.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacity

      The units of metricId one purchase credits.

      Parameters:
      capacity - The units of metricId one purchase credits.
      Returns:
      Returns a reference to this object so that method calls can be chained together.