Interface EstimateByTime.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EstimateByTime.Builder,EstimateByTime>,SdkBuilder<EstimateByTime.Builder,EstimateByTime>,SdkPojo
- Enclosing class:
- EstimateByTime
public static interface EstimateByTime.Builder extends SdkPojo, CopyableBuilder<EstimateByTime.Builder,EstimateByTime>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EstimateByTime.Buildercurrency(String currency)The currency of the estimate in USD.EstimateByTime.Buildercurrency(Currency currency)The currency of the estimate in USD.EstimateByTime.BuilderpricingUnit(String pricingUnit)The unit of measurement that's used for the cost estimate.EstimateByTime.BuilderpricingUnit(PricingUnit pricingUnit)The unit of measurement that's used for the cost estimate.default EstimateByTime.BuildertimePeriod(Consumer<TimePeriod.Builder> timePeriod)The period of time, in days, that an estimate covers.EstimateByTime.BuildertimePeriod(TimePeriod timePeriod)The period of time, in days, that an estimate covers.EstimateByTime.Builderunit(Double unit)The number of pricing units used to calculate the total number of hours.EstimateByTime.BuilderusageCost(Double usageCost)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 Detail
-
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,PricingUnit
-
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:
PricingUnit,PricingUnit
-
unit
EstimateByTime.Builder unit(Double 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.
-
currency
EstimateByTime.Builder currency(Currency currency)
The currency of the estimate in USD.
-
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 theTimePeriod.Builderavoiding the need to create one manually viaTimePeriod.builder().When the
Consumercompletes,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:
timePeriod(TimePeriod)
-
-