public ListArchiveRulesResult withArchiveRules(ArchiveRuleSummary... archiveRules) {
        if (this.archiveRules == null) {
            setArchiveRules(new java.util.ArrayList<ArchiveRuleSummary>(archiveRules.length));
        }
        for (ArchiveRuleSummary ele : archiveRules) {
            this.archiveRules.add(ele);
        }
        return this;
    }
<p>
A list of archive rules created for the specified analyzer.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setArchiveRules(java.util.Collection)} or {@link #withArchiveRules(java.util.Collection)} if you want to
override the existing values.
</p>

@param archiveRules
       A list of archive rules created for the specified analyzer.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/ListArchiveRulesResult.java