public ListRuleGroupsResult withRuleGroups(java.util.Collection<RuleGroupMetadata> ruleGroups) {
        setRuleGroups(ruleGroups);
        return this;
    }
<p>
The rule group metadata objects that you've defined. Depending on your setting for max results and the number of
rule groups, this might not be the full list.
</p>

@param ruleGroups
       The rule group metadata objects that you've defined. Depending on your setting for max results and the
       number of rule groups, this might not be the full list.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkfirewall/src/main/java/com/amazonaws/services/networkfirewall/model/ListRuleGroupsResult.java