public HIT withMaxAssignments(Integer maxAssignments) {
        setMaxAssignments(maxAssignments);
        return this;
    }
<p>
The number of times the HIT can be accepted and completed before the HIT becomes unavailable.
</p>

@param maxAssignments
       The number of times the HIT can be accepted and completed before the HIT becomes unavailable.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mechanicalturkrequester/src/main/java/com/amazonaws/services/mturk/model/HIT.java