public List<String> getTypes() {
        return new ArrayList<>(types);
    }
For types see {@link TikaCoreProperties.EmbeddedResourceType}

@param types attachment types that should be deleted.
@throws TikaConfigException
tika-core/src/main/java/org/apache/tika/metadata/filter/ClearByAttachmentTypeMetadataFilter.java