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 |
id(String id)
Unique identifier of the work request
|
WorkRequest.Builder |
locks(List<ResourceLock> locks)
Locks associated with this resource.
|
WorkRequest.Builder |
operationType(OperationType operationType)
Operation type of the work request
|
WorkRequest.Builder |
percentComplete(Float percentComplete)
Percentage of the work request that’s completed
|
WorkRequest.Builder |
resources(List<WorkRequestResource> resources)
List of resources affected by the work request
|
WorkRequest.Builder |
status(OperationStatus status)
Operation status of the work request
|
WorkRequest.Builder |
timeAccepted(Date timeAccepted)
The date and time the work request was created
|
WorkRequest.Builder |
timeFinished(Date timeFinished)
The date and time the work request was finished
|
WorkRequest.Builder |
timeStarted(Date timeStarted)
The date and time the work request was started
|
public WorkRequest.Builder id(String id)
Unique identifier of the work request
id
- the value to setpublic WorkRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
compartmentId
- the value to setpublic WorkRequest.Builder operationType(OperationType operationType)
Operation type of the work request
operationType
- the value to setpublic WorkRequest.Builder status(OperationStatus status)
Operation status of the work request
status
- the value to setpublic WorkRequest.Builder resources(List<WorkRequestResource> resources)
List of resources affected by the work request
resources
- the value to setpublic WorkRequest.Builder percentComplete(Float percentComplete)
Percentage of the work request that’s completed
percentComplete
- the value to setpublic WorkRequest.Builder timeAccepted(Date timeAccepted)
The date and time the work request was created
timeAccepted
- the value to setpublic WorkRequest.Builder timeStarted(Date timeStarted)
The date and time the work request was started
timeStarted
- the value to setpublic WorkRequest.Builder timeFinished(Date timeFinished)
The date and time the work request was finished
timeFinished
- the value to setpublic WorkRequest.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.
locks
- the value to setpublic WorkRequest build()
public WorkRequest.Builder copy(WorkRequest model)
Copyright © 2016–2024. All rights reserved.