Interface OpenSearchReservedInstances.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OpenSearchReservedInstances.Builder,
,OpenSearchReservedInstances> SdkBuilder<OpenSearchReservedInstances.Builder,
,OpenSearchReservedInstances> SdkPojo
- Enclosing class:
OpenSearchReservedInstances
@Mutable
@NotThreadSafe
public static interface OpenSearchReservedInstances.Builder
extends SdkPojo, CopyableBuilder<OpenSearchReservedInstances.Builder,OpenSearchReservedInstances>
-
Method Summary
Modifier and TypeMethodDescriptionconfiguration
(Consumer<OpenSearchReservedInstancesConfiguration.Builder> configuration) The OpenSearch reserved instances configuration used for recommendations.configuration
(OpenSearchReservedInstancesConfiguration configuration) The OpenSearch 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, sdkFieldNameToField, sdkFields
-
Method Details
-
configuration
OpenSearchReservedInstances.Builder configuration(OpenSearchReservedInstancesConfiguration configuration) The OpenSearch reserved instances configuration used for recommendations.
- Parameters:
configuration
- The OpenSearch reserved instances configuration used for recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default OpenSearchReservedInstances.Builder configuration(Consumer<OpenSearchReservedInstancesConfiguration.Builder> configuration) The OpenSearch reserved instances configuration used for recommendations.
This is a convenience method that creates an instance of theOpenSearchReservedInstancesConfiguration.Builder
avoiding the need to create one manually viaOpenSearchReservedInstancesConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(OpenSearchReservedInstancesConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onOpenSearchReservedInstancesConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
costCalculation
OpenSearchReservedInstances.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 OpenSearchReservedInstances.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:
-