code: public ModifyVpcEndpointConnectionNotificationRequest withConnectionEvents(String... connectionEvents) {
          if (this.connectionEvents == null) {
              setConnectionEvents(new com.amazonaws.internal.SdkInternalList<String>(connectionEvents.length));
          }
          for (String ele : connectionEvents) {
              this.connectionEvents.add(ele);
          }
          return this;
      }
docs: <p>
  One or more events for the endpoint. Valid values are <code>Accept</code>, <code>Connect</code>,
  <code>Delete</code>, and <code>Reject</code>.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setConnectionEvents(java.util.Collection)} or {@link #withConnectionEvents(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param connectionEvents
  One or more events for the endpoint. Valid values are <code>Accept</code>, <code>Connect</code>,
  <code>Delete</code>, and <code>Reject</code>.
  @return Returns a reference to this object so that method calls can be chained together.