Class WorkRequestError.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiagent.model.WorkRequestError.Builder
-
- Enclosing class:
- WorkRequestError
public static class WorkRequestError.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 error message.WorkRequestError.Builder
timestamp(Date timestamp)
The date and time the error occurred, in the format defined by RFC 3339.
-
-
-
Method Detail
-
code
public WorkRequestError.Builder code(String code)
A machine-usable code for the error that occurred.For a list of error codes, see API Errors.
- Parameters:
code
- the value to set- Returns:
- this builder
-
message
public WorkRequestError.Builder message(String message)
A human-readable error message.- Parameters:
message
- the value to set- Returns:
- this builder
-
timestamp
public WorkRequestError.Builder timestamp(Date timestamp)
The date and time the error occurred, in the format defined by RFC 3339.- Parameters:
timestamp
- the value to set- Returns:
- this builder
-
build
public WorkRequestError build()
-
copy
public WorkRequestError.Builder copy(WorkRequestError model)
-
-