code: public BatchGetDeploymentsResult withDeploymentsInfo(DeploymentInfo... deploymentsInfo) {
          if (this.deploymentsInfo == null) {
              setDeploymentsInfo(new com.amazonaws.internal.SdkInternalList<DeploymentInfo>(deploymentsInfo.length));
          }
          for (DeploymentInfo ele : deploymentsInfo) {
              this.deploymentsInfo.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the deployments.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setDeploymentsInfo(java.util.Collection)} or {@link #withDeploymentsInfo(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param deploymentsInfo
  Information about the deployments.
  @return Returns a reference to this object so that method calls can be chained together.