Interface Coverage.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Coverage.Builder,,Coverage> SdkBuilder<Coverage.Builder,,Coverage> SdkPojo
- Enclosing class:
Coverage
-
Method Summary
Modifier and TypeMethodDescriptiondefault Coverage.BuildercoverageCost(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.BuildercoverageHours(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.BuildercoverageNormalizedUnits(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaCoverageHours.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaCoverageNormalizedUnits.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaCoverageCost.builder().When the
Consumercompletes,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:
-