public OutputResources withAmis(Ami... amis) {
        if (this.amis == null) {
            setAmis(new java.util.ArrayList<Ami>(amis.length));
        }
        for (Ami ele : amis) {
            this.amis.add(ele);
        }
        return this;
    }
<p>
The Amazon EC2 AMIs created by this image.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAmis(java.util.Collection)} or {@link #withAmis(java.util.Collection)} if you want to override the
existing values.
</p>

@param amis
       The Amazon EC2 AMIs created by this image.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/OutputResources.java