public ListRuleGroupsRequest withScope(ResourceManagedStatus scope) {
        this.scope = scope.toString();
        return this;
    }
<p>
The scope of the request. The default setting of <code>ACCOUNT</code> or a setting of <code>NULL</code> returns
all of the rule groups in your account. A setting of <code>MANAGED</code> returns all available managed rule
groups.
</p>

@param scope
       The scope of the request. The default setting of <code>ACCOUNT</code> or a setting of <code>NULL</code>
       returns all of the rule groups in your account. A setting of <code>MANAGED</code> returns all available
       managed rule groups.
@return Returns a reference to this object so that method calls can be chained together.
@see ResourceManagedStatus
aws-java-sdk-networkfirewall/src/main/java/com/amazonaws/services/networkfirewall/model/ListRuleGroupsRequest.java