public PutInventoryRequest withItems(InventoryItem... items) {
        if (this.items == null) {
            setItems(new com.amazonaws.internal.SdkInternalList<InventoryItem>(items.length));
        }
        for (InventoryItem ele : items) {
            this.items.add(ele);
        }
        return this;
    }
<p>
The inventory items that you want to add or update on managed nodes.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setItems(java.util.Collection)} or {@link #withItems(java.util.Collection)} if you want to override the
existing values.
</p>

@param items
       The inventory items that you want to add or update on managed nodes.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/PutInventoryRequest.java