public GitConfiguration withPush(GitPushFilter... push) {
        if (this.push == null) {
            setPush(new java.util.ArrayList<GitPushFilter>(push.length));
        }
        for (GitPushFilter ele : push) {
            this.push.add(ele);
        }
        return this;
    }
<p>
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with
details.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPush(java.util.Collection)} or {@link #withPush(java.util.Collection)} if you want to override the
existing values.
</p>

@param push
       The field where the repository event that will start the pipeline, such as pushing Git tags, is specified
       with details.
@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