@Deprecated
    public DnsConfig withNamespaceId(String namespaceId) {
        setNamespaceId(namespaceId);
        return this;
    }
<p>
<i>Use NamespaceId in <a href="https://docs.aws.amazon.com/cloud-map/latest/api/API_Service.html">Service</a>
instead.</i>
</p>
<p>
The ID of the namespace to use for DNS configuration.
</p>

@param namespaceId
       <i>Use NamespaceId in <a
       href="https://docs.aws.amazon.com/cloud-map/latest/api/API_Service.html">Service</a> instead.</i> </p>
       <p>
       The ID of the namespace to use for DNS configuration.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-servicediscovery/src/main/java/com/amazonaws/services/servicediscovery/model/DnsConfig.java