Class WorkRequestSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.osmanagementhub.model.WorkRequestSummary.Builder
-
- Enclosing class:
- WorkRequestSummary
public static class WorkRequestSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkRequestSummary
build()
WorkRequestSummary.Builder
childrenId(List<String> childrenId)
The list of OCIDs for child work requests.WorkRequestSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the work request.WorkRequestSummary.Builder
copy(WorkRequestSummary model)
WorkRequestSummary.Builder
description(String description)
A short description about the work request.WorkRequestSummary.Builder
displayName(String displayName)
A short display name for the work request.WorkRequestSummary.Builder
id(String id)
The OCID of the work request.WorkRequestSummary.Builder
isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether this work request is managed by Autonomous LinuxWorkRequestSummary.Builder
message(String message)
A progress or error message, if there is any.WorkRequestSummary.Builder
operationType(WorkRequestOperationType operationType)
Type of the work request.WorkRequestSummary.Builder
parentId(String parentId)
The OCID of the parent work request, if there is any.WorkRequestSummary.Builder
percentComplete(Float percentComplete)
The percentage complete of the operation tracked by this work request.WorkRequestSummary.Builder
rebootTimeoutInMins(Integer rebootTimeoutInMins)
The number of minutes the service waits for the reboot to complete.WorkRequestSummary.Builder
status(OperationStatus status)
Status of the work request.WorkRequestSummary.Builder
timeCreated(Date timeCreated)
The date and time the request was created - as described in RFC 3339, section 14.29.WorkRequestSummary.Builder
timeScheduled(Date timeScheduled)
The scheduled date and time to retry the work request (in RFC 3339 format).
-
-
-
Method Detail
-
operationType
public WorkRequestSummary.Builder operationType(WorkRequestOperationType operationType)
Type of the work request.- Parameters:
operationType
- the value to set- Returns:
- this builder
-
status
public WorkRequestSummary.Builder status(OperationStatus status)
Status of the work request.- Parameters:
status
- the value to set- Returns:
- this builder
-
id
public WorkRequestSummary.Builder id(String id)
The OCID of the work request.- Parameters:
id
- the value to set- Returns:
- this builder
-
description
public WorkRequestSummary.Builder description(String description)
A short description about the work request.- Parameters:
description
- the value to set- Returns:
- this builder
-
displayName
public WorkRequestSummary.Builder displayName(String displayName)
A short display name for the work request.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
message
public WorkRequestSummary.Builder message(String message)
A progress or error message, if there is any.- Parameters:
message
- the value to set- Returns:
- this builder
-
parentId
public WorkRequestSummary.Builder parentId(String parentId)
The OCID of the parent work request, if there is any.- Parameters:
parentId
- the value to set- Returns:
- this builder
-
childrenId
public WorkRequestSummary.Builder childrenId(List<String> childrenId)
The list of OCIDs for child work requests.- Parameters:
childrenId
- the value to set- Returns:
- this builder
-
compartmentId
public WorkRequestSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the work request.Work requests should be scoped to the same compartment as the resource it affects. If the work request affects multiple resources the different compartments, the services selects the compartment of the primary resource.
- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
percentComplete
public WorkRequestSummary.Builder percentComplete(Float percentComplete)
The percentage complete of the operation tracked by this work request.- Parameters:
percentComplete
- the value to set- Returns:
- this builder
-
timeCreated
public WorkRequestSummary.Builder timeCreated(Date timeCreated)
The date and time the request was created - as described in RFC 3339, section 14.29.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeScheduled
public WorkRequestSummary.Builder timeScheduled(Date timeScheduled)
The scheduled date and time to retry the work request (in RFC 3339 format).- Parameters:
timeScheduled
- the value to set- Returns:
- this builder
-
isManagedByAutonomousLinux
public WorkRequestSummary.Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether this work request is managed by Autonomous Linux- Parameters:
isManagedByAutonomousLinux
- the value to set- Returns:
- this builder
-
rebootTimeoutInMins
public WorkRequestSummary.Builder rebootTimeoutInMins(Integer rebootTimeoutInMins)
The number of minutes the service waits for the reboot to complete.If the managed instance doesn’t reboot within the timeout, the service marks the reboot job as failed.
- Parameters:
rebootTimeoutInMins
- the value to set- Returns:
- this builder
-
build
public WorkRequestSummary build()
-
copy
public WorkRequestSummary.Builder copy(WorkRequestSummary model)
-
-