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 short error code that defines the error, meant for programmatic parsing.
|
WorkRequestError.Builder |
copy(WorkRequestError model) |
WorkRequestError.Builder |
message(String message)
Error message.
|
WorkRequestError.Builder |
timestamp(Date timestamp)
The date and time the error occured, in the format defined by RFC3339.
|
public WorkRequestError.Builder code(String code)
A short error code that defines the error, meant for programmatic parsing.
code
- the value to setpublic WorkRequestError.Builder message(String message)
Error message.
message
- the value to setpublic WorkRequestError.Builder timestamp(Date timestamp)
The date and time the error occured, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z
timestamp
- the value to setpublic WorkRequestError build()
public WorkRequestError.Builder copy(WorkRequestError model)
Copyright © 2016–2024. All rights reserved.