code: public VpcEndpoint withGroups(SecurityGroupIdentifier... groups) {
          if (this.groups == null) {
              setGroups(new com.amazonaws.internal.SdkInternalList<SecurityGroupIdentifier>(groups.length));
          }
          for (SecurityGroupIdentifier ele : groups) {
              this.groups.add(ele);
          }
          return this;
      }
docs: <p>
  (Interface endpoint) Information about the security groups associated with the network interface.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setGroups(java.util.Collection)} or {@link #withGroups(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param groups
  (Interface endpoint) Information about the security groups associated with the network interface.
  @return Returns a reference to this object so that method calls can be chained together.