code: public AttackDetail withMitigations(Mitigation... mitigations) {
          if (this.mitigations == null) {
              setMitigations(new java.util.ArrayList<Mitigation>(mitigations.length));
          }
          for (Mitigation ele : mitigations) {
              this.mitigations.add(ele);
          }
          return this;
      }
docs: <p>
  List of mitigation actions taken for the attack.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setMitigations(java.util.Collection)} or {@link #withMitigations(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param mitigations
  List of mitigation actions taken for the attack.
  @return Returns a reference to this object so that method calls can be chained together.