public static class CreateScheduledJobDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateScheduledJobDetails |
build() |
CreateScheduledJobDetails.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment that contains the scheduled job.
|
CreateScheduledJobDetails.Builder |
copy(CreateScheduledJobDetails model) |
CreateScheduledJobDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateScheduledJobDetails.Builder |
description(String description)
User-specified description of the scheduled job.
|
CreateScheduledJobDetails.Builder |
displayName(String displayName)
User-friendly name for the scheduled job.
|
CreateScheduledJobDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
CreateScheduledJobDetails.Builder |
isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether this scheduled job is managed by the Autonomous Linux service.
|
CreateScheduledJobDetails.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).
|
CreateScheduledJobDetails.Builder |
lifecycleStageIds(List<String> lifecycleStageIds)
The lifecycle stage
OCIDs that
this scheduled job operates on.
|
CreateScheduledJobDetails.Builder |
locations(List<ManagedInstanceLocation> locations)
The list of locations this scheduled job should operate on for a job targeting on
compartments.
|
CreateScheduledJobDetails.Builder |
managedCompartmentIds(List<String> managedCompartmentIds)
The compartment
OCIDs that
this scheduled job operates on.
|
CreateScheduledJobDetails.Builder |
managedInstanceGroupIds(List<String> managedInstanceGroupIds)
The managed instance group
OCIDs that
this scheduled job operates on.
|
CreateScheduledJobDetails.Builder |
managedInstanceIds(List<String> managedInstanceIds)
The managed instance
OCIDs that
this scheduled job operates on.
|
CreateScheduledJobDetails.Builder |
operations(List<ScheduledJobOperation> operations)
The list of operations this scheduled job needs to perform.
|
CreateScheduledJobDetails.Builder |
recurringRule(String recurringRule)
The frequency schedule for a recurring scheduled job.
|
CreateScheduledJobDetails.Builder |
retryIntervals(List<Integer> retryIntervals)
The amount of time in minutes to wait until retrying the scheduled job.
|
CreateScheduledJobDetails.Builder |
scheduleType(ScheduleTypes scheduleType)
The type of scheduling frequency for the scheduled job.
|
CreateScheduledJobDetails.Builder |
timeNextExecution(Date timeNextExecution)
The desired time of the next execution of this scheduled job (in RFC
3339 format).
|
public CreateScheduledJobDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the scheduled job.
compartmentId
- the value to setpublic CreateScheduledJobDetails.Builder displayName(String displayName)
User-friendly name for the scheduled job. Does not have to be unique and you can change the name later. Avoid entering confidential information.
displayName
- the value to setpublic CreateScheduledJobDetails.Builder description(String description)
User-specified description of the scheduled job. Avoid entering confidential information.
description
- the value to setpublic CreateScheduledJobDetails.Builder scheduleType(ScheduleTypes scheduleType)
The type of scheduling frequency for the scheduled job.
scheduleType
- the value to setpublic CreateScheduledJobDetails.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 CreateScheduledJobDetails.Builder timeNextExecution(Date timeNextExecution)
The desired time of the next execution of this scheduled job (in RFC 3339 format).
timeNextExecution
- the value to setpublic CreateScheduledJobDetails.Builder recurringRule(String recurringRule)
The frequency schedule for a recurring scheduled job.
recurringRule
- the value to setpublic CreateScheduledJobDetails.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 you must supply either this or managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds.
managedInstanceIds
- the value to setpublic CreateScheduledJobDetails.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 you must supply either this or managedInstanceIds, or managedCompartmentIds, or lifecycleStageIds.
managedInstanceGroupIds
- the value to setpublic CreateScheduledJobDetails.Builder managedCompartmentIds(List<String> managedCompartmentIds)
The compartment OCIDs that this scheduled job operates on. To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds.
managedCompartmentIds
- the value to setpublic CreateScheduledJobDetails.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 you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or managedCompartmentIds.
lifecycleStageIds
- the value to setpublic CreateScheduledJobDetails.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 CreateScheduledJobDetails.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 CreateScheduledJobDetails.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 CreateScheduledJobDetails.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 CreateScheduledJobDetails.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 CreateScheduledJobDetails.Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether this scheduled job is managed by the Autonomous Linux service.
isManagedByAutonomousLinux
- the value to setpublic CreateScheduledJobDetails build()
public CreateScheduledJobDetails.Builder copy(CreateScheduledJobDetails model)
Copyright © 2016–2024. All rights reserved.