public CreateServiceResult withDnsEntry(DnsEntry dnsEntry) {
        setDnsEntry(dnsEntry);
        return this;
    }
<p>
The public DNS name of the service.
</p>

@param dnsEntry
       The public DNS name of the service.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/CreateServiceResult.java