public CreateCertificateRequest withSubjectAlternativeNames(String... subjectAlternativeNames) {
        if (this.subjectAlternativeNames == null) {
            setSubjectAlternativeNames(new java.util.ArrayList<String>(subjectAlternativeNames.length));
        }
        for (String ele : subjectAlternativeNames) {
            this.subjectAlternativeNames.add(ele);
        }
        return this;
    }
<p>
An array of strings that specify the alternate domains (<code>example2.com</code>) and subdomains (
<code>blog.example.com</code>) for the certificate.
</p>
<p>
You can specify a maximum of nine alternate domains (in addition to the primary domain name).
</p>
<p>
Wildcard domain entries (<code>*.example.com</code>) are not supported.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSubjectAlternativeNames(java.util.Collection)} or
{@link #withSubjectAlternativeNames(java.util.Collection)} if you want to override the existing values.
</p>

@param subjectAlternativeNames
       An array of strings that specify the alternate domains (<code>example2.com</code>) and subdomains (
       <code>blog.example.com</code>) for the certificate.</p>
       <p>
       You can specify a maximum of nine alternate domains (in addition to the primary domain name).
       </p>
       <p>
       Wildcard domain entries (<code>*.example.com</code>) are not supported.
@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/CreateCertificateRequest.java