Package com.veeva.vault.sdk.api.job
Interface JobQueueRequest.Builder
- Enclosing interface:
- JobQueueRequest
public static interface JobQueueRequest.Builder
Builder interface for creating a
JobQueueRequest instance.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and retrieves the finalJobQueueRequestobject.withJobName(String jobName) Sets the name of the job to be queued.withJobOwner(RequestContextUserType userType) Sets the user context under which the job will execute.withJobQueueParameters(JobQueueParameters jobQueueParameters) Sets additional parameters.withJobRunTime(ZonedDateTime startTime) Sets the specific time the job should run.withJobTitle(String jobTitle) Sets the display title for the job.
-
Method Details
-
withJobName
Sets the name of the job to be queued.- Parameters:
jobName- the name of the job- Returns:
- the Builder instance
-
withJobTitle
Sets the display title for the job.- Parameters:
jobTitle- the title to be displayed for the job- Returns:
- the Builder instance
-
withJobRunTime
Sets the specific time the job should run.- Parameters:
startTime- the desired start time for the job- Returns:
- the Builder instance
-
withJobOwner
Sets the user context under which the job will execute.- Parameters:
userType- the user type to own the job. For example,REQUEST_OWNERorINITIATING_USER.- Returns:
- the Builder instance
-
withJobQueueParameters
Sets additional parameters.- Parameters:
jobQueueParameters- additional parameters- Returns:
- the Builder instance
-
build
JobQueueRequest build()Builds and retrieves the finalJobQueueRequestobject.- Returns:
- a
JobQueueRequestobject
-