Interface WarmPoolConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<WarmPoolConfiguration.Builder,,WarmPoolConfiguration> SdkBuilder<WarmPoolConfiguration.Builder,,WarmPoolConfiguration> SdkPojo
- Enclosing class:
WarmPoolConfiguration
@Mutable
@NotThreadSafe
public static interface WarmPoolConfiguration.Builder
extends SdkPojo, CopyableBuilder<WarmPoolConfiguration.Builder,WarmPoolConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault WarmPoolConfiguration.BuilderinstanceReusePolicy(Consumer<InstanceReusePolicy.Builder> instanceReusePolicy) The instance reuse policy.instanceReusePolicy(InstanceReusePolicy instanceReusePolicy) The instance reuse policy.maxGroupPreparedCapacity(Integer maxGroupPreparedCapacity) The maximum number of instances that are allowed to be in the warm pool or in any state exceptTerminatedfor the Auto Scaling group.The minimum number of instances to maintain in the warm pool.The instance state to transition to after the lifecycle actions are complete.poolState(WarmPoolState poolState) The instance state to transition to after the lifecycle actions are complete.The status of a warm pool that is marked for deletion.status(WarmPoolStatus status) The status of a warm pool that is marked for deletion.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
-
maxGroupPreparedCapacity
The maximum number of instances that are allowed to be in the warm pool or in any state except
Terminatedfor the Auto Scaling group.- Parameters:
maxGroupPreparedCapacity- The maximum number of instances that are allowed to be in the warm pool or in any state exceptTerminatedfor the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minSize
The minimum number of instances to maintain in the warm pool.
- Parameters:
minSize- The minimum number of instances to maintain in the warm pool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
poolState
The instance state to transition to after the lifecycle actions are complete.
- Parameters:
poolState- The instance state to transition to after the lifecycle actions are complete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
poolState
The instance state to transition to after the lifecycle actions are complete.
- Parameters:
poolState- The instance state to transition to after the lifecycle actions are complete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of a warm pool that is marked for deletion.
- Parameters:
status- The status of a warm pool that is marked for deletion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of a warm pool that is marked for deletion.
- Parameters:
status- The status of a warm pool that is marked for deletion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceReusePolicy
The instance reuse policy.
- Parameters:
instanceReusePolicy- The instance reuse policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceReusePolicy
default WarmPoolConfiguration.Builder instanceReusePolicy(Consumer<InstanceReusePolicy.Builder> instanceReusePolicy) The instance reuse policy.
This is a convenience method that creates an instance of theInstanceReusePolicy.Builderavoiding the need to create one manually viaInstanceReusePolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceReusePolicy(InstanceReusePolicy).- Parameters:
instanceReusePolicy- a consumer that will call methods onInstanceReusePolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-