Interface ReservedInstancesCostCalculation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReservedInstancesCostCalculation.Builder,
,ReservedInstancesCostCalculation> SdkBuilder<ReservedInstancesCostCalculation.Builder,
,ReservedInstancesCostCalculation> SdkPojo
- Enclosing class:
ReservedInstancesCostCalculation
public static interface ReservedInstancesCostCalculation.Builder
extends SdkPojo, CopyableBuilder<ReservedInstancesCostCalculation.Builder,ReservedInstancesCostCalculation>
-
Method Summary
Modifier and TypeMethodDescriptionpricing
(Consumer<ReservedInstancesPricing.Builder> pricing) Pricing details of the purchase recommendation.pricing
(ReservedInstancesPricing pricing) Pricing details of the purchase recommendation.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
-
pricing
Pricing details of the purchase recommendation.
- Parameters:
pricing
- Pricing details of the purchase recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pricing
default ReservedInstancesCostCalculation.Builder pricing(Consumer<ReservedInstancesPricing.Builder> pricing) Pricing details of the purchase recommendation.
This is a convenience method that creates an instance of theReservedInstancesPricing.Builder
avoiding the need to create one manually viaReservedInstancesPricing.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topricing(ReservedInstancesPricing)
.- Parameters:
pricing
- a consumer that will call methods onReservedInstancesPricing.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-