code: public TransactionCanceledException withCancellationReasons(CancellationReason... cancellationReasons) {
          if (this.cancellationReasons == null) {
              setCancellationReasons(new java.util.ArrayList<CancellationReason>(cancellationReasons.length));
          }
          for (CancellationReason ele : cancellationReasons) {
              this.cancellationReasons.add(ele);
          }
          return this;
      }
docs: <p>
  A list of cancellation reasons.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setCancellationReasons(java.util.Collection)} or {@link #withCancellationReasons(java.util.Collection)}
  if you want to override the existing values.
  </p>
  
  @param cancellationReasons
  A list of cancellation reasons.
  @return Returns a reference to this object so that method calls can be chained together.