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