public static class WorkRequest.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WorkRequest |
build() |
WorkRequest.Builder |
compartmentId(String compartmentId)
The OCID of the
compartment that contains the work request.
|
WorkRequest.Builder |
copy(WorkRequest model) |
WorkRequest.Builder |
errors(List<WorkRequestError> errors)
The list of errors that occurred while fulfilling the work request.
|
WorkRequest.Builder |
id(String id)
The OCID of the
work request.
|
WorkRequest.Builder |
logs(List<WorkRequestLogEntry> logs)
The list of log entries from the work request workflow.
|
WorkRequest.Builder |
operationType(WorkRequestOperationTypes operationType)
A description of the operation requested by the work request.
|
WorkRequest.Builder |
percentComplete(Integer percentComplete)
The percentage of work completed by the work request.
|
WorkRequest.Builder |
resources(List<WorkRequestResource> resources)
The resources being used to complete the work request operation.
|
WorkRequest.Builder |
status(WorkRequestStatusValues status)
The current status of the work request.
|
WorkRequest.Builder |
timeAccepted(Date timeAccepted)
The date and time the work request was created, in the format defined by RFC3339.
|
WorkRequest.Builder |
timeFinished(Date timeFinished)
The date and time the work request was fulfilled or terminated, expressed in RFC 3339
timestamp format.
|
WorkRequest.Builder |
timeStarted(Date timeStarted)
The date and time the work request moved from the
ACCEPTED state to the IN_PROGRESS state, expressed in RFC 3339 timestamp format. |
public WorkRequest.Builder id(String id)
The OCID of the work request.
id
- the value to setpublic WorkRequest.Builder operationType(WorkRequestOperationTypes operationType)
A description of the operation requested by the work request.
operationType
- the value to setpublic WorkRequest.Builder status(WorkRequestStatusValues status)
The current status of the work request.
status
- the value to setpublic WorkRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the work request.
compartmentId
- the value to setpublic WorkRequest.Builder resources(List<WorkRequestResource> resources)
The resources being used to complete the work request operation.
resources
- the value to setpublic WorkRequest.Builder percentComplete(Integer percentComplete)
The percentage of work completed by the work request.
percentComplete
- the value to setpublic WorkRequest.Builder logs(List<WorkRequestLogEntry> logs)
The list of log entries from the work request workflow.
logs
- the value to setpublic WorkRequest.Builder errors(List<WorkRequestError> errors)
The list of errors that occurred while fulfilling the work request.
errors
- the value to setpublic WorkRequest.Builder timeAccepted(Date timeAccepted)
The date and time the work request was created, in the format defined by RFC3339.
timeAccepted
- the value to setpublic WorkRequest.Builder timeStarted(Date timeStarted)
The date and time the work request moved from the ACCEPTED
state to the IN_PROGRESS
state, expressed in RFC 3339 timestamp format.
timeStarted
- the value to setpublic WorkRequest.Builder timeFinished(Date timeFinished)
The date and time the work request was fulfilled or terminated, expressed in RFC 3339 timestamp format.
timeFinished
- the value to setpublic WorkRequest build()
public WorkRequest.Builder copy(WorkRequest model)
Copyright © 2016–2024. All rights reserved.