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.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
-
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
-