Interface ProductionVariantManagedInstanceScaling.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ProductionVariantManagedInstanceScaling.Builder,,ProductionVariantManagedInstanceScaling> SdkBuilder<ProductionVariantManagedInstanceScaling.Builder,,ProductionVariantManagedInstanceScaling> SdkPojo
- Enclosing class:
ProductionVariantManagedInstanceScaling
@Mutable
@NotThreadSafe
public static interface ProductionVariantManagedInstanceScaling.Builder
extends SdkPojo, CopyableBuilder<ProductionVariantManagedInstanceScaling.Builder,ProductionVariantManagedInstanceScaling>
-
Method Summary
Modifier and TypeMethodDescriptionmaxInstanceCount(Integer maxInstanceCount) The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in traffic.minInstanceCount(Integer minInstanceCount) The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in traffic.Configures the scale-in behavior for managed instance scaling.Configures the scale-in behavior for managed instance scaling.Indicates whether managed instance scaling is enabled.status(ManagedInstanceScalingStatus status) Indicates whether managed instance scaling is enabled.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
-
status
Indicates whether managed instance scaling is enabled.
- Parameters:
status- Indicates whether managed instance scaling is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Indicates whether managed instance scaling is enabled.
- Parameters:
status- Indicates whether managed instance scaling is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
minInstanceCount
The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in traffic.
- Parameters:
minInstanceCount- The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxInstanceCount
The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in traffic.
- Parameters:
maxInstanceCount- The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scaleInPolicy
ProductionVariantManagedInstanceScaling.Builder scaleInPolicy(ProductionVariantManagedInstanceScalingScaleInPolicy scaleInPolicy) Configures the scale-in behavior for managed instance scaling.
- Parameters:
scaleInPolicy- Configures the scale-in behavior for managed instance scaling.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scaleInPolicy
default ProductionVariantManagedInstanceScaling.Builder scaleInPolicy(Consumer<ProductionVariantManagedInstanceScalingScaleInPolicy.Builder> scaleInPolicy) Configures the scale-in behavior for managed instance scaling.
This is a convenience method that creates an instance of theProductionVariantManagedInstanceScalingScaleInPolicy.Builderavoiding the need to create one manually viaProductionVariantManagedInstanceScalingScaleInPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscaleInPolicy(ProductionVariantManagedInstanceScalingScaleInPolicy).- Parameters:
scaleInPolicy- a consumer that will call methods onProductionVariantManagedInstanceScalingScaleInPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-