public GetDiscoveredSchemaRequest withEvents(java.util.Collection<String> events) {
        setEvents(events);
        return this;
    }
<p>
An array of strings where each string is a JSON event. These are the events that were used to generate the
schema. The array includes a single type of event and has a maximum size of 10 events.
</p>

@param events
       An array of strings where each string is a JSON event. These are the events that were used to generate the
       schema. The array includes a single type of event and has a maximum size of 10 events.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-schemas/src/main/java/com/amazonaws/services/schemas/model/GetDiscoveredSchemaRequest.java