Builder class for CreateDeliveryTaskRequest.
Public Method Summary
CreateDeliveryTaskRequest |
build()
Returns new CreateDeliveryTaskRequest instance with the state set by the
Builder.
|
final CreateDeliveryTaskRequest.Builder | |
abstract CreateDeliveryTaskRequest.Builder |
setPlannedWaypoint(Waypoint waypoint)
Sets the waypoint destination where the task will be completed.
|
abstract CreateDeliveryTaskRequest.Builder |
setTaskDurationSeconds(long durationSeconds)
Sets the additional time to perform an action at this location, measured in
seconds.
|
abstract CreateDeliveryTaskRequest.Builder | |
abstract CreateDeliveryTaskRequest.Builder |
setTaskType(int taskType)
Sets the type of the task; for example, a pickup or scheduled stop.
|
abstract CreateDeliveryTaskRequest.Builder |
setTrackingId(String trackingId)
Sets the tracking identifier for the set of related tasks that this task is
part of.
|
Inherited Method Summary
Public Methods
public CreateDeliveryTaskRequest build ()
Returns new CreateDeliveryTaskRequest instance with the state set by the Builder.
Throws
IllegalArgumentException |
if the task
|
---|---|
NullPointerException | if any non-nullable values are not set. |
public final CreateDeliveryTaskRequest.Builder setParentId (String parentId)
This method is deprecated.
Instead call
setTrackingId(String)
Sets the unique identifier for the transaction (e.g. a trip id or tracking id) that this task is a part of.
public abstract CreateDeliveryTaskRequest.Builder setPlannedWaypoint (Waypoint waypoint)
Sets the waypoint destination where the task will be completed.
public abstract CreateDeliveryTaskRequest.Builder setTaskDurationSeconds (long durationSeconds)
Sets the additional time to perform an action at this location, measured in seconds.
public abstract CreateDeliveryTaskRequest.Builder setTaskId (String taskId)
Sets the unique identifier for this task for this provider.
public abstract CreateDeliveryTaskRequest.Builder setTaskType (int taskType)
Sets the type of the task; for example, a pickup or scheduled stop.
public abstract CreateDeliveryTaskRequest.Builder setTrackingId (String trackingId)
Sets the tracking identifier for the set of related tasks that this task is part of.