public CreateOrderRequest withLineItems(LineItemRequest... lineItems) {
        if (this.lineItems == null) {
            setLineItems(new java.util.ArrayList<LineItemRequest>(lineItems.length));
        }
        for (LineItemRequest ele : lineItems) {
            this.lineItems.add(ele);
        }
        return this;
    }
<p>
The line items that make up the order.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLineItems(java.util.Collection)} or {@link #withLineItems(java.util.Collection)} if you want to
override the existing values.
</p>

@param lineItems
       The line items that make up the order.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-outposts/src/main/java/com/amazonaws/services/outposts/model/CreateOrderRequest.java