Package com.oracle.bmc.oda.model
Class WorkRequestError.Builder
- java.lang.Object
-
- com.oracle.bmc.oda.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 description of the issue.WorkRequestError.Builder
timeStamp(Date timeStamp)
When the error occurred.
-
-
-
Method Detail
-
code
public WorkRequestError.Builder code(String code)
A machine-usable code for the error that occurred.Error codes are listed at (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm)
- Parameters:
code
- the value to set- Returns:
- this builder
-
message
public WorkRequestError.Builder message(String message)
A human-readable description of the issue.- Parameters:
message
- the value to set- Returns:
- this builder
-
timeStamp
public WorkRequestError.Builder timeStamp(Date timeStamp)
When the error occurred.A date-time string as described in RFC 3339, section 14.29.
- Parameters:
timeStamp
- the value to set- Returns:
- this builder
-
build
public WorkRequestError build()
-
copy
public WorkRequestError.Builder copy(WorkRequestError model)
-
-