code: public void setWeightedTargets(java.util.Collection<WeightedTarget> weightedTargets) {
          if (weightedTargets == null) {
              this.weightedTargets = null;
              return;
          }
  
          this.weightedTargets = new java.util.ArrayList<WeightedTarget>(weightedTargets);
      }
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>
  
  @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.