code: public Build withPhases(BuildPhase... phases) {
          if (this.phases == null) {
              setPhases(new java.util.ArrayList<BuildPhase>(phases.length));
          }
          for (BuildPhase ele : phases) {
              this.phases.add(ele);
          }
          return this;
      }
docs: <p>
  Information about all previous build phases that are complete and information about any current build phase that
  is not yet complete.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPhases(java.util.Collection)} or {@link #withPhases(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param phases
  Information about all previous build phases that are complete and information about any current build
  phase that is not yet complete.
  @return Returns a reference to this object so that method calls can be chained together.