Class EcsEc2LaunchTargetOptions.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EcsEc2LaunchTargetOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcsEc2LaunchTargetOptions>
- Enclosing interface:
EcsEc2LaunchTargetOptions
@Stability(Stable)
public static final class EcsEc2LaunchTargetOptions.Builder
extends Object
implements software.amazon.jsii.Builder<EcsEc2LaunchTargetOptions>
A builder for
EcsEc2LaunchTargetOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityProviderOptions(CapacityProviderOptions capacityProviderOptions) Sets the value ofEcsEc2LaunchTargetOptions.getCapacityProviderOptions()placementConstraints(List<? extends PlacementConstraint> placementConstraints) Sets the value ofEcsEc2LaunchTargetOptions.getPlacementConstraints()placementStrategies(List<? extends PlacementStrategy> placementStrategies) Sets the value ofEcsEc2LaunchTargetOptions.getPlacementStrategies()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityProviderOptions
@Stability(Stable) public EcsEc2LaunchTargetOptions.Builder capacityProviderOptions(CapacityProviderOptions capacityProviderOptions) Sets the value ofEcsEc2LaunchTargetOptions.getCapacityProviderOptions()- Parameters:
capacityProviderOptions- The capacity provider options to use for the task. This property allows you to set the capacity provider strategy for the task.If you want to set the capacity provider strategy for the task, specify
CapacityProviderOptions.custom().If you want to use the cluster's default capacity provider strategy, specify
CapacityProviderOptions.default().- Returns:
this
-
placementConstraints
@Stability(Stable) public EcsEc2LaunchTargetOptions.Builder placementConstraints(List<? extends PlacementConstraint> placementConstraints) Sets the value ofEcsEc2LaunchTargetOptions.getPlacementConstraints()- Parameters:
placementConstraints- Placement constraints.- Returns:
this
-
placementStrategies
@Stability(Stable) public EcsEc2LaunchTargetOptions.Builder placementStrategies(List<? extends PlacementStrategy> placementStrategies) Sets the value ofEcsEc2LaunchTargetOptions.getPlacementStrategies()- Parameters:
placementStrategies- Placement strategies.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EcsEc2LaunchTargetOptions>- Returns:
- a new instance of
EcsEc2LaunchTargetOptions - Throws:
NullPointerException- if any required attribute was not provided
-