Interface ElastiCacheReservedInstances.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ElastiCacheReservedInstances.Builder,,ElastiCacheReservedInstances> SdkBuilder<ElastiCacheReservedInstances.Builder,,ElastiCacheReservedInstances> SdkPojo
- Enclosing class:
ElastiCacheReservedInstances
public static interface ElastiCacheReservedInstances.Builder
extends SdkPojo, CopyableBuilder<ElastiCacheReservedInstances.Builder,ElastiCacheReservedInstances>
-
Method Summary
Modifier and TypeMethodDescriptionconfiguration(Consumer<ElastiCacheReservedInstancesConfiguration.Builder> configuration) The ElastiCache reserved instances configuration used for recommendations.configuration(ElastiCacheReservedInstancesConfiguration configuration) The ElastiCache 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
configuration
ElastiCacheReservedInstances.Builder configuration(ElastiCacheReservedInstancesConfiguration configuration) The ElastiCache reserved instances configuration used for recommendations.
- Parameters:
configuration- The ElastiCache reserved instances configuration used for recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default ElastiCacheReservedInstances.Builder configuration(Consumer<ElastiCacheReservedInstancesConfiguration.Builder> configuration) The ElastiCache reserved instances configuration used for recommendations.
This is a convenience method that creates an instance of theElastiCacheReservedInstancesConfiguration.Builderavoiding the need to create one manually viaElastiCacheReservedInstancesConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfiguration(ElastiCacheReservedInstancesConfiguration).- Parameters:
configuration- a consumer that will call methods onElastiCacheReservedInstancesConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
costCalculation
ElastiCacheReservedInstances.Builder costCalculation(ReservedInstancesCostCalculation 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 ElastiCacheReservedInstances.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:
-