Interface Ec2ReservedInstances.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Ec2ReservedInstances.Builder,,Ec2ReservedInstances> SdkBuilder<Ec2ReservedInstances.Builder,,Ec2ReservedInstances> SdkPojo
- Enclosing class:
Ec2ReservedInstances
public static interface Ec2ReservedInstances.Builder
extends SdkPojo, CopyableBuilder<Ec2ReservedInstances.Builder,Ec2ReservedInstances>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Ec2ReservedInstances.Builderconfiguration(Consumer<Ec2ReservedInstancesConfiguration.Builder> configuration) The EC2 reserved instances configuration used for recommendations.configuration(Ec2ReservedInstancesConfiguration configuration) The EC2 reserved instances configuration used for recommendations.default Ec2ReservedInstances.BuildercostCalculation(Consumer<ReservedInstancesCostCalculation.Builder> costCalculation) Cost impact of the purchase recommendation.costCalculation(ReservedInstancesCostCalculation costCalculation) Cost impact of the purchase recommendation.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
-
configuration
The EC2 reserved instances configuration used for recommendations.
- Parameters:
configuration- The EC2 reserved instances configuration used for recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default Ec2ReservedInstances.Builder configuration(Consumer<Ec2ReservedInstancesConfiguration.Builder> configuration) The EC2 reserved instances configuration used for recommendations.
This is a convenience method that creates an instance of theEc2ReservedInstancesConfiguration.Builderavoiding the need to create one manually viaEc2ReservedInstancesConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfiguration(Ec2ReservedInstancesConfiguration).- Parameters:
configuration- a consumer that will call methods onEc2ReservedInstancesConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
costCalculation
Cost impact of the purchase recommendation.
- Parameters:
costCalculation- Cost impact of the purchase recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
costCalculation
default Ec2ReservedInstances.Builder costCalculation(Consumer<ReservedInstancesCostCalculation.Builder> costCalculation) Cost impact of the purchase recommendation.
This is a convenience method that creates an instance of theReservedInstancesCostCalculation.Builderavoiding the need to create one manually viaReservedInstancesCostCalculation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocostCalculation(ReservedInstancesCostCalculation).- Parameters:
costCalculation- a consumer that will call methods onReservedInstancesCostCalculation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-