public DomainAssociation withSubDomains(java.util.Collection<SubDomain> subDomains) {
        setSubDomains(subDomains);
        return this;
    }
<p>
The subdomains for the domain association.
</p>

@param subDomains
       The subdomains for the domain association.
@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/DomainAssociation.java