public HTTPRequest withHeaders(HTTPHeader... headers) {
        if (this.headers == null) {
            setHeaders(new java.util.ArrayList<HTTPHeader>(headers.length));
        }
        for (HTTPHeader ele : headers) {
            this.headers.add(ele);
        }
        return this;
    }
<p>
A complex type that contains two values for each header in the sampled web request: the name of the header and
the value of the header.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setHeaders(java.util.Collection)} or {@link #withHeaders(java.util.Collection)} if you want to override
the existing values.
</p>

@param headers
       A complex type that contains two values for each header in the sampled web request: the name of the header
       and the value of the header.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-waf/src/main/java/com/amazonaws/services/waf/model/HTTPRequest.java