public static class WorkRequestResource.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WorkRequestResource.Builder |
actionType(WorkRequestResource.ActionType 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 for the work request.
|
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.
|
WorkRequestResource.Builder |
name(String name)
The name of the resource.
|
public WorkRequestResource.Builder entityType(String entityType)
The resource type for the work request.
entityType
- the value to setpublic WorkRequestResource.Builder actionType(WorkRequestResource.ActionType 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. If the request failed for that resource, the state will be FAILED.
actionType
- the value to setpublic WorkRequestResource.Builder identifier(String identifier)
The identifier of the resource. Not all resources will have an id.
identifier
- the value to setpublic WorkRequestResource.Builder name(String name)
The name of the resource. Not all resources will have a name specified.
name
- 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 build()
public WorkRequestResource.Builder copy(WorkRequestResource model)
Copyright © 2016–2024. All rights reserved.