public UpdateRuleMetadataRequest withRule(Rule rule) {
        setRule(rule);
        return this;
    }
<p>
The rule to update.
</p>

@param rule
       The rule to update.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-frauddetector/src/main/java/com/amazonaws/services/frauddetector/model/UpdateRuleMetadataRequest.java