Class WorkRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.loadbalancer.model.WorkRequest.Builder
-
- Enclosing class:
- WorkRequest
public static class WorkRequest.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkRequest
build()
WorkRequest.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing the load balancer.WorkRequest.Builder
copy(WorkRequest model)
WorkRequest.Builder
errorDetails(List<WorkRequestError> errorDetails)
WorkRequest.Builder
id(String id)
The OCID of the work request.WorkRequest.Builder
lifecycleState(WorkRequest.LifecycleState lifecycleState)
The current state of the work request.WorkRequest.Builder
loadBalancerId(String loadBalancerId)
The OCID of the load balancer with which the work request is associated.WorkRequest.Builder
message(String message)
A collection of data, related to the load balancer provisioning process, that helps with debugging in the event of failure.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 completed, in the format defined by RFC3339.WorkRequest.Builder
type(String type)
The type of action the work request represents.
-
-
-
Method Detail
-
id
public WorkRequest.Builder id(String id)
The OCID of the work request.- Parameters:
id
- the value to set- Returns:
- this builder
-
loadBalancerId
public WorkRequest.Builder loadBalancerId(String loadBalancerId)
The OCID of the load balancer with which the work request is associated.- Parameters:
loadBalancerId
- the value to set- Returns:
- this builder
-
type
public WorkRequest.Builder type(String type)
The type of action the work request represents.Example: CreateListener
- Parameters:
type
- the value to set- Returns:
- this builder
-
compartmentId
public WorkRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the load balancer.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
lifecycleState
public WorkRequest.Builder lifecycleState(WorkRequest.LifecycleState lifecycleState)
The current state of the work request.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
message
public WorkRequest.Builder message(String message)
A collection of data, related to the load balancer provisioning process, that helps with debugging in the event of failure.Possible data elements include:
- workflow name - event ID - work request ID - load balancer ID - workflow completion message
- Parameters:
message
- the value to set- Returns:
- this builder
-
timeAccepted
public WorkRequest.Builder timeAccepted(Date timeAccepted)
The date and time the work request was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeAccepted
- the value to set- Returns:
- this builder
-
timeFinished
public WorkRequest.Builder timeFinished(Date timeFinished)
The date and time the work request was completed, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeFinished
- the value to set- Returns:
- this builder
-
errorDetails
public WorkRequest.Builder errorDetails(List<WorkRequestError> errorDetails)
-
build
public WorkRequest build()
-
copy
public WorkRequest.Builder copy(WorkRequest model)
-
-