public void setApiKeyRequired(Boolean apiKeyRequired) {
        this.apiKeyRequired = apiKeyRequired;
    }
<p>
A boolean flag specifying whether a valid ApiKey is required to invoke this method.
</p>

@param apiKeyRequired
       A boolean flag specifying whether a valid ApiKey is required to invoke this method.
aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/GetMethodResult.java