Package com.veeva.vault.sdk.api.workflow
Interface WorkflowReplaceOwnerRequest.Builder
- Enclosing interface:
- WorkflowReplaceOwnerRequest
public static interface WorkflowReplaceOwnerRequest.Builder
Builds a
WorkflowReplaceOwnerRequest
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Validates and retrieves a completedWorkflowReplaceOwnerRequest
.withNewOwnerId
(String newOwnerId) Required: sets the ID of the new workflow owner.withWorkflowId
(String workflowId) Required: sets the active workflow ID.
-
Method Details
-
withWorkflowId
Required: sets the active workflow ID.- Parameters:
workflowId
- to apply the replace owner action- Returns:
- this
WorkflowReplaceOwnerRequest.Builder
-
withNewOwnerId
Required: sets the ID of the new workflow owner.- Parameters:
newOwnerId
- ID of the new workflow owner- Returns:
- this
WorkflowReplaceOwnerRequest.Builder
-
build
WorkflowReplaceOwnerRequest build()Validates and retrieves a completedWorkflowReplaceOwnerRequest
. Workflow ID and the new owner ID are set.- Returns:
- this completed
WorkflowReplaceOwnerRequest
-