Interface CoverageByTime.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CoverageByTime.Builder,CoverageByTime>,SdkBuilder<CoverageByTime.Builder,CoverageByTime>,SdkPojo
- Enclosing class:
- CoverageByTime
public static interface CoverageByTime.Builder extends SdkPojo, CopyableBuilder<CoverageByTime.Builder,CoverageByTime>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CoverageByTime.Buildergroups(Collection<ReservationCoverageGroup> groups)The groups of instances that the reservation covered.CoverageByTime.Buildergroups(Consumer<ReservationCoverageGroup.Builder>... groups)The groups of instances that the reservation covered.CoverageByTime.Buildergroups(ReservationCoverageGroup... groups)The groups of instances that the reservation covered.default CoverageByTime.BuildertimePeriod(Consumer<DateInterval.Builder> timePeriod)The period that this coverage was used over.CoverageByTime.BuildertimePeriod(DateInterval timePeriod)The period that this coverage was used over.default CoverageByTime.Buildertotal(Consumer<Coverage.Builder> total)The total reservation coverage, in hours.CoverageByTime.Buildertotal(Coverage total)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, sdkFields
-
-
-
-
Method Detail
-
timePeriod
CoverageByTime.Builder timePeriod(DateInterval 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
default CoverageByTime.Builder timePeriod(Consumer<DateInterval.Builder> timePeriod)
The period that this coverage was used over.
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:
timePeriod(DateInterval)
-
groups
CoverageByTime.Builder groups(Collection<ReservationCoverageGroup> 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
CoverageByTime.Builder groups(ReservationCoverageGroup... 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
CoverageByTime.Builder groups(Consumer<ReservationCoverageGroup.Builder>... groups)
The groups of instances that the reservation covered.
This is a convenience method that creates an instance of theReservationCoverageGroup.Builderavoiding the need to create one manually viaReservationCoverageGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#groups(List.) - 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:
#groups(java.util.Collection)
-
total
CoverageByTime.Builder total(Coverage 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
default CoverageByTime.Builder total(Consumer<Coverage.Builder> total)
The total reservation coverage, in hours.
This is a convenience method that creates an instance of theCoverage.Builderavoiding the need to create one manually viaCoverage.builder().When the
Consumercompletes,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:
total(Coverage)
-
-