code: public ListTrafficPolicyInstancesByHostedZoneResult withTrafficPolicyInstances(TrafficPolicyInstance... trafficPolicyInstances) {
          if (this.trafficPolicyInstances == null) {
              setTrafficPolicyInstances(new com.amazonaws.internal.SdkInternalList<TrafficPolicyInstance>(trafficPolicyInstances.length));
          }
          for (TrafficPolicyInstance ele : trafficPolicyInstances) {
              this.trafficPolicyInstances.add(ele);
          }
          return this;
      }
docs: <p>
  A list that contains one <code>TrafficPolicyInstance</code> element for each traffic policy instance that matches
  the elements in the request.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setTrafficPolicyInstances(java.util.Collection)} or
  {@link #withTrafficPolicyInstances(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param trafficPolicyInstances
  A list that contains one <code>TrafficPolicyInstance</code> element for each traffic policy instance that
  matches the elements in the request.
  @return Returns a reference to this object so that method calls can be chained together.