Interface CapacityProviderScalingConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CapacityProviderScalingConfig.Builder,,CapacityProviderScalingConfig> SdkBuilder<CapacityProviderScalingConfig.Builder,,CapacityProviderScalingConfig> SdkPojo
- Enclosing class:
CapacityProviderScalingConfig
-
Method Summary
Modifier and TypeMethodDescriptionmaxVCpuCount(Integer maxVCpuCount) The maximum number of vCPUs that the capacity provider can provision across all compute instances.scalingMode(String scalingMode) The scaling mode that determines how the capacity provider responds to changes in demand.scalingMode(CapacityProviderScalingMode scalingMode) The scaling mode that determines how the capacity provider responds to changes in demand.scalingPolicies(Collection<TargetTrackingScalingPolicy> scalingPolicies) A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.scalingPolicies(Consumer<TargetTrackingScalingPolicy.Builder>... scalingPolicies) A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.scalingPolicies(TargetTrackingScalingPolicy... scalingPolicies) A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.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
-
maxVCpuCount
The maximum number of vCPUs that the capacity provider can provision across all compute instances.
- Parameters:
maxVCpuCount- The maximum number of vCPUs that the capacity provider can provision across all compute instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingMode
The scaling mode that determines how the capacity provider responds to changes in demand.
- Parameters:
scalingMode- The scaling mode that determines how the capacity provider responds to changes in demand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scalingMode
The scaling mode that determines how the capacity provider responds to changes in demand.
- Parameters:
scalingMode- The scaling mode that determines how the capacity provider responds to changes in demand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scalingPolicies
CapacityProviderScalingConfig.Builder scalingPolicies(Collection<TargetTrackingScalingPolicy> scalingPolicies) A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.
- Parameters:
scalingPolicies- A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingPolicies
CapacityProviderScalingConfig.Builder scalingPolicies(TargetTrackingScalingPolicy... scalingPolicies) A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.
- Parameters:
scalingPolicies- A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingPolicies
CapacityProviderScalingConfig.Builder scalingPolicies(Consumer<TargetTrackingScalingPolicy.Builder>... scalingPolicies) A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.
This is a convenience method that creates an instance of theTargetTrackingScalingPolicy.Builderavoiding the need to create one manually viaTargetTrackingScalingPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscalingPolicies(List<TargetTrackingScalingPolicy>).- Parameters:
scalingPolicies- a consumer that will call methods onTargetTrackingScalingPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-