code: public PipelineDeclaration withStages(StageDeclaration... stages) {
          if (this.stages == null) {
              setStages(new java.util.ArrayList<StageDeclaration>(stages.length));
          }
          for (StageDeclaration ele : stages) {
              this.stages.add(ele);
          }
          return this;
      }
docs: <p>
  The stage in which to perform the action.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setStages(java.util.Collection)} or {@link #withStages(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param stages
  The stage in which to perform the action.
  @return Returns a reference to this object so that method calls can be chained together.