public LdapServerMetadataInput withHosts(java.util.Collection<String> hosts) {
        setHosts(hosts);
        return this;
    }
<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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/LdapServerMetadataInput.java