public LightsailDistribution withAlternativeDomainNames(String... alternativeDomainNames) {
        if (this.alternativeDomainNames == null) {
            setAlternativeDomainNames(new java.util.ArrayList<String>(alternativeDomainNames.length));
        }
        for (String ele : alternativeDomainNames) {
            this.alternativeDomainNames.add(ele);
        }
        return this;
    }
<p>
The alternate domain names of the distribution.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAlternativeDomainNames(java.util.Collection)} or
{@link #withAlternativeDomainNames(java.util.Collection)} if you want to override the existing values.
</p>

@param alternativeDomainNames
       The alternate domain names of the distribution.
@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/LightsailDistribution.java