public Compute withDnsName(String dnsName) {
        setDnsName(dnsName);
        return this;
    }
<p>
The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
</p>

@param dnsName
       The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/Compute.java