public EcsParameters withPlacementConstraints(java.util.Collection<PlacementConstraint> placementConstraints) {
        setPlacementConstraints(placementConstraints);
        return this;
    }
<p>
An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task
(including constraints in the task definition and those specified at runtime).
</p>

@param placementConstraints
       An array of placement constraint objects to use for the task. You can specify up to 10 constraints per
       task (including constraints in the task definition and those specified at runtime).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/EcsParameters.java