public FilterLogEventsResult withEvents(FilteredLogEvent... events) {
        if (this.events == null) {
            setEvents(new com.amazonaws.internal.SdkInternalList<FilteredLogEvent>(events.length));
        }
        for (FilteredLogEvent ele : events) {
            this.events.add(ele);
        }
        return this;
    }
<p>
The matched events.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEvents(java.util.Collection)} or {@link #withEvents(java.util.Collection)} if you want to override the
existing values.
</p>

@param events
       The matched events.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/FilterLogEventsResult.java