Page Summary
-
UpdateDeliveryTaskRequest.Builderis used to createUpdateDeliveryTaskRequestinstances. -
It provides methods to set the task ID, outcome, and outcome timestamp.
-
The
build()method creates a newUpdateDeliveryTaskRequestwith the provided information. -
NullPointerExceptionis thrown bybuild()if any required values are missing.
Builder class for UpdateDeliveryTaskRequest.
Public Method Summary
| UpdateDeliveryTaskRequest |
build()
Returns new UpdateDeliveryTaskRequest instance with the state set by the
Builder.
|
| abstract UpdateDeliveryTaskRequest.Builder | |
| abstract UpdateDeliveryTaskRequest.Builder |
setTaskOutcome(int outcome)
Sets the outcome of the closed task.
|
| abstract UpdateDeliveryTaskRequest.Builder |
setTaskOutcomeTimestamp(long timestamp)
Sets the timestamp in milliseconds for when the task outcome was set.
|
Inherited Method Summary
Public Methods
public UpdateDeliveryTaskRequest build ()
Returns new UpdateDeliveryTaskRequest instance with the state set by the Builder.
Throws
| NullPointerException | if any non-nullable values are not set. |
|---|
public abstract UpdateDeliveryTaskRequest.Builder setTaskId (String taskId)
Sets the unique identifier for this task for this provider.
public abstract UpdateDeliveryTaskRequest.Builder setTaskOutcome (int outcome)
Sets the outcome of the closed task.
public abstract UpdateDeliveryTaskRequest.Builder setTaskOutcomeTimestamp (long timestamp)
Sets the timestamp in milliseconds for when the task outcome was set.