code: public JobResource withEc2AmiResources(Ec2AmiResource... ec2AmiResources) {
          if (this.ec2AmiResources == null) {
              setEc2AmiResources(new java.util.ArrayList<Ec2AmiResource>(ec2AmiResources.length));
          }
          for (Ec2AmiResource ele : ec2AmiResources) {
              this.ec2AmiResources.add(ele);
          }
          return this;
      }
docs: <p>
  The Amazon Machine Images (AMIs) associated with this job.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setEc2AmiResources(java.util.Collection)} or {@link #withEc2AmiResources(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param ec2AmiResources
  The Amazon Machine Images (AMIs) associated with this job.
  @return Returns a reference to this object so that method calls can be chained together.