/** * Information about one or more images. * * <p><b>NOTE:</b> This method appends the values to the existing list (if any). Use {@link * #setImages(java.util.Collection)} or {@link #withImages(java.util.Collection)} if you want to * override the existing values. * * @param images Information about one or more images. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeImagesResult withImages(Image... images) { if (this.images == null) { setImages(new com.amazonaws.internal.SdkInternalList<Image>(images.length)); } for (Image ele : images) { this.images.add(ele); } return this; }
/** * Information about one or more images. * * @param images Information about one or more images. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeImagesResult withImages(java.util.Collection<Image> images) { setImages(images); return this; }