public void setHeaderMatches(java.util.Collection<HeaderMatch> headerMatches) {
        if (headerMatches == null) {
            this.headerMatches = null;
            return;
        }

        this.headerMatches = new java.util.ArrayList<HeaderMatch>(headerMatches);
    }
<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.
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/HttpMatch.java