public static interface UtilizationByTime.Builder extends CopyableBuilder<UtilizationByTime.Builder,UtilizationByTime>
Modifier and Type | Method and Description |
---|---|
UtilizationByTime.Builder |
groups(Collection<ReservationUtilizationGroup> groups)
The groups that are included in this utilization result.
|
UtilizationByTime.Builder |
groups(ReservationUtilizationGroup... groups)
The groups that are included in this utilization result.
|
default UtilizationByTime.Builder |
timePeriod(Consumer<DateInterval.Builder> timePeriod)
The period of time over which this utilization was used.
|
UtilizationByTime.Builder |
timePeriod(DateInterval timePeriod)
The period of time over which this utilization was used.
|
default UtilizationByTime.Builder |
total(Consumer<ReservationAggregates.Builder> total)
The total number of RI hours that were used.
|
UtilizationByTime.Builder |
total(ReservationAggregates total)
The total number of RI hours that were used.
|
copy
apply, build
UtilizationByTime.Builder timePeriod(DateInterval timePeriod)
The period of time over which this utilization was used.
timePeriod
- The period of time over which this utilization was used.default UtilizationByTime.Builder timePeriod(Consumer<DateInterval.Builder> timePeriod)
The period of time over which this utilization was used.
This is a convenience that creates an instance of theDateInterval.Builder
avoiding the need to
create one manually via DateInterval.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to timePeriod(DateInterval)
.timePeriod
- a consumer that will call methods on DateInterval.Builder
timePeriod(DateInterval)
UtilizationByTime.Builder groups(Collection<ReservationUtilizationGroup> groups)
The groups that are included in this utilization result.
groups
- The groups that are included in this utilization result.UtilizationByTime.Builder groups(ReservationUtilizationGroup... groups)
The groups that are included in this utilization result.
groups
- The groups that are included in this utilization result.UtilizationByTime.Builder total(ReservationAggregates total)
The total number of RI hours that were used.
total
- The total number of RI hours that were used.default UtilizationByTime.Builder total(Consumer<ReservationAggregates.Builder> total)
The total number of RI hours that were used.
This is a convenience that creates an instance of theReservationAggregates.Builder
avoiding the need
to create one manually via ReservationAggregates.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to total(ReservationAggregates)
.total
- a consumer that will call methods on ReservationAggregates.Builder
total(ReservationAggregates)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.