code: public void setInstances(java.util.Collection<InstanceEntry> instances) {
          if (instances == null) {
              this.instances = null;
              return;
          }
  
          this.instances = new java.util.ArrayList<InstanceEntry>(instances);
      }
docs: <p>
  An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance
  entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry
  in this array.
  </p>
  
  @param instances
  An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one
  instance entry at a time in this array. You will get an invalid parameter error if you pass more than one
  instance entry in this array.