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.BuildertimePeriod(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.BuilderThe 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaDateInterval.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaReservationUtilizationGroup.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaReservationAggregates.builder().When the
Consumercompletes,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:
-