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