public static interface CoverageByTime.Builder extends SdkPojo, CopyableBuilder<CoverageByTime.Builder,CoverageByTime>
Modifier and Type | Method and Description |
---|---|
CoverageByTime.Builder |
groups(Collection<ReservationCoverageGroup> groups)
The groups of instances that are covered by a reservation.
|
CoverageByTime.Builder |
groups(Consumer<ReservationCoverageGroup.Builder>... groups)
The groups of instances that are covered by a reservation.
|
CoverageByTime.Builder |
groups(ReservationCoverageGroup... groups)
The groups of instances that are covered by a reservation.
|
default CoverageByTime.Builder |
timePeriod(Consumer<DateInterval.Builder> timePeriod)
The period over which this coverage was used.
|
CoverageByTime.Builder |
timePeriod(DateInterval timePeriod)
The period over which this coverage was used.
|
default CoverageByTime.Builder |
total(Consumer<Coverage.Builder> total)
The total reservation coverage, in hours.
|
CoverageByTime.Builder |
total(Coverage total)
The total reservation coverage, in hours.
|
copy
applyMutation, build
CoverageByTime.Builder timePeriod(DateInterval timePeriod)
The period over which this coverage was used.
timePeriod
- The period over which this coverage was used.default CoverageByTime.Builder timePeriod(Consumer<DateInterval.Builder> timePeriod)
The period over which this coverage 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)
CoverageByTime.Builder groups(Collection<ReservationCoverageGroup> groups)
The groups of instances that are covered by a reservation.
groups
- The groups of instances that are covered by a reservation.CoverageByTime.Builder groups(ReservationCoverageGroup... groups)
The groups of instances that are covered by a reservation.
groups
- The groups of instances that are covered by a reservation.CoverageByTime.Builder groups(Consumer<ReservationCoverageGroup.Builder>... groups)
The groups of instances that are covered by a reservation.
This is a convenience that creates an instance of theList.Builder
avoiding
the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #groups(List)
.groups
- a consumer that will call methods on List.Builder
#groups(List)
CoverageByTime.Builder total(Coverage total)
The total reservation coverage, in hours.
total
- The total reservation coverage, in hours.default CoverageByTime.Builder total(Consumer<Coverage.Builder> total)
The total reservation coverage, in hours.
This is a convenience that creates an instance of theCoverage.Builder
avoiding the need to create
one manually via Coverage.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to total(Coverage)
.total
- a consumer that will call methods on Coverage.Builder
total(Coverage)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.