Class AddTaskToGroupReq.Builder
- java.lang.Object
-
- com.chrt.api.resources.tasks.requests.AddTaskToGroupReq.Builder
-
- All Implemented Interfaces:
AddTaskToGroupReq._FinalStage,AddTaskToGroupReq.IndexStage,AddTaskToGroupReq.StatusStage,AddTaskToGroupReq.TaskStage
- Enclosing class:
- AddTaskToGroupReq
public static final class AddTaskToGroupReq.Builder extends java.lang.Object implements AddTaskToGroupReq.TaskStage, AddTaskToGroupReq.StatusStage, AddTaskToGroupReq.IndexStage, AddTaskToGroupReq._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddTaskToGroupReqbuild()AddTaskToGroupReq.Builderfrom(AddTaskToGroupReq other)AddTaskToGroupReq._FinalStageindex(int index)0-based index of desired orderingAddTaskToGroupReq.IndexStagestatus(TaskStatusEnum1 status)Initial status of the task.AddTaskToGroupReq.StatusStagetask(TaskClientCreate1 task)
-
-
-
Method Detail
-
from
public AddTaskToGroupReq.Builder from(AddTaskToGroupReq other)
- Specified by:
fromin interfaceAddTaskToGroupReq.TaskStage
-
task
public AddTaskToGroupReq.StatusStage task(@NotNull TaskClientCreate1 task)
- Specified by:
taskin interfaceAddTaskToGroupReq.TaskStage
-
status
public AddTaskToGroupReq.IndexStage status(@NotNull TaskStatusEnum1 status)
Initial status of the task. Must respect ordering constraints (COMPLETED tasks strictly before STAGED tasks).
Initial status of the task. Must respect ordering constraints (COMPLETED tasks strictly before STAGED tasks).
- Specified by:
statusin interfaceAddTaskToGroupReq.StatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
index
public AddTaskToGroupReq._FinalStage index(int index)
0-based index of desired ordering
0-based index of desired ordering
- Specified by:
indexin interfaceAddTaskToGroupReq.IndexStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public AddTaskToGroupReq build()
- Specified by:
buildin interfaceAddTaskToGroupReq._FinalStage
-
-