public CreateInstancesRequest withAddOns(java.util.Collection<AddOnRequest> addOns) {
        setAddOns(addOns);
        return this;
    }
<p>
An array of objects representing the add-ons to enable for the new instance.
</p>

@param addOns
       An array of objects representing the add-ons to enable for the new instance.
@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/CreateInstancesRequest.java