Interface ManagedScalingPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ManagedScalingPolicy.Builder,
,ManagedScalingPolicy> SdkBuilder<ManagedScalingPolicy.Builder,
,ManagedScalingPolicy> SdkPojo
- Enclosing class:
ManagedScalingPolicy
public static interface ManagedScalingPolicy.Builder
extends SdkPojo, CopyableBuilder<ManagedScalingPolicy.Builder,ManagedScalingPolicy>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ManagedScalingPolicy.Builder
computeLimits
(Consumer<ComputeLimits.Builder> computeLimits) The Amazon EC2 unit limits for a managed scaling policy.computeLimits
(ComputeLimits computeLimits) The Amazon EC2 unit limits for a managed scaling policy.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, sdkFields
-
Method Details
-
computeLimits
The Amazon EC2 unit limits for a managed scaling policy. The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
- Parameters:
computeLimits
- The Amazon EC2 unit limits for a managed scaling policy. The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computeLimits
The Amazon EC2 unit limits for a managed scaling policy. The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
This is a convenience method that creates an instance of theComputeLimits.Builder
avoiding the need to create one manually viaComputeLimits.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocomputeLimits(ComputeLimits)
.- Parameters:
computeLimits
- a consumer that will call methods onComputeLimits.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-