code: public ConfigurationItem withRelatedEvents(String... relatedEvents) {
          if (this.relatedEvents == null) {
              setRelatedEvents(new com.amazonaws.internal.SdkInternalList<String>(relatedEvents.length));
          }
          for (String ele : relatedEvents) {
              this.relatedEvents.add(ele);
          }
          return this;
      }
docs: <p>
  A list of CloudTrail event IDs.
  </p>
  <p>
  A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail
  log. For more information about CloudTrail, see <a
  href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html">What Is AWS
  CloudTrail</a>.
  </p>
  <p>
  An empty field indicates that the current configuration was not initiated by any event.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setRelatedEvents(java.util.Collection)} or {@link #withRelatedEvents(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param relatedEvents
  A list of CloudTrail event IDs.</p>
  <p>
  A populated field indicates that the current configuration was initiated by the events recorded in the
  CloudTrail log. For more information about CloudTrail, see <a
  href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html">What
  Is AWS CloudTrail</a>.
  </p>
  <p>
  An empty field indicates that the current configuration was not initiated by any event.
  @return Returns a reference to this object so that method calls can be chained together.