Class ScheduledJob.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public ScheduledJob.Builder id​(String id)
        OCID for the Scheduled Job
        Parameters:
        id - the value to set
        Returns:
        this builder
      • compartmentId

        public ScheduledJob.Builder compartmentId​(String compartmentId)
        OCID for the Compartment
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • displayName

        public ScheduledJob.Builder displayName​(String displayName)
        Scheduled Job name
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • description

        public ScheduledJob.Builder description​(String description)
        Details describing the Scheduled Job.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • scheduleType

        public ScheduledJob.Builder scheduleType​(ScheduleTypes scheduleType)
        the type of scheduling this Scheduled Job follows
        Parameters:
        scheduleType - the value to set
        Returns:
        this builder
      • timeNextExecution

        public ScheduledJob.Builder timeNextExecution​(Date timeNextExecution)
        the time of the next execution of this Scheduled Job
        Parameters:
        timeNextExecution - the value to set
        Returns:
        this builder
      • timeLastExecution

        public ScheduledJob.Builder timeLastExecution​(Date timeLastExecution)
        the time of the last execution of this Scheduled Job
        Parameters:
        timeLastExecution - the value to set
        Returns:
        this builder
      • intervalType

        public ScheduledJob.Builder intervalType​(IntervalTypes intervalType)
        the interval period for a recurring Scheduled Job (only if schedule type is RECURRING)
        Parameters:
        intervalType - the value to set
        Returns:
        this builder
      • intervalValue

        public ScheduledJob.Builder intervalValue​(String intervalValue)
        the value for the interval period for a recurring Scheduled Job (only if schedule type is RECURRING)
        Parameters:
        intervalValue - the value to set
        Returns:
        this builder
      • managedInstances

        public ScheduledJob.Builder managedInstances​(List<Id> managedInstances)
        the list of managed instances this scheduled job operates on (mutually exclusive with managedInstanceGroups)
        Parameters:
        managedInstances - the value to set
        Returns:
        this builder
      • managedInstanceGroups

        public ScheduledJob.Builder managedInstanceGroups​(List<Id> managedInstanceGroups)
        the list of managed instance groups this scheduled job operates on (mutually exclusive with managedInstances)
        Parameters:
        managedInstanceGroups - the value to set
        Returns:
        this builder
      • operationType

        public ScheduledJob.Builder operationType​(OperationTypes operationType)
        the type of operation this Scheduled Job performs
        Parameters:
        operationType - the value to set
        Returns:
        this builder
      • updateType

        public ScheduledJob.Builder updateType​(PackageUpdateTypes updateType)
        Type of the update (only if operation type is UPDATEALL)
        Parameters:
        updateType - the value to set
        Returns:
        this builder
      • packageNames

        public ScheduledJob.Builder packageNames​(List<PackageName> packageNames)
        the names of the updates (only if operation type is INSTALL/UPDATE/REMOVE)
        Parameters:
        packageNames - the value to set
        Returns:
        this builder
      • workRequests

        public ScheduledJob.Builder workRequests​(List<Id> workRequests)
        list of Work Requests associated with this Scheduled Job
        Parameters:
        workRequests - the value to set
        Returns:
        this builder
      • lifecycleState

        public ScheduledJob.Builder lifecycleState​(LifecycleStates lifecycleState)
        The current state of the Scheduled Job.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • freeformTags

        public ScheduledJob.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public ScheduledJob.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • updateNames

        public ScheduledJob.Builder updateNames​(List<String> updateNames)
        The unique names of the Windows Updates (only if operation type is INSTALL).

        This is only applicable when the osFamily is for Windows managed instances.

        Parameters:
        updateNames - the value to set
        Returns:
        this builder
      • osFamily

        public ScheduledJob.Builder osFamily​(OsFamilies osFamily)
        The Operating System type of the managed instance.
        Parameters:
        osFamily - the value to set
        Returns:
        this builder
      • isRestricted

        public ScheduledJob.Builder isRestricted​(Boolean isRestricted)
        true, if the schedule job has its update capabilities restricted.

        (Used to track Autonomous Scheduled Job)

        Parameters:
        isRestricted - the value to set
        Returns:
        this builder