Class WorkRequestError.Builder
- java.lang.Object
-
- com.oracle.bmc.resourcemanager.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 WorkRequestErrorbuild()WorkRequestError.Buildercode(String code)A short error code that defines the error, meant for programmatic parsing.WorkRequestError.Buildercopy(WorkRequestError model)WorkRequestError.Buildermessage(String message)A human-readable error string.WorkRequestError.Buildertimestamp(Date timestamp)The date and time when the error happened.
-
-
-
Method Detail
-
code
public WorkRequestError.Builder code(String code)
A short error code that defines the error, meant for programmatic parsing.- Parameters:
code- the value to set- Returns:
- this builder
-
message
public WorkRequestError.Builder message(String message)
A human-readable error string.- Parameters:
message- the value to set- Returns:
- this builder
-
timestamp
public WorkRequestError.Builder timestamp(Date timestamp)
The date and time when the error happened.Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z
- Parameters:
timestamp- the value to set- Returns:
- this builder
-
build
public WorkRequestError build()
-
copy
public WorkRequestError.Builder copy(WorkRequestError model)
-
-