public SlotSummary withSlotConstraint(SlotConstraint slotConstraint) {
        this.slotConstraint = slotConstraint.toString();
        return this;
    }
<p>
Whether the slot is required or optional. An intent is complete when all required slots are filled.
</p>

@param slotConstraint
       Whether the slot is required or optional. An intent is complete when all required slots are filled.
@return Returns a reference to this object so that method calls can be chained together.
@see SlotConstraint
aws-java-sdk-lexmodelsv2/src/main/java/com/amazonaws/services/lexmodelsv2/model/SlotSummary.java