code: public GetPipelineStateResult withStageStates(StageState... stageStates) {
          if (this.stageStates == null) {
              setStageStates(new java.util.ArrayList<StageState>(stageStates.length));
          }
          for (StageState ele : stageStates) {
              this.stageStates.add(ele);
          }
          return this;
      }
docs: <p>
  A list of the pipeline stage output information, including stage name, state, most recent run details, whether
  the stage is disabled, and other data.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setStageStates(java.util.Collection)} or {@link #withStageStates(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param stageStates
  A list of the pipeline stage output information, including stage name, state, most recent run details,
  whether the stage is disabled, and other data.
  @return Returns a reference to this object so that method calls can be chained together.