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