public HttpMatch withHeaderMatches(java.util.Collection<HeaderMatch> headerMatches) {
        setHeaderMatches(headerMatches);
        return this;
    }
<p>
The header matches. Matches incoming requests with rule based on request header value before applying rule
action.
</p>

@param headerMatches
       The header matches. Matches incoming requests with rule based on request header value before applying rule
       action.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/HttpMatch.java