docs: public UpdateEndpointWeightsAndCapacitiesRequest withDesiredWeightsAndCapacities(DesiredWeightAndCapacity... desiredWeightsAndCapacities) {
          if (this.desiredWeightsAndCapacities == null) {
              setDesiredWeightsAndCapacities(new java.util.ArrayList<DesiredWeightAndCapacity>(desiredWeightsAndCapacities.length));
          }
          for (DesiredWeightAndCapacity ele : desiredWeightsAndCapacities) {
              this.desiredWeightsAndCapacities.add(ele);
          }
          return this;
      }