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

@param apiKeyRequired
       Specifies whether the method required a valid ApiKey.
@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/PutMethodRequest.java