Interface RedshiftReservedInstances.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RedshiftReservedInstances.Builder,
,RedshiftReservedInstances> SdkBuilder<RedshiftReservedInstances.Builder,
,RedshiftReservedInstances> SdkPojo
- Enclosing class:
RedshiftReservedInstances
public static interface RedshiftReservedInstances.Builder
extends SdkPojo, CopyableBuilder<RedshiftReservedInstances.Builder,RedshiftReservedInstances>
-
Method Summary
Modifier and TypeMethodDescriptionconfiguration
(Consumer<RedshiftReservedInstancesConfiguration.Builder> configuration) The Redshift reserved instances configuration used for recommendations.configuration
(RedshiftReservedInstancesConfiguration configuration) The Redshift reserved instances configuration used for recommendations.costCalculation
(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
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
-
configuration
RedshiftReservedInstances.Builder configuration(RedshiftReservedInstancesConfiguration configuration) The Redshift reserved instances configuration used for recommendations.
- Parameters:
configuration
- The Redshift reserved instances configuration used for recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default RedshiftReservedInstances.Builder configuration(Consumer<RedshiftReservedInstancesConfiguration.Builder> configuration) The Redshift reserved instances configuration used for recommendations.
This is a convenience method that creates an instance of theRedshiftReservedInstancesConfiguration.Builder
avoiding the need to create one manually viaRedshiftReservedInstancesConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(RedshiftReservedInstancesConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onRedshiftReservedInstancesConfiguration.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 RedshiftReservedInstances.Builder costCalculation(Consumer<ReservedInstancesCostCalculation.Builder> costCalculation) Cost impact of the purchase recommendation.
This is a convenience method that creates an instance of theReservedInstancesCostCalculation.Builder
avoiding the need to create one manually viaReservedInstancesCostCalculation.builder()
.When the
Consumer
completes,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:
-