/** * <p> * If specified, only executions that have a tag that matches the filter are counted. * </p> * <note> * <p> * <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You * can specify at most one of these in a request. * </p> * </note> This is a convenience that creates an instance of the {@link TagFilter.Builder} avoiding the need to * create one manually via {@link TagFilter#builder()}. * * When the {@link Consumer} completes, {@link TagFilter.Builder#build()} is called immediately and its result * is passed to {@link #tagFilter(TagFilter)}. * * @param tagFilter * a consumer that will call methods on {@link TagFilter.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #tagFilter(TagFilter) */ default Builder tagFilter(Consumer<TagFilter.Builder> tagFilter) { return tagFilter(TagFilter.builder().applyMutation(tagFilter).build()); }
/** * <p> * If specified, only executions that have a tag that matches the filter are counted. * </p> * <note> * <p> * <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You * can specify at most one of these in a request. * </p> * </note> This is a convenience that creates an instance of the {@link TagFilter.Builder} avoiding the need to * create one manually via {@link TagFilter#builder()}. * * When the {@link Consumer} completes, {@link TagFilter.Builder#build()} is called immediately and its result * is passed to {@link #tagFilter(TagFilter)}. * * @param tagFilter * a consumer that will call methods on {@link TagFilter.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #tagFilter(TagFilter) */ default Builder tagFilter(Consumer<TagFilter.Builder> tagFilter) { return tagFilter(TagFilter.builder().applyMutation(tagFilter).build()); }
/** * <p> * If specified, only executions that have a tag that matches the filter are counted. * </p> * <note> * <p> * <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You * can specify at most one of these in a request. * </p> * </note> This is a convenience that creates an instance of the {@link TagFilter.Builder} avoiding the need to * create one manually via {@link TagFilter#builder()}. * * When the {@link Consumer} completes, {@link TagFilter.Builder#build()} is called immediately and its result * is passed to {@link #tagFilter(TagFilter)}. * * @param tagFilter * a consumer that will call methods on {@link TagFilter.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #tagFilter(TagFilter) */ default Builder tagFilter(Consumer<TagFilter.Builder> tagFilter) { return tagFilter(TagFilter.builder().applyMutation(tagFilter).build()); }