UpdateDeliveryTaskRequest.Builder

  • UpdateDeliveryTaskRequest.Builder is used to construct UpdateDeliveryTaskRequest instances.

  • It provides methods to set the task ID, outcome, and outcome timestamp.

  • The build() method creates a new UpdateDeliveryTaskRequest object with the provided values.

  • All non-nullable values must be set before calling build(), otherwise a NullPointerException will be thrown.

public static abstract class UpdateDeliveryTaskRequest.Builder extends Object

Builder class for UpdateDeliveryTaskRequest.

Public Method Summary

UpdateDeliveryTaskRequest
build()
Returns new UpdateDeliveryTaskRequest instance with the state set by the Builder.
abstract UpdateDeliveryTaskRequest.Builder
setTaskId(String taskId)
Sets the unique identifier for this task for this provider.
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.