public GitPullRequestFilter withEvents(java.util.Collection<String> events) {
        setEvents(events);
        return this;
    }
<p>
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger
configuration.
</p>

@param events
       The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger
       configuration.
@return Returns a reference to this object so that method calls can be chained together.
@see GitPullRequestEventType
aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/GitPullRequestFilter.java