code: public TcpRouteAction withWeightedTargets(WeightedTarget... weightedTargets) {
          if (this.weightedTargets == null) {
              setWeightedTargets(new java.util.ArrayList<WeightedTarget>(weightedTargets.length));
          }
          for (WeightedTarget ele : weightedTargets) {
              this.weightedTargets.add(ele);
          }
          return this;
      }
docs: <p>
  The targets that traffic is routed to when a request matches the route. You can specify one or more targets and
  their relative weights to distribute traffic with.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setWeightedTargets(java.util.Collection)} or {@link #withWeightedTargets(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param weightedTargets
  The targets that traffic is routed to when a request matches the route. You can specify one or more
  targets and their relative weights to distribute traffic with.
  @return Returns a reference to this object so that method calls can be chained together.