public Instance withPublicDns(String publicDns) {
        setPublicDns(publicDns);
        return this;
    }
<p>
The instance public DNS name.
</p>

@param publicDns
       The instance public DNS name.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/Instance.java