Interface UtilizationByTime.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UtilizationByTime.Builder,
,UtilizationByTime> SdkBuilder<UtilizationByTime.Builder,
,UtilizationByTime> SdkPojo
- Enclosing class:
UtilizationByTime
-
Method Summary
Modifier and TypeMethodDescriptiongroups
(Collection<ReservationUtilizationGroup> groups) The groups that this utilization result uses.groups
(Consumer<ReservationUtilizationGroup.Builder>... groups) The groups that this utilization result uses.groups
(ReservationUtilizationGroup... groups) The groups that this utilization result uses.default UtilizationByTime.Builder
timePeriod
(Consumer<DateInterval.Builder> timePeriod) The period of time that this utilization was used for.timePeriod
(DateInterval timePeriod) The period of time that this utilization was used for.default UtilizationByTime.Builder
The total number of reservation hours that were used.total
(ReservationAggregates total) The total number of reservation hours that were used.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, sdkFieldNameToField, sdkFields
-
Method Details
-
timePeriod
The period of time that this utilization was used for.
- Parameters:
timePeriod
- The period of time that this utilization was used for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timePeriod
The period of time that this utilization was used for.
This is a convenience method that creates an instance of theDateInterval.Builder
avoiding the need to create one manually viaDateInterval.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimePeriod(DateInterval)
.- Parameters:
timePeriod
- a consumer that will call methods onDateInterval.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groups
The groups that this utilization result uses.
- Parameters:
groups
- The groups that this utilization result uses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The groups that this utilization result uses.
- Parameters:
groups
- The groups that this utilization result uses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The groups that this utilization result uses.
This is a convenience method that creates an instance of theReservationUtilizationGroup.Builder
avoiding the need to create one manually viaReservationUtilizationGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroups(List<ReservationUtilizationGroup>)
.- Parameters:
groups
- a consumer that will call methods onReservationUtilizationGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
total
The total number of reservation hours that were used.
- Parameters:
total
- The total number of reservation hours that were used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
total
The total number of reservation hours that were used.
This is a convenience method that creates an instance of theReservationAggregates.Builder
avoiding the need to create one manually viaReservationAggregates.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tototal(ReservationAggregates)
.- Parameters:
total
- a consumer that will call methods onReservationAggregates.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-