Interface RateCardItem.Builder

  • Method Details

    • dimensionKey

      RateCardItem.Builder dimensionKey(String dimensionKey)

      The machine-readable key identifying the dimension being priced.

      Parameters:
      dimensionKey - The machine-readable key identifying the dimension being priced.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • displayName

      RateCardItem.Builder displayName(String displayName)

      The human-readable name of the dimension.

      Parameters:
      displayName - The human-readable name of the dimension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      RateCardItem.Builder description(String description)

      A description of the dimension being priced.

      Parameters:
      description - A description of the dimension being priced.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensionLabels

      RateCardItem.Builder dimensionLabels(Collection<DimensionLabel> dimensionLabels)

      Labels used to categorize this dimension, such as by region.

      Parameters:
      dimensionLabels - Labels used to categorize this dimension, such as by region.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensionLabels

      RateCardItem.Builder dimensionLabels(DimensionLabel... dimensionLabels)

      Labels used to categorize this dimension, such as by region.

      Parameters:
      dimensionLabels - Labels used to categorize this dimension, such as by region.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensionLabels

      RateCardItem.Builder dimensionLabels(Consumer<DimensionLabel.Builder>... dimensionLabels)

      Labels used to categorize this dimension, such as by region.

      This is a convenience method that creates an instance of the DimensionLabel.Builder avoiding the need to create one manually via DimensionLabel.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dimensionLabels(List<DimensionLabel>).

      Parameters:
      dimensionLabels - a consumer that will call methods on DimensionLabel.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • unit

      The unit of measurement for the dimension.

      Parameters:
      unit - The unit of measurement for the dimension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • price

      The price per unit for the dimension.

      Parameters:
      price - The price per unit for the dimension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.