public GetBuiltinSlotTypesResult withSlotTypes(BuiltinSlotTypeMetadata... slotTypes) {
        if (this.slotTypes == null) {
            setSlotTypes(new java.util.ArrayList<BuiltinSlotTypeMetadata>(slotTypes.length));
        }
        for (BuiltinSlotTypeMetadata ele : slotTypes) {
            this.slotTypes.add(ele);
        }
        return this;
    }
<p>
An array of <code>BuiltInSlotTypeMetadata</code> objects, one entry for each slot type returned.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSlotTypes(java.util.Collection)} or {@link #withSlotTypes(java.util.Collection)} if you want to
override the existing values.
</p>

@param slotTypes
       An array of <code>BuiltInSlotTypeMetadata</code> objects, one entry for each slot type returned.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lexmodelbuilding/src/main/java/com/amazonaws/services/lexmodelbuilding/model/GetBuiltinSlotTypesResult.java