Interface EstimateByTime.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EstimateByTime.Builder,
,EstimateByTime> SdkBuilder<EstimateByTime.Builder,
,EstimateByTime> SdkPojo
- Enclosing class:
EstimateByTime
-
Method Summary
Modifier and TypeMethodDescriptionThe currency of the estimate in USD.The currency of the estimate in USD.pricingUnit
(String pricingUnit) The unit of measurement that's used for the cost estimate.pricingUnit
(PricingUnit pricingUnit) The unit of measurement that's used for the cost estimate.default EstimateByTime.Builder
timePeriod
(Consumer<TimePeriod.Builder> timePeriod) The period of time, in days, that an estimate covers.timePeriod
(TimePeriod timePeriod) The period of time, in days, that an estimate covers.The number of pricing units used to calculate the total number of hours.The amount of cost or usage that's measured for the cost estimate.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
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
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
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 theTimePeriod.Builder
avoiding the need to create one manually viaTimePeriod.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimePeriod(TimePeriod)
.- Parameters:
timePeriod
- a consumer that will call methods onTimePeriod.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-