code: public void setPlacementConstraints(java.util.Collection<TaskDefinitionPlacementConstraint> placementConstraints) {
          if (placementConstraints == null) {
              this.placementConstraints = null;
              return;
          }
  
          this.placementConstraints = new com.amazonaws.internal.SdkInternalList<TaskDefinitionPlacementConstraint>(placementConstraints);
      }
docs: <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.