public void setHosts(java.util.Collection<String> hosts) {
        if (hosts == null) {
            this.hosts = null;
            return;
        }

        this.hosts = new java.util.ArrayList<String>(hosts);
    }
<p>
Specifies the location of the LDAP server such as Directory Service for Microsoft Active Directory. Optional
failover server.
</p>

@param hosts
       Specifies the location of the LDAP server such as Directory Service for Microsoft Active Directory.
       Optional failover server.
aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/LdapServerMetadataInput.java