public FirewallPolicy withStatelessRuleGroupReferences(StatelessRuleGroupReference... statelessRuleGroupReferences) {
        if (this.statelessRuleGroupReferences == null) {
            setStatelessRuleGroupReferences(new java.util.ArrayList<StatelessRuleGroupReference>(statelessRuleGroupReferences.length));
        }
        for (StatelessRuleGroupReference ele : statelessRuleGroupReferences) {
            this.statelessRuleGroupReferences.add(ele);
        }
        return this;
    }
<p>
References to the stateless rule groups that are used in the policy. These define the matching criteria in
stateless rules.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setStatelessRuleGroupReferences(java.util.Collection)} or
{@link #withStatelessRuleGroupReferences(java.util.Collection)} if you want to override the existing values.
</p>

@param statelessRuleGroupReferences
       References to the stateless rule groups that are used in the policy. These define the matching criteria in
       stateless rules.
@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/FirewallPolicy.java