public void setType(String type) {
        this.type = type;
    }
<p>
The type of constraint. Use <code>distinctInstance</code> to ensure that each task in a particular group is
running on a different container instance. Use <code>memberOf</code> to restrict the selection to a group of
valid candidates.
</p>

@param type
       The type of constraint. Use <code>distinctInstance</code> to ensure that each task in a particular group
       is running on a different container instance. Use <code>memberOf</code> to restrict the selection to a
       group of valid candidates.
@see PlacementConstraintType
aws-java-sdk-scheduler/src/main/java/com/amazonaws/services/scheduler/model/PlacementConstraint.java