/** * A list of items that match the select expression. * * @param items * A list of items that match the select expression. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectResult withItems(java.util.Collection<Item> items) { setItems(items); return this; }
/** * A list of items that match the select expression. * <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 * A list of items that match the select expression. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectResult withItems(Item... items) { if (this.items == null) { setItems(new com.amazonaws.internal.SdkInternalList<Item>(items.length)); } for (Item ele : items) { this.items.add(ele); } return this; }
/** * A list of items that match the select expression. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param items A list of items that match the select expression. * * @return A reference to this updated object so that method calls can be chained * together. */ public SelectResult withItems(Item... items) { if (getItems() == null) setItems(new java.util.ArrayList<Item>(items.length)); for (Item value : items) { getItems().add(value); } return this; }
/** * A list of items that match the select expression. * * @param items * A list of items that match the select expression. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectResult withItems(java.util.Collection<Item> items) { setItems(items); return this; }
/** * A list of items that match the select expression. * <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 * A list of items that match the select expression. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectResult withItems(Item... items) { if (this.items == null) { setItems(new com.amazonaws.internal.SdkInternalList<Item>(items.length)); } for (Item ele : items) { this.items.add(ele); } return this; }