Package com.oracle.bmc.oda.model
Class WorkRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.oda.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 WorkRequestbuild()WorkRequest.BuildercompartmentId(String compartmentId)The identifier of the compartment that contains the work request.WorkRequest.Buildercopy(WorkRequest model)WorkRequest.Builderid(String id)The identifier of the work request.WorkRequest.BuilderodaInstanceId(String odaInstanceId)The identifier of the Digital Assistant instance to which this work request pertains.WorkRequest.BuilderpercentComplete(Float percentComplete)Percentage of the request completed.WorkRequest.BuilderrequestAction(WorkRequest.RequestAction requestAction)The type of the operation that’s associated with the work request.WorkRequest.BuilderresourceId(String resourceId)The identifier of the resource to which this work request pertains.WorkRequest.Builderresources(List<WorkRequestResource> resources)The resources that this work request affects.WorkRequest.Builderstatus(WorkRequest.Status status)The status of current work request.WorkRequest.BuilderstatusMessage(String statusMessage)A short message that provides more detail about the current status.WorkRequest.BuildertimeAccepted(Date timeAccepted)The date and time that the request was created, as described in RFC 3339, section 14.29.WorkRequest.BuildertimeFinished(Date timeFinished)The date and time that the object finished, as described in RFC 3339.WorkRequest.BuildertimeStarted(Date timeStarted)The date and time that the request was started, as described in RFC 3339, CKQ section 14.29.
-
-
-
Method Detail
-
id
public WorkRequest.Builder id(String id)
The identifier of the work request.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public WorkRequest.Builder compartmentId(String compartmentId)
The identifier of the compartment that contains the work request.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
odaInstanceId
public WorkRequest.Builder odaInstanceId(String odaInstanceId)
The identifier of the Digital Assistant instance to which this work request pertains.- Parameters:
odaInstanceId- the value to set- Returns:
- this builder
-
resourceId
public WorkRequest.Builder resourceId(String resourceId)
The identifier of the resource to which this work request pertains.- Parameters:
resourceId- the value to set- Returns:
- this builder
-
requestAction
public WorkRequest.Builder requestAction(WorkRequest.RequestAction requestAction)
The type of the operation that’s associated with the work request.- Parameters:
requestAction- the value to set- Returns:
- this builder
-
status
public WorkRequest.Builder status(WorkRequest.Status status)
The status of current work request.- Parameters:
status- the value to set- Returns:
- this builder
-
statusMessage
public WorkRequest.Builder statusMessage(String statusMessage)
A short message that provides more detail about the current status.For example, if a work request fails, then this may include information about why it failed.
- Parameters:
statusMessage- the value to set- Returns:
- this builder
-
resources
public WorkRequest.Builder resources(List<WorkRequestResource> resources)
The resources that this work request affects.- Parameters:
resources- the value to set- Returns:
- this builder
-
percentComplete
public WorkRequest.Builder percentComplete(Float percentComplete)
Percentage of the request completed.- Parameters:
percentComplete- the value to set- Returns:
- this builder
-
timeAccepted
public WorkRequest.Builder timeAccepted(Date timeAccepted)
The date and time that the request was created, as described in RFC 3339, section 14.29.- Parameters:
timeAccepted- the value to set- Returns:
- this builder
-
timeStarted
public WorkRequest.Builder timeStarted(Date timeStarted)
The date and time that the request was started, as described in RFC 3339, CKQ section 14.29.- Parameters:
timeStarted- the value to set- Returns:
- this builder
-
timeFinished
public WorkRequest.Builder timeFinished(Date timeFinished)
The date and time that the object finished, as described in RFC 3339.CKQ
- Parameters:
timeFinished- the value to set- Returns:
- this builder
-
build
public WorkRequest build()
-
copy
public WorkRequest.Builder copy(WorkRequest model)
-
-