public UpdateDomainAssociationRequest withAutoSubDomainCreationPatterns(String... autoSubDomainCreationPatterns) {
        if (this.autoSubDomainCreationPatterns == null) {
            setAutoSubDomainCreationPatterns(new java.util.ArrayList<String>(autoSubDomainCreationPatterns.length));
        }
        for (String ele : autoSubDomainCreationPatterns) {
            this.autoSubDomainCreationPatterns.add(ele);
        }
        return this;
    }
<p>
Sets the branch patterns for automatic subdomain creation.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAutoSubDomainCreationPatterns(java.util.Collection)} or
{@link #withAutoSubDomainCreationPatterns(java.util.Collection)} if you want to override the existing values.
</p>

@param autoSubDomainCreationPatterns
       Sets the branch patterns for automatic subdomain creation.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-amplify/src/main/java/com/amazonaws/services/amplify/model/UpdateDomainAssociationRequest.java