public FirewallPolicyDetails withStatefulRuleGroupReferences(FirewallPolicyStatefulRuleGroupReferencesDetails... statefulRuleGroupReferences) {
        if (this.statefulRuleGroupReferences == null) {
            setStatefulRuleGroupReferences(new java.util.ArrayList<FirewallPolicyStatefulRuleGroupReferencesDetails>(statefulRuleGroupReferences.length));
        }
        for (FirewallPolicyStatefulRuleGroupReferencesDetails ele : statefulRuleGroupReferences) {
            this.statefulRuleGroupReferences.add(ele);
        }
        return this;
    }
<p>
The stateful rule groups that are used in the firewall policy.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setStatefulRuleGroupReferences(java.util.Collection)} or
{@link #withStatefulRuleGroupReferences(java.util.Collection)} if you want to override the existing values.
</p>

@param statefulRuleGroupReferences
       The stateful rule groups that are used in the firewall policy.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/FirewallPolicyDetails.java