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