public void setEntityTypes(java.util.Collection<EntityRecognizerMetadataEntityTypesListItem> entityTypes) {
        if (entityTypes == null) {
            this.entityTypes = null;
            return;
        }

        this.entityTypes = new java.util.ArrayList<EntityRecognizerMetadataEntityTypesListItem>(entityTypes);
    }
<p>
Entity types from the metadata of an entity recognizer.
</p>

@param entityTypes
       Entity types from the metadata of an entity recognizer.
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerMetadata.java