public static class ScheduledJob.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ScheduledJob |
build() |
ScheduledJob.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment that contains the scheduled job.
|
ScheduledJob.Builder |
copy(ScheduledJob model) |
ScheduledJob.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
ScheduledJob.Builder |
description(String description)
User-specified description for the scheduled job.
|
ScheduledJob.Builder |
displayName(String displayName)
User-friendly name for the scheduled job.
|
ScheduledJob.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
ScheduledJob.Builder |
id(String id)
The OCID
of the scheduled job.
|
ScheduledJob.Builder |
isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether this scheduled job is managed by the Autonomous Linux service.
|
ScheduledJob.Builder |
isRestricted(Boolean isRestricted)
Indicates if the schedule job has restricted update and deletion capabilities.
|
ScheduledJob.Builder |
isSubcompartmentIncluded(Boolean isSubcompartmentIncluded)
Indicates whether to apply the scheduled job to all compartments in the tenancy when
managedCompartmentIds specifies the tenancy
OCID (root
compartment).
|
ScheduledJob.Builder |
lifecycleStageIds(List<String> lifecycleStageIds)
The lifecycle stage
OCIDs that
this scheduled job operates on.
|
ScheduledJob.Builder |
lifecycleState(ScheduledJob.LifecycleState lifecycleState)
The current state of the scheduled job.
|
ScheduledJob.Builder |
locations(List<ManagedInstanceLocation> locations)
The list of locations this scheduled job should operate on for a job targeting on
compartments.
|
ScheduledJob.Builder |
managedCompartmentIds(List<String> managedCompartmentIds)
The compartment
OCIDs that
this scheduled job operates on.
|
ScheduledJob.Builder |
managedInstanceGroupIds(List<String> managedInstanceGroupIds)
The managed instance group
OCIDs that
this scheduled job operates on.
|
ScheduledJob.Builder |
managedInstanceIds(List<String> managedInstanceIds)
The managed instance
OCIDs that
this scheduled job operates on.
|
ScheduledJob.Builder |
operations(List<ScheduledJobOperation> operations)
The list of operations this scheduled job needs to perform.
|
ScheduledJob.Builder |
recurringRule(String recurringRule)
The frequency schedule for a recurring scheduled job.
|
ScheduledJob.Builder |
retryIntervals(List<Integer> retryIntervals)
The amount of time in minutes to wait until retrying the scheduled job.
|
ScheduledJob.Builder |
scheduleType(ScheduleTypes scheduleType)
The type of scheduling frequency for the job.
|
ScheduledJob.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.
|
ScheduledJob.Builder |
timeCreated(Date timeCreated)
The time this scheduled job was created (in RFC
3339 format).
|
ScheduledJob.Builder |
timeLastExecution(Date timeLastExecution)
The time of the last execution of this scheduled job (in RFC
3339 format).
|
ScheduledJob.Builder |
timeNextExecution(Date timeNextExecution)
The time of the next execution of this scheduled job (in RFC
3339 format).
|
ScheduledJob.Builder |
timeUpdated(Date timeUpdated)
The time this scheduled job was updated (in RFC
3339 format).
|
ScheduledJob.Builder |
workRequestIds(List<String> workRequestIds)
The list of work request
OCIDs
associated with this scheduled job.
|
public ScheduledJob.Builder id(String id)
The OCID of the scheduled job.
id
- the value to setpublic ScheduledJob.Builder displayName(String displayName)
User-friendly name for the scheduled job.
displayName
- the value to setpublic ScheduledJob.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the scheduled job.
compartmentId
- the value to setpublic ScheduledJob.Builder description(String description)
User-specified description for the scheduled job.
description
- the value to setpublic ScheduledJob.Builder scheduleType(ScheduleTypes scheduleType)
The type of scheduling frequency for the job.
scheduleType
- the value to setpublic ScheduledJob.Builder locations(List<ManagedInstanceLocation> locations)
The list of locations this scheduled job should operate on for a job targeting on compartments. (Empty list means apply to all locations). This can only be set when managedCompartmentIds is not empty.
locations
- the value to setpublic ScheduledJob.Builder timeNextExecution(Date timeNextExecution)
The time of the next execution of this scheduled job (in RFC 3339 format).
timeNextExecution
- the value to setpublic ScheduledJob.Builder timeLastExecution(Date timeLastExecution)
The time of the last execution of this scheduled job (in RFC 3339 format).
timeLastExecution
- the value to setpublic ScheduledJob.Builder recurringRule(String recurringRule)
The frequency schedule for a recurring scheduled job.
recurringRule
- the value to setpublic ScheduledJob.Builder managedInstanceIds(List<String> managedInstanceIds)
The managed instance OCIDs that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceGroupIds, managedCompartmentIds, and lifecycleStageIds.
managedInstanceIds
- the value to setpublic ScheduledJob.Builder managedInstanceGroupIds(List<String> managedInstanceGroupIds)
The managed instance group OCIDs that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceIds, managedCompartmentIds, and lifecycleStageIds.
managedInstanceGroupIds
- the value to setpublic ScheduledJob.Builder managedCompartmentIds(List<String> managedCompartmentIds)
The compartment OCIDs that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceIds, managedInstanceGroupIds, and lifecycleStageIds.
managedCompartmentIds
- the value to setpublic ScheduledJob.Builder lifecycleStageIds(List<String> lifecycleStageIds)
The lifecycle stage OCIDs that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds.
lifecycleStageIds
- the value to setpublic ScheduledJob.Builder isSubcompartmentIncluded(Boolean isSubcompartmentIncluded)
Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy OCID (root compartment).
isSubcompartmentIncluded
- the value to setpublic ScheduledJob.Builder operations(List<ScheduledJobOperation> operations)
The list of operations this scheduled job needs to perform. A scheduled job supports only one operation type, unless it is one of the following: * UPDATE_PACKAGES * UPDATE_ALL * UPDATE_SECURITY * UPDATE_BUGFIX * UPDATE_ENHANCEMENT * UPDATE_OTHER * UPDATE_KSPLICE_USERSPACE * UPDATE_KSPLICE_KERNEL
operations
- the value to setpublic ScheduledJob.Builder workRequestIds(List<String> workRequestIds)
The list of work request OCIDs associated with this scheduled job.
workRequestIds
- the value to setpublic ScheduledJob.Builder timeCreated(Date timeCreated)
The time this scheduled job was created (in RFC 3339 format).
timeCreated
- the value to setpublic ScheduledJob.Builder timeUpdated(Date timeUpdated)
The time this scheduled job was updated (in RFC 3339 format).
timeUpdated
- the value to setpublic ScheduledJob.Builder lifecycleState(ScheduledJob.LifecycleState lifecycleState)
The current state of the scheduled job.
lifecycleState
- the value to setpublic ScheduledJob.Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether this scheduled job is managed by the Autonomous Linux service.
isManagedByAutonomousLinux
- the value to setpublic ScheduledJob.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined
name, type, or namespace. For more information, see Resource
Tags.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic ScheduledJob.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For
more information, see Resource
Tags.
Example: {"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic ScheduledJob.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud": {"free-tier-retained": "true"}}
systemTags
- the value to setpublic ScheduledJob.Builder isRestricted(Boolean isRestricted)
Indicates if the schedule job has restricted update and deletion capabilities. For restricted scheduled jobs, you can update only the timeNextExecution, recurringRule, and tags.
isRestricted
- the value to setpublic ScheduledJob.Builder retryIntervals(List<Integer> retryIntervals)
The amount of time in minutes to wait until retrying the scheduled job. If set, the service will automatically retry a failed scheduled job after the interval. For example, you could set the interval to [2,5,10]. If the initial execution of the job fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
retryIntervals
- the value to setpublic ScheduledJob build()
public ScheduledJob.Builder copy(ScheduledJob model)
Copyright © 2016–2024. All rights reserved.