public EntityBuilder setParameters(final List<NameValuePair> parameters) {
        clearContent();
        this.parameters = parameters;
        return this;
    }
Sets entity content as a parameter list. This method is mutually exclusive with
{@link #setText(String)},
{@link #setBinary(byte[])},
{@link #setStream(java.io.InputStream)},
{@link #setSerializable(java.io.Serializable)},
{@link #setFile(java.io.File)}.

@param parameters entity content as a parameter list.
@return this instance.
httpclient5/src/main/java/org/apache/hc/client5/http/entity/EntityBuilder.java