public static class WorkRequest.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WorkRequest |
build() |
WorkRequest.Builder |
childrenId(List<String> childrenId)
The list of OCIDs for the child work requests.
|
WorkRequest.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment that contains the work request.
|
WorkRequest.Builder |
contentChecksum(String contentChecksum)
The EventFingerprint associated with the content.
|
WorkRequest.Builder |
contentLocation(String contentLocation)
The location of the bundle in the filesystem of the resource associated to this work
request.
|
WorkRequest.Builder |
copy(WorkRequest model) |
WorkRequest.Builder |
description(String description)
A short description about the work request.
|
WorkRequest.Builder |
displayName(String displayName)
A short display name for the work request.
|
WorkRequest.Builder |
eventId(String eventId)
The event id of the content.
|
WorkRequest.Builder |
id(String id)
The OCID
of the work request.
|
WorkRequest.Builder |
initiatorId(String initiatorId)
The OCID
of the resource that initiated the work request.
|
WorkRequest.Builder |
isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether this work request is managed by the Autonomous Linux service.
|
WorkRequest.Builder |
managementStation(WorkRequestManagementStationDetails managementStation) |
WorkRequest.Builder |
message(String message)
A progress or error message, if there is any.
|
WorkRequest.Builder |
moduleSpecs(List<ModuleSpecDetails> moduleSpecs)
The list of appstream modules being operated on.
|
WorkRequest.Builder |
operationType(WorkRequestOperationType operationType)
Type of the work request.
|
WorkRequest.Builder |
packageNames(List<String> packageNames)
A list of package names to be installed, updated, or removed.
|
WorkRequest.Builder |
parentId(String parentId)
The OCID of the parent work request, if there is any.
|
WorkRequest.Builder |
percentComplete(Float percentComplete)
The percentage complete of the operation tracked by this work request.
|
WorkRequest.Builder |
resources(List<WorkRequestResource> resources)
The list of
OCIDs for
the resources affected by the work request.
|
WorkRequest.Builder |
retryIntervals(List<Integer> retryIntervals)
Indicates whether this work request is managed by the Autonomous Linux service.
|
WorkRequest.Builder |
retryOfId(String retryOfId)
The OCID
of the original work request that is being retried.
|
WorkRequest.Builder |
status(OperationStatus status)
Status of the work request.
|
WorkRequest.Builder |
timeCreated(Date timeCreated)
The date and time the work request was created (in RFC
3339 format).
|
WorkRequest.Builder |
timeFinished(Date timeFinished)
The date and time the work request completed (in RFC
3339 format).
|
WorkRequest.Builder |
timeScheduled(Date timeScheduled)
The scheduled date and time to retry the work request (in RFC
3339 format).
|
WorkRequest.Builder |
timeStarted(Date timeStarted)
The date and time the work request started (in RFC
3339 format).
|
WorkRequest.Builder |
timeUpdated(Date timeUpdated)
The date and time the work request started (in RFC
3339 format).
|
WorkRequest.Builder |
windowsUpdateNames(List<String> windowsUpdateNames)
The UUIDs of the target Windows update (only used when operation type is
INSTALL_WINDOWS_UPDATES).
|
public WorkRequest.Builder operationType(WorkRequestOperationType operationType)
Type of the work request.
operationType
- the value to setpublic WorkRequest.Builder status(OperationStatus status)
Status of the work request.
status
- the value to setpublic WorkRequest.Builder id(String id)
The OCID of the work request.
id
- the value to setpublic WorkRequest.Builder description(String description)
A short description about the work request.
description
- the value to setpublic WorkRequest.Builder displayName(String displayName)
A short display name for the work request.
displayName
- the value to setpublic WorkRequest.Builder message(String message)
A progress or error message, if there is any.
message
- the value to setpublic WorkRequest.Builder parentId(String parentId)
The OCID of the parent work request, if there is any.
parentId
- the value to setpublic WorkRequest.Builder childrenId(List<String> childrenId)
The list of OCIDs for the child work requests.
childrenId
- the value to setpublic WorkRequest.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.
compartmentId
- the value to setpublic WorkRequest.Builder resources(List<WorkRequestResource> resources)
The list of OCIDs for the resources affected by the work request.
resources
- the value to setpublic WorkRequest.Builder packageNames(List<String> packageNames)
A list of package names to be installed, updated, or removed.
packageNames
- the value to setpublic WorkRequest.Builder windowsUpdateNames(List<String> windowsUpdateNames)
The UUIDs of the target Windows update (only used when operation type is INSTALL_WINDOWS_UPDATES).
windowsUpdateNames
- the value to setpublic WorkRequest.Builder moduleSpecs(List<ModuleSpecDetails> moduleSpecs)
The list of appstream modules being operated on.
moduleSpecs
- the value to setpublic WorkRequest.Builder percentComplete(Float percentComplete)
The percentage complete of the operation tracked by this work request.
percentComplete
- the value to setpublic WorkRequest.Builder timeCreated(Date timeCreated)
The date and time the work request was created (in RFC 3339 format).
timeCreated
- the value to setpublic WorkRequest.Builder timeUpdated(Date timeUpdated)
The date and time the work request started (in RFC 3339 format).
timeUpdated
- the value to setpublic WorkRequest.Builder timeStarted(Date timeStarted)
The date and time the work request started (in RFC 3339 format).
timeStarted
- the value to setpublic WorkRequest.Builder timeFinished(Date timeFinished)
The date and time the work request completed (in RFC 3339 format).
timeFinished
- the value to setpublic WorkRequest.Builder initiatorId(String initiatorId)
The OCID of the resource that initiated the work request.
initiatorId
- the value to setpublic WorkRequest.Builder managementStation(WorkRequestManagementStationDetails managementStation)
public WorkRequest.Builder timeScheduled(Date timeScheduled)
The scheduled date and time to retry the work request (in RFC 3339 format).
timeScheduled
- the value to setpublic WorkRequest.Builder contentLocation(String contentLocation)
The location of the bundle in the filesystem of the resource associated to this work request.
contentLocation
- the value to setpublic WorkRequest.Builder eventId(String eventId)
The event id of the content. This property is required when the work request type is IMPORT_CONTENT or REMOVE_CONTENT.
eventId
- the value to setpublic WorkRequest.Builder contentChecksum(String contentChecksum)
The EventFingerprint associated with the content. This property is required when the work request type is IMPORT_CONTENT or REMOVE_CONTENT.
contentChecksum
- the value to setpublic WorkRequest.Builder retryOfId(String retryOfId)
The OCID of the original work request that is being retried.
retryOfId
- the value to setpublic WorkRequest.Builder retryIntervals(List<Integer> retryIntervals)
Indicates whether this work request is managed by the Autonomous Linux service.
retryIntervals
- the value to setpublic WorkRequest.Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether this work request is managed by the Autonomous Linux service.
isManagedByAutonomousLinux
- the value to setpublic WorkRequest build()
public WorkRequest.Builder copy(WorkRequest model)
Copyright © 2016–2024. All rights reserved.