public UpdateRulesetRequest withRules(java.util.Collection<Rule> rules) {
        setRules(rules);
        return this;
    }
<p>
A list of rules that are defined with the ruleset. A rule includes one or more checks to be validated on a
DataBrew dataset.
</p>

@param rules
       A list of rules that are defined with the ruleset. A rule includes one or more checks to be validated on a
       DataBrew dataset.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-gluedatabrew/src/main/java/com/amazonaws/services/gluedatabrew/model/UpdateRulesetRequest.java