public CompositeSlotTypeSetting withSubSlots(SubSlotTypeComposition... subSlots) {
        if (this.subSlots == null) {
            setSubSlots(new java.util.ArrayList<SubSlotTypeComposition>(subSlots.length));
        }
        for (SubSlotTypeComposition ele : subSlots) {
            this.subSlots.add(ele);
        }
        return this;
    }
<p>
Subslots in the composite slot.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSubSlots(java.util.Collection)} or {@link #withSubSlots(java.util.Collection)} if you want to override
the existing values.
</p>

@param subSlots
       Subslots in the composite slot.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lexmodelsv2/src/main/java/com/amazonaws/services/lexmodelsv2/model/CompositeSlotTypeSetting.java