/** * <p> * Specifies the type of the workflow executions to be 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 WorkflowTypeFilter.Builder} avoiding the * need to create one manually via {@link WorkflowTypeFilter#builder()}. * * When the {@link Consumer} completes, {@link WorkflowTypeFilter.Builder#build()} is called immediately and its * result is passed to {@link #typeFilter(WorkflowTypeFilter)}. * * @param typeFilter * a consumer that will call methods on {@link WorkflowTypeFilter.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #typeFilter(WorkflowTypeFilter) */ default Builder typeFilter(Consumer<WorkflowTypeFilter.Builder> typeFilter) { return typeFilter(WorkflowTypeFilter.builder().applyMutation(typeFilter).build()); }
/** * <p> * Specifies the type of the workflow executions to be 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 WorkflowTypeFilter.Builder} avoiding the * need to create one manually via {@link WorkflowTypeFilter#builder()}. * * When the {@link Consumer} completes, {@link WorkflowTypeFilter.Builder#build()} is called immediately and its * result is passed to {@link #typeFilter(WorkflowTypeFilter)}. * * @param typeFilter * a consumer that will call methods on {@link WorkflowTypeFilter.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #typeFilter(WorkflowTypeFilter) */ default Builder typeFilter(Consumer<WorkflowTypeFilter.Builder> typeFilter) { return typeFilter(WorkflowTypeFilter.builder().applyMutation(typeFilter).build()); }
/** * <p> * Specifies the type of the workflow executions to be 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 WorkflowTypeFilter.Builder} avoiding the * need to create one manually via {@link WorkflowTypeFilter#builder()}. * * When the {@link Consumer} completes, {@link WorkflowTypeFilter.Builder#build()} is called immediately and its * result is passed to {@link #typeFilter(WorkflowTypeFilter)}. * * @param typeFilter * a consumer that will call methods on {@link WorkflowTypeFilter.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #typeFilter(WorkflowTypeFilter) */ default Builder typeFilter(Consumer<WorkflowTypeFilter.Builder> typeFilter) { return typeFilter(WorkflowTypeFilter.builder().applyMutation(typeFilter).build()); }