Class CreateScheduledJobDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • description

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

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

        public CreateScheduledJobDetails.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 CreateScheduledJobDetails.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 CreateScheduledJobDetails.Builder managedInstances​(List<Id> managedInstances)
        The list of managed instances this scheduled job operates on (mutually exclusive with managedInstanceGroups).

        Either this or the managedInstanceGroups must be supplied.

        Parameters:
        managedInstances - the value to set
        Returns:
        this builder
      • managedInstanceGroups

        public CreateScheduledJobDetails.Builder managedInstanceGroups​(List<Id> managedInstanceGroups)
        The list of managed instance groups this scheduled job operates on (mutually exclusive with managedInstances).

        Either this or managedInstances must be supplied.

        Parameters:
        managedInstanceGroups - the value to set
        Returns:
        this builder
      • packageNames

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

        public CreateScheduledJobDetails.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 CreateScheduledJobDetails.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 CreateScheduledJobDetails.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 CreateScheduledJobDetails.Builder osFamily​(OsFamilies osFamily)
        The Operating System type of the managed instance(s) on which this scheduled job will operate.

        If not specified, this defaults to Linux.

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