Interface EstimateByTime.Builder

  • Method Details

    • usageCost

      EstimateByTime.Builder usageCost(Double usageCost)

      The amount of cost or usage that's measured for the cost estimate.

      Parameters:
      usageCost - The amount of cost or usage that's measured for the cost estimate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pricingUnit

      EstimateByTime.Builder pricingUnit(String pricingUnit)

      The unit of measurement that's used for the cost estimate.

      Parameters:
      pricingUnit - The unit of measurement that's used for the cost estimate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • pricingUnit

      EstimateByTime.Builder pricingUnit(PricingUnit pricingUnit)

      The unit of measurement that's used for the cost estimate.

      Parameters:
      pricingUnit - The unit of measurement that's used for the cost estimate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • unit

      The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1 hour.

      Parameters:
      unit - The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1 hour.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currency

      EstimateByTime.Builder currency(String currency)

      The currency of the estimate in USD.

      Parameters:
      currency - The currency of the estimate in USD.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currency

      EstimateByTime.Builder currency(Currency currency)

      The currency of the estimate in USD.

      Parameters:
      currency - The currency of the estimate in USD.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timePeriod

      EstimateByTime.Builder timePeriod(TimePeriod timePeriod)

      The period of time, in days, that an estimate covers. The period has a start date and an end date. The start date must come before the end date.

      Parameters:
      timePeriod - The period of time, in days, that an estimate covers. The period has a start date and an end date. The start date must come before the end date.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timePeriod

      default EstimateByTime.Builder timePeriod(Consumer<TimePeriod.Builder> timePeriod)

      The period of time, in days, that an estimate covers. The period has a start date and an end date. The start date must come before the end date.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to timePeriod(TimePeriod).

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