Interface CoverageByTime.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CoverageByTime.Builder,
,CoverageByTime> SdkBuilder<CoverageByTime.Builder,
,CoverageByTime> SdkPojo
- Enclosing class:
CoverageByTime
@Mutable
@NotThreadSafe
public static interface CoverageByTime.Builder
extends SdkPojo, CopyableBuilder<CoverageByTime.Builder,CoverageByTime>
-
Method Summary
Modifier and TypeMethodDescriptiongroups
(Collection<ReservationCoverageGroup> groups) The groups of instances that the reservation covered.groups
(Consumer<ReservationCoverageGroup.Builder>... groups) The groups of instances that the reservation covered.groups
(ReservationCoverageGroup... groups) The groups of instances that the reservation covered.default CoverageByTime.Builder
timePeriod
(Consumer<DateInterval.Builder> timePeriod) The period that this coverage was used over.timePeriod
(DateInterval timePeriod) The period that this coverage was used over.default CoverageByTime.Builder
total
(Consumer<Coverage.Builder> total) The total reservation coverage, in hours.The total reservation coverage, in hours.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 that this coverage was used over.
- Parameters:
timePeriod
- The period that this coverage was used over.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timePeriod
The period that this coverage was used over.
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 of instances that the reservation covered.
- Parameters:
groups
- The groups of instances that the reservation covered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The groups of instances that the reservation covered.
- Parameters:
groups
- The groups of instances that the reservation covered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The groups of instances that the reservation covered.
This is a convenience method that creates an instance of theReservationCoverageGroup.Builder
avoiding the need to create one manually viaReservationCoverageGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroups(List<ReservationCoverageGroup>)
.- Parameters:
groups
- a consumer that will call methods onReservationCoverageGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
total
The total reservation coverage, in hours.
- Parameters:
total
- The total reservation coverage, in hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
total
The total reservation coverage, in hours.
This is a convenience method that creates an instance of theCoverage.Builder
avoiding the need to create one manually viaCoverage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tototal(Coverage)
.- Parameters:
total
- a consumer that will call methods onCoverage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-