Interface Coverage.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Coverage.Builder,
,Coverage> SdkBuilder<Coverage.Builder,
,Coverage> SdkPojo
- Enclosing class:
Coverage
-
Method Summary
Modifier and TypeMethodDescriptiondefault Coverage.Builder
coverageCost
(Consumer<CoverageCost.Builder> coverageCost) The amount of cost that the reservation covered.coverageCost
(CoverageCost coverageCost) The amount of cost that the reservation covered.default Coverage.Builder
coverageHours
(Consumer<CoverageHours.Builder> coverageHours) The amount of instance usage that the reservation covered, in hours.coverageHours
(CoverageHours coverageHours) The amount of instance usage that the reservation covered, in hours.default Coverage.Builder
coverageNormalizedUnits
(Consumer<CoverageNormalizedUnits.Builder> coverageNormalizedUnits) The amount of instance usage that the reservation covered, in normalized units.coverageNormalizedUnits
(CoverageNormalizedUnits coverageNormalizedUnits) The amount of instance usage that the reservation covered, in normalized units.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 Details
-
coverageHours
The amount of instance usage that the reservation covered, in hours.
- Parameters:
coverageHours
- The amount of instance usage that the reservation covered, in hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
coverageHours
The amount of instance usage that the reservation covered, in hours.
This is a convenience method that creates an instance of theCoverageHours.Builder
avoiding the need to create one manually viaCoverageHours.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocoverageHours(CoverageHours)
.- Parameters:
coverageHours
- a consumer that will call methods onCoverageHours.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
coverageNormalizedUnits
The amount of instance usage that the reservation covered, in normalized units.
- Parameters:
coverageNormalizedUnits
- The amount of instance usage that the reservation covered, in normalized units.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
coverageNormalizedUnits
default Coverage.Builder coverageNormalizedUnits(Consumer<CoverageNormalizedUnits.Builder> coverageNormalizedUnits) The amount of instance usage that the reservation covered, in normalized units.
This is a convenience method that creates an instance of theCoverageNormalizedUnits.Builder
avoiding the need to create one manually viaCoverageNormalizedUnits.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocoverageNormalizedUnits(CoverageNormalizedUnits)
.- Parameters:
coverageNormalizedUnits
- a consumer that will call methods onCoverageNormalizedUnits.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
coverageCost
The amount of cost that the reservation covered.
- Parameters:
coverageCost
- The amount of cost that the reservation covered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
coverageCost
The amount of cost that the reservation covered.
This is a convenience method that creates an instance of theCoverageCost.Builder
avoiding the need to create one manually viaCoverageCost.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocoverageCost(CoverageCost)
.- Parameters:
coverageCost
- a consumer that will call methods onCoverageCost.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-