Interface UnitPrice.Builder

  • Method Details

    • actionName

      UnitPrice.Builder actionName(String actionName)
      Sets the value of the ActionName property for this object.
      Parameters:
      actionName - The new value for the ActionName property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • price

      UnitPrice.Builder price(Price price)

      The price per use.

      Parameters:
      price - The price per use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • price

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

      The price per use.

      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: