public BatchGetImageRequest withImageIds(ImageIdentifier... imageIds) {
        if (this.imageIds == null) {
            setImageIds(new java.util.ArrayList<ImageIdentifier>(imageIds.length));
        }
        for (ImageIdentifier ele : imageIds) {
            this.imageIds.add(ele);
        }
        return this;
    }
<p>
A list of image ID references that correspond to images to describe. The format of the <code>imageIds</code>
reference is <code>imageTag=tag</code> or <code>imageDigest=digest</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setImageIds(java.util.Collection)} or {@link #withImageIds(java.util.Collection)} if you want to override
the existing values.
</p>

@param imageIds
       A list of image ID references that correspond to images to describe. The format of the
       <code>imageIds</code> reference is <code>imageTag=tag</code> or <code>imageDigest=digest</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/BatchGetImageRequest.java