public static class WorkRequestResource.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WorkRequestResource.Builder |
actionType(ActionTypes actionType)
The way in which this resource is affected by the work tracked in the work request.
|
WorkRequestResource |
build() |
WorkRequestResource.Builder |
copy(WorkRequestResource model) |
WorkRequestResource.Builder |
entityType(String entityType)
The resource type the work request affects.
|
WorkRequestResource.Builder |
entityUri(String entityUri)
The URI path that the user can do a GET on to access the resource metadata
|
WorkRequestResource.Builder |
identifier(String identifier)
The identifier of the resource the work request affects.
|
WorkRequestResource.Builder |
metadata(Object metadata)
Additional metadata about the resource that has been operated upon by this work request.
|
WorkRequestResource.Builder |
sourceId(String sourceId)
The identifier of the source the work request is requesting.
|
WorkRequestResource.Builder |
sourceName(String sourceName)
The name of the source the work request is requesting.
|
WorkRequestResource.Builder |
sourceVersion(String sourceVersion)
The version of the source the work request is requesting.
|
WorkRequestResource.Builder |
timeAccepted(Date timeAccepted)
The date and time the request was created, as described in RFC
3339, section 5.6.
|
WorkRequestResource.Builder |
timeFinished(Date timeFinished)
The date and time the request was finished, as described in RFC
3339, section 5.6.
|
WorkRequestResource.Builder |
timeStarted(Date timeStarted)
The date and time the request was started, as described in RFC
3339, section 5.6.
|
public WorkRequestResource.Builder entityType(String entityType)
The resource type the work request affects.
entityType
- the value to setpublic WorkRequestResource.Builder actionType(ActionTypes actionType)
The way in which this resource is affected by the work tracked in the work request. A resource being created, updated, or deleted will remain in the IN_PROGRESS state until work is complete for that resource at which point it will transition to CREATED, UPDATED, or DELETED, respectively.
actionType
- the value to setpublic WorkRequestResource.Builder identifier(String identifier)
The identifier of the resource the work request affects.
identifier
- the value to setpublic WorkRequestResource.Builder sourceId(String sourceId)
The identifier of the source the work request is requesting.
sourceId
- the value to setpublic WorkRequestResource.Builder sourceName(String sourceName)
The name of the source the work request is requesting.
sourceName
- the value to setpublic WorkRequestResource.Builder sourceVersion(String sourceVersion)
The version of the source the work request is requesting.
sourceVersion
- the value to setpublic WorkRequestResource.Builder entityUri(String entityUri)
The URI path that the user can do a GET on to access the resource metadata
entityUri
- the value to setpublic WorkRequestResource.Builder timeAccepted(Date timeAccepted)
The date and time the request was created, as described in RFC 3339, section 5.6.
timeAccepted
- the value to setpublic WorkRequestResource.Builder timeStarted(Date timeStarted)
The date and time the request was started, as described in RFC 3339, section 5.6.
timeStarted
- the value to setpublic WorkRequestResource.Builder timeFinished(Date timeFinished)
The date and time the request was finished, as described in RFC 3339, section 5.6.
timeFinished
- the value to setpublic WorkRequestResource.Builder metadata(Object metadata)
Additional metadata about the resource that has been operated upon by this work request. For WorkRequests operationType WORK_DELIVERY the metadata will contain: workDeliveryStatus indicating the status of the work delivery item as a WorkDeliveryStatus value, workSubmissionKey the WorkSubmission request id, and workSubmissionDetails containing any details of result
metadata
- the value to setpublic WorkRequestResource build()
public WorkRequestResource.Builder copy(WorkRequestResource model)
Copyright © 2016–2024. All rights reserved.