public GetDomainsResult withDomains(Domain... domains) {
        if (this.domains == null) {
            setDomains(new java.util.ArrayList<Domain>(domains.length));
        }
        for (Domain ele : domains) {
            this.domains.add(ele);
        }
        return this;
    }
<p>
An array of key-value pairs containing information about each of the domain entries in the user's account.
</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
       An array of key-value pairs containing information about each of the domain entries in the user's account.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetDomainsResult.java