public static class WorkRequestResource.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WorkRequestResource |
build() |
WorkRequestResource.Builder |
copy(WorkRequestResource model) |
WorkRequestResource.Builder |
resourceAction(WorkRequestResource.ResourceAction resourceAction)
The action to take against the resource.
|
WorkRequestResource.Builder |
resourceId(String resourceId)
The identifier of the resource that is the subject of the request.
|
WorkRequestResource.Builder |
resourceType(String resourceType)
The resource type that the work request affects.
|
WorkRequestResource.Builder |
resourceUri(String resourceUri)
The URI path that the user can do a GET on to access the resource metadata.
|
WorkRequestResource.Builder |
status(WorkRequestResource.Status status)
The current state of the work request.
|
WorkRequestResource.Builder |
statusMessage(String statusMessage)
Short message providing more detail for the current status.
|
public WorkRequestResource.Builder resourceAction(WorkRequestResource.ResourceAction resourceAction)
The action to take against the resource.
resourceAction
- the value to setpublic WorkRequestResource.Builder resourceType(String resourceType)
The resource type that the work request affects.
resourceType
- the value to setpublic WorkRequestResource.Builder resourceId(String resourceId)
The identifier of the resource that is the subject of the request.
resourceId
- the value to setpublic WorkRequestResource.Builder status(WorkRequestResource.Status status)
The current state of the work request. The SUCCEEDED
, FAILED
, AND CANCELED
states correspond to the action being performed.
status
- the value to setpublic WorkRequestResource.Builder statusMessage(String statusMessage)
Short message providing more detail for the current status. For example, if an operation fails this may include information about the reason for the failure and a possible resolution.
statusMessage
- the value to setpublic WorkRequestResource.Builder resourceUri(String resourceUri)
The URI path that the user can do a GET on to access the resource metadata.
resourceUri
- the value to setpublic WorkRequestResource build()
public WorkRequestResource.Builder copy(WorkRequestResource model)
Copyright © 2016–2024. All rights reserved.