code: public void setInstances(java.util.Collection<String> instances) {
          if (instances == null) {
              this.instances = null;
              return;
          }
  
          this.instances = new java.util.ArrayList<String>(instances);
      }
docs: <p>
  An array that contains the IDs of all the instances that you want to get the health status for.
  </p>
  <p>
  If you omit <code>Instances</code>, AWS Cloud Map returns the health status for all the instances that are
  associated with the specified service.
  </p>
  <note>
  <p>
  To get the IDs for the instances that you've registered by using a specified service, submit a
  <a>ListInstances</a> request.
  </p>
  </note>
  
  @param instances
  An array that contains the IDs of all the instances that you want to get the health status for.</p>
  <p>
  If you omit <code>Instances</code>, AWS Cloud Map returns the health status for all the instances that are
  associated with the specified service.
  </p>
  <note>
  <p>
  To get the IDs for the instances that you've registered by using a specified service, submit a
  <a>ListInstances</a> request.
  </p>