public Instance withUsername(String username) {
        setUsername(username);
        return this;
    }
<p>
The user name for connecting to the instance (<code>ec2-user</code>).
</p>

@param username
       The user name for connecting to the instance (<code>ec2-user</code>).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/Instance.java