public static class WorkRequestError.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WorkRequestError |
build() |
WorkRequestError.Builder |
code(String code)
A machine-usable code for the error that occurred.
|
WorkRequestError.Builder |
copy(WorkRequestError model) |
WorkRequestError.Builder |
id(String id)
The identifier of the work request error.
|
WorkRequestError.Builder |
isRetryable(Boolean isRetryable)
Determines if the work request error can be reproduced and tried again.
|
WorkRequestError.Builder |
message(String message)
A human-readable description of the issue that occurred.
|
WorkRequestError.Builder |
timestamp(Date timestamp)
The date and time the error occurred as described in RFC
3339.
|
WorkRequestError.Builder |
workRequestId(String workRequestId)
The OCID of the work request.
|
public WorkRequestError.Builder id(String id)
The identifier of the work request error.
id
- the value to setpublic WorkRequestError.Builder workRequestId(String workRequestId)
The OCID of the work request.
workRequestId
- the value to setpublic WorkRequestError.Builder code(String code)
A machine-usable code for the error that occurred. Error codes are listed on (https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
code
- the value to setpublic WorkRequestError.Builder message(String message)
A human-readable description of the issue that occurred.
message
- the value to setpublic WorkRequestError.Builder isRetryable(Boolean isRetryable)
Determines if the work request error can be reproduced and tried again.
isRetryable
- the value to setpublic WorkRequestError.Builder timestamp(Date timestamp)
The date and time the error occurred as described in RFC 3339. The precision for the time object is in milliseconds.
timestamp
- the value to setpublic WorkRequestError build()
public WorkRequestError.Builder copy(WorkRequestError model)
Copyright © 2016–2024. All rights reserved.