public GitConfiguration withPullRequest(GitPullRequestFilter... pullRequest) {
        if (this.pullRequest == null) {
            setPullRequest(new java.util.ArrayList<GitPullRequestFilter>(pullRequest.length));
        }
        for (GitPullRequestFilter ele : pullRequest) {
            this.pullRequest.add(ele);
        }
        return this;
    }
<p>
The field where the repository event that will start the pipeline is specified as pull requests.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPullRequest(java.util.Collection)} or {@link #withPullRequest(java.util.Collection)} if you want to
override the existing values.
</p>

@param pullRequest
       The field where the repository event that will start the pipeline is specified as pull requests.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/GitConfiguration.java