public BatchGetCustomEntityTypesResult withCustomEntityTypes(CustomEntityType... customEntityTypes) {
        if (this.customEntityTypes == null) {
            setCustomEntityTypes(new java.util.ArrayList<CustomEntityType>(customEntityTypes.length));
        }
        for (CustomEntityType ele : customEntityTypes) {
            this.customEntityTypes.add(ele);
        }
        return this;
    }
<p>
A list of <code>CustomEntityType</code> objects representing the custom patterns that have been created.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCustomEntityTypes(java.util.Collection)} or {@link #withCustomEntityTypes(java.util.Collection)} if
you want to override the existing values.
</p>

@param customEntityTypes
       A list of <code>CustomEntityType</code> objects representing the custom patterns that have been created.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/BatchGetCustomEntityTypesResult.java