Interface CapacityProviderScalingConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CapacityProviderScalingConfig.Builder,CapacityProviderScalingConfig>,SdkBuilder<CapacityProviderScalingConfig.Builder,CapacityProviderScalingConfig>,SdkPojo
- Enclosing class:
- CapacityProviderScalingConfig
@Mutable @NotThreadSafe public static interface CapacityProviderScalingConfig.Builder extends SdkPojo, CopyableBuilder<CapacityProviderScalingConfig.Builder,CapacityProviderScalingConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CapacityProviderScalingConfig.BuildermaxVCpuCount(Integer maxVCpuCount)The maximum number of vCPUs that the capacity provider can provision across all compute instances.CapacityProviderScalingConfig.BuilderscalingMode(String scalingMode)The scaling mode that determines how the capacity provider responds to changes in demand.CapacityProviderScalingConfig.BuilderscalingMode(CapacityProviderScalingMode scalingMode)The scaling mode that determines how the capacity provider responds to changes in demand.CapacityProviderScalingConfig.BuilderscalingPolicies(Collection<TargetTrackingScalingPolicy> scalingPolicies)A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.CapacityProviderScalingConfig.BuilderscalingPolicies(Consumer<TargetTrackingScalingPolicy.Builder>... scalingPolicies)A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.CapacityProviderScalingConfig.BuilderscalingPolicies(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
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 Detail
-
maxVCpuCount
CapacityProviderScalingConfig.Builder maxVCpuCount(Integer 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
CapacityProviderScalingConfig.Builder scalingMode(String 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:
CapacityProviderScalingMode,CapacityProviderScalingMode
-
scalingMode
CapacityProviderScalingConfig.Builder scalingMode(CapacityProviderScalingMode 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:
CapacityProviderScalingMode,CapacityProviderScalingMode
-
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 to#scalingPolicies(List.) - 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:
#scalingPolicies(java.util.Collection)
-
-