public HostEntry withHostname(String hostname) {
        setHostname(hostname);
        return this;
    }
<p>
The hostname to use in the <code>/etc/hosts</code> entry.
</p>

@param hostname
       The hostname to use in the <code>/etc/hosts</code> entry.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/HostEntry.java