code: public CreateTaskSetRequest withServiceRegistries(ServiceRegistry... serviceRegistries) {
          if (this.serviceRegistries == null) {
              setServiceRegistries(new com.amazonaws.internal.SdkInternalList<ServiceRegistry>(serviceRegistries.length));
          }
          for (ServiceRegistry ele : serviceRegistries) {
              this.serviceRegistries.add(ele);
          }
          return this;
      }
docs: <p>
  The details of the service discovery registries to assign to this task set. For more information, see <a
  href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service Discovery</a>.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setServiceRegistries(java.util.Collection)} or {@link #withServiceRegistries(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param serviceRegistries
  The details of the service discovery registries to assign to this task set. For more information, see <a
  href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service
  Discovery</a>.
  @return Returns a reference to this object so that method calls can be chained together.