activityTaskScheduledEventAttributesBuilder.taskList(TaskListUnmarshaller.getInstance().unmarshall(context));
/** * <p> * The task list in which the activity task has been scheduled. * </p> * This is a convenience that creates an instance of the {@link TaskList.Builder} avoiding the need to create * one manually via {@link TaskList#builder()}. * * When the {@link Consumer} completes, {@link TaskList.Builder#build()} is called immediately and its result is * passed to {@link #taskList(TaskList)}. * * @param taskList * a consumer that will call methods on {@link TaskList.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #taskList(TaskList) */ default Builder taskList(Consumer<TaskList.Builder> taskList) { return taskList(TaskList.builder().applyMutation(taskList).build()); }
/** * <p> * The task list in which the activity task has been scheduled. * </p> * This is a convenience that creates an instance of the {@link TaskList.Builder} avoiding the need to create * one manually via {@link TaskList#builder()}. * * When the {@link Consumer} completes, {@link TaskList.Builder#build()} is called immediately and its result is * passed to {@link #taskList(TaskList)}. * * @param taskList * a consumer that will call methods on {@link TaskList.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #taskList(TaskList) */ default Builder taskList(Consumer<TaskList.Builder> taskList) { return taskList(TaskList.builder().applyMutation(taskList).build()); }
/** * <p> * The task list in which the activity task has been scheduled. * </p> * This is a convenience that creates an instance of the {@link TaskList.Builder} avoiding the need to create * one manually via {@link TaskList#builder()}. * * When the {@link Consumer} completes, {@link TaskList.Builder#build()} is called immediately and its result is * passed to {@link #taskList(TaskList)}. * * @param taskList * a consumer that will call methods on {@link TaskList.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #taskList(TaskList) */ default Builder taskList(Consumer<TaskList.Builder> taskList) { return taskList(TaskList.builder().applyMutation(taskList).build()); }