public DescribeImagesResult withImageDetails(ImageDetail... imageDetails) {
        if (this.imageDetails == null) {
            setImageDetails(new java.util.ArrayList<ImageDetail>(imageDetails.length));
        }
        for (ImageDetail ele : imageDetails) {
            this.imageDetails.add(ele);
        }
        return this;
    }
<p>
A list of <a>ImageDetail</a> objects that contain data about the image.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setImageDetails(java.util.Collection)} or {@link #withImageDetails(java.util.Collection)} if you want to
override the existing values.
</p>

@param imageDetails
       A list of <a>ImageDetail</a> objects that contain data about the image.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecrpublic/src/main/java/com/amazonaws/services/ecrpublic/model/DescribeImagesResult.java