public HttpMatch withMethod(String method) {
        setMethod(method);
        return this;
    }
<p>
The HTTP method type.
</p>

@param method
       The HTTP method type.
@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