code: public ListTrafficPolicyVersionsResult withTrafficPolicies(TrafficPolicy... trafficPolicies) {
          if (this.trafficPolicies == null) {
              setTrafficPolicies(new com.amazonaws.internal.SdkInternalList<TrafficPolicy>(trafficPolicies.length));
          }
          for (TrafficPolicy ele : trafficPolicies) {
              this.trafficPolicies.add(ele);
          }
          return this;
      }
docs: <p>
  A list that contains one <code>TrafficPolicy</code> element for each traffic policy version that is associated
  with the specified traffic policy.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setTrafficPolicies(java.util.Collection)} or {@link #withTrafficPolicies(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param trafficPolicies
  A list that contains one <code>TrafficPolicy</code> element for each traffic policy version that is
  associated with the specified traffic policy.
  @return Returns a reference to this object so that method calls can be chained together.