public UpdateWebhookRequest withBranchFilter(String branchFilter) {
        setBranchFilter(branchFilter);
        return this;
    }
<p>
A regular expression used to determine which repository branches are built when a webhook is triggered. If the
name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then
all branches are built.
</p>
<note>
<p>
It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>.
</p>
</note>

@param branchFilter
       A regular expression used to determine which repository branches are built when a webhook is triggered. If
       the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is
       empty, then all branches are built.</p> <note>
       <p>
       It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/UpdateWebhookRequest.java