public void setPlacementConstraints(java.util.Collection<TaskDefinitionPlacementConstraint> placementConstraints) {
        if (placementConstraints == null) {
            this.placementConstraints = null;
            return;
        }

        this.placementConstraints = new com.amazonaws.internal.SdkInternalList<TaskDefinitionPlacementConstraint>(placementConstraints);
    }
public void setPlacementConstraints ( java . util . Collection < TaskDefinitionPlacementConstraint > placementConstraints ) { if ( placementConstraints == null ) { this . placementConstraints = null ; return ; } this . placementConstraints = new com . amazonaws . internal . SdkInternalList < TaskDefinitionPlacementConstraint > ( placementConstraints ) ; }
<p>
An array of placement constraint objects to use for tasks. This field is not valid if you are using the Fargate
launch type for your task.
</p>

@param placementConstraints
An array of placement constraint objects to use for tasks. This field is not valid if you are using the
Fargate launch type for your task.