public ListImageVersionsResult withImageVersions(ImageVersion... imageVersions) {
        if (this.imageVersions == null) {
            setImageVersions(new java.util.ArrayList<ImageVersion>(imageVersions.length));
        }
        for (ImageVersion ele : imageVersions) {
            this.imageVersions.add(ele);
        }
        return this;
    }
<p>
A list of versions and their properties.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setImageVersions(java.util.Collection)} or {@link #withImageVersions(java.util.Collection)} if you want
to override the existing values.
</p>

@param imageVersions
       A list of versions and their properties.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ListImageVersionsResult.java