public GetMethodResult withApiKeyRequired(Boolean apiKeyRequired) {
        setApiKeyRequired(apiKeyRequired);
        return this;
    }
<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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/GetMethodResult.java