public ContentType getContentType() {
        return contentType;
    }
Gets the {@link ContentType} of the entity, may be null.

@return the {@link ContentType} of the entity, may be null.
httpclient5/src/main/java/org/apache/hc/client5/http/entity/EntityBuilder.java