public Instance withName(String name) {
        setName(name);
        return this;
    }
<p>
The name the user gave the instance (<code>Amazon_Linux_2023-1</code>).
</p>

@param name
       The name the user gave the instance (<code>Amazon_Linux_2023-1</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