public ResourceSyncAttempt withEvents(java.util.Collection<ResourceSyncEvent> events) {
        setEvents(events);
        return this;
    }
<p>
An array of events with detail data.
</p>

@param events
       An array of events with detail data.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/ResourceSyncAttempt.java