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