public Instance withPrivateDns(String privateDns) {
        setPrivateDns(privateDns);
        return this;
    }
<p>
The instance's private DNS name.
</p>

@param privateDns
       The instance's private 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