public AwsWafWebAclRule withExcludedRules(WafExcludedRule... excludedRules) {
        if (this.excludedRules == null) {
            setExcludedRules(new java.util.ArrayList<WafExcludedRule>(excludedRules.length));
        }
        for (WafExcludedRule ele : excludedRules) {
            this.excludedRules.add(ele);
        }
        return this;
    }
<p>
Rules to exclude from a rule group.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setExcludedRules(java.util.Collection)} or {@link #withExcludedRules(java.util.Collection)} if you want
to override the existing values.
</p>

@param excludedRules
       Rules to exclude from a rule group.
@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/AwsWafWebAclRule.java