public UpdateWebhookRequest withFilterGroups(java.util.List<WebhookFilter>... filterGroups) {
        if (this.filterGroups == null) {
            setFilterGroups(new java.util.ArrayList<java.util.List<WebhookFilter>>(filterGroups.length));
        }
        for (java.util.List<WebhookFilter> ele : filterGroups) {
            this.filterGroups.add(ele);
        }
        return this;
    }
<p>
An array of arrays of <code>WebhookFilter</code> objects used to determine if a webhook event can trigger a
build. A filter group must contain at least one <code>EVENT</code> <code>WebhookFilter</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFilterGroups(java.util.Collection)} or {@link #withFilterGroups(java.util.Collection)} if you want to
override the existing values.
</p>

@param filterGroups
       An array of arrays of <code>WebhookFilter</code> objects used to determine if a webhook event can trigger
       a build. A filter group must contain at least one <code>EVENT</code> <code>WebhookFilter</code>.
@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