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 |
message(String message)
A human-readable description of the issue that produced the error.
|
WorkRequestError.Builder |
timestamp(Date timestamp)
The time the error occurred.
|
public WorkRequestError.Builder code(String code)
A machine-usable code for the error that occurred. For the list of error codes, see API Errors.
code
- the value to setpublic WorkRequestError.Builder message(String message)
A human-readable description of the issue that produced the error.
message
- the value to setpublic WorkRequestError.Builder timestamp(Date timestamp)
The time the error occurred.
timestamp
- the value to setpublic WorkRequestError build()
public WorkRequestError.Builder copy(WorkRequestError model)
Copyright © 2016–2024. All rights reserved.