public ThingIndexingConfiguration withCustomFields(Field... customFields) {
        if (this.customFields == null) {
            setCustomFields(new java.util.ArrayList<Field>(customFields.length));
        }
        for (Field ele : customFields) {
            this.customFields.add(ele);
        }
        return this;
    }
<p>
Contains custom field names and their data type.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCustomFields(java.util.Collection)} or {@link #withCustomFields(java.util.Collection)} if you want to
override the existing values.
</p>

@param customFields
       Contains custom field names and their data type.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ThingIndexingConfiguration.java