public void setMethod(String method) {
        this.method = method;
    }
<p>
The HTTP verb of a method. It is a valid field for the API entity types of <code>METHOD</code>,
<code>PATH_PARAMETER</code>, <code>QUERY_PARAMETER</code>, <code>REQUEST_HEADER</code>, <code>REQUEST_BODY</code>, <code>RESPONSE</code>, <code>RESPONSE_HEADER</code>, and <code>RESPONSE_BODY</code>. The default value is
<code>*</code> for any method. When an applicable child entity inherits the content of an entity of the same type
with more general specifications of the other <code>location</code> attributes, the child entity's
<code>method</code> attribute must match that of the parent entity exactly.
</p>

@param method
       The HTTP verb of a method. It is a valid field for the API entity types of <code>METHOD</code>,
       <code>PATH_PARAMETER</code>, <code>QUERY_PARAMETER</code>, <code>REQUEST_HEADER</code>,
       <code>REQUEST_BODY</code>, <code>RESPONSE</code>, <code>RESPONSE_HEADER</code>, and
       <code>RESPONSE_BODY</code>. The default value is <code>*</code> for any method. When an applicable child
       entity inherits the content of an entity of the same type with more general specifications of the other
       <code>location</code> attributes, the child entity's <code>method</code> attribute must match that of the
       parent entity exactly.
aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/DocumentationPartLocation.java