Class WorkRequestError.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemanagement.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 machine-usable code for the error that occurred.WorkRequestError.Buildercopy(WorkRequestError model)WorkRequestError.Builderid(String id)The identifier of the work request error.WorkRequestError.BuilderisRetryable(Boolean isRetryable)Determines if the work request error can be reproduced and tried again.WorkRequestError.Buildermessage(String message)A human-readable description of the issue that occurred.WorkRequestError.Buildertimestamp(Date timestamp)The date and time the error occurred as described in RFC 3339.WorkRequestError.BuilderworkRequestId(String workRequestId)The OCID of the work request.
-
-
-
Method Detail
-
id
public WorkRequestError.Builder id(String id)
The identifier of the work request error.- Parameters:
id- the value to set- Returns:
- this builder
-
workRequestId
public WorkRequestError.Builder workRequestId(String workRequestId)
The OCID of the work request.- Parameters:
workRequestId- the value to set- Returns:
- this builder
-
code
public WorkRequestError.Builder code(String code)
A machine-usable code for the error that occurred.Error codes are listed on (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 that occurred.- Parameters:
message- the value to set- Returns:
- this builder
-
isRetryable
public WorkRequestError.Builder isRetryable(Boolean isRetryable)
Determines if the work request error can be reproduced and tried again.- Parameters:
isRetryable- the value to set- Returns:
- this builder
-
timestamp
public WorkRequestError.Builder timestamp(Date timestamp)
The date and time the error occurred as described in RFC 3339.The precision for the time object is in milliseconds.
- Parameters:
timestamp- the value to set- Returns:
- this builder
-
build
public WorkRequestError build()
-
copy
public WorkRequestError.Builder copy(WorkRequestError model)
-
-