public EntityRecognizerMetadata withEntityTypes(java.util.Collection<EntityRecognizerMetadataEntityTypesListItem> entityTypes) {
        setEntityTypes(entityTypes);
        return this;
    }
<p>
Entity types from the metadata of an entity recognizer.
</p>

@param entityTypes
       Entity types from the metadata of an entity recognizer.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/EntityRecognizerMetadata.java