public ListFirewallDomainsResult withDomains(String... domains) {
        if (this.domains == null) {
            setDomains(new java.util.ArrayList<String>(domains.length));
        }
        for (String ele : domains) {
            this.domains.add(ele);
        }
        return this;
    }
<p>
A list of the domains in the firewall domain list.
</p>
<p>
This might be a partial list of the domains that you've defined in the domain list. For information, see
<code>MaxResults</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDomains(java.util.Collection)} or {@link #withDomains(java.util.Collection)} if you want to override
the existing values.
</p>

@param domains
       A list of the domains in the firewall domain list. </p>
       <p>
       This might be a partial list of the domains that you've defined in the domain list. For information, see
       <code>MaxResults</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-route53resolver/src/main/java/com/amazonaws/services/route53resolver/model/ListFirewallDomainsResult.java