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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll 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- 
idpublic WorkRequest.Builder id(String id) The identifier of the work request.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic WorkRequest.Builder compartmentId(String compartmentId) The identifier of the compartment that contains the work request.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
odaInstanceIdpublic 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
 
 - 
resourceIdpublic 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
 
 - 
requestActionpublic 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
 
 - 
statuspublic WorkRequest.Builder status(WorkRequest.Status status) The status of current work request.- Parameters:
- status- the value to set
- Returns:
- this builder
 
 - 
statusMessagepublic 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
 
 - 
resourcespublic WorkRequest.Builder resources(List<WorkRequestResource> resources) The resources that this work request affects.- Parameters:
- resources- the value to set
- Returns:
- this builder
 
 - 
percentCompletepublic WorkRequest.Builder percentComplete(Float percentComplete) Percentage of the request completed.- Parameters:
- percentComplete- the value to set
- Returns:
- this builder
 
 - 
timeAcceptedpublic 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
 
 - 
timeStartedpublic 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
 
 - 
timeFinishedpublic 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
 
 - 
buildpublic WorkRequest build() 
 - 
copypublic WorkRequest.Builder copy(WorkRequest model) 
 
- 
 
-