public void setApiKeyRequired(Boolean apiKeyRequired) {
        this.apiKeyRequired = apiKeyRequired;
    }
<p>
Specifies whether the method required a valid ApiKey.
</p>

@param apiKeyRequired
       Specifies whether the method required a valid ApiKey.
aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/PutMethodRequest.java