Class TaskSchedule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • key

        public TaskSchedule.Builder key​(String key)
        Generated key that can be used in API calls to identify taskSchedule.

        On scenarios where reference to the taskSchedule is needed, a value can be passed in create.

        Parameters:
        key - the value to set
        Returns:
        this builder
      • modelVersion

        public TaskSchedule.Builder modelVersion​(String modelVersion)
        This is a version number that is used by the service to upgrade objects if needed through releases of the service.
        Parameters:
        modelVersion - the value to set
        Returns:
        this builder
      • modelType

        public TaskSchedule.Builder modelType​(String modelType)
        The type of the object.
        Parameters:
        modelType - the value to set
        Returns:
        this builder
      • name

        public TaskSchedule.Builder name​(String name)
        Free form text without any restriction on permitted characters.

        Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.

        Parameters:
        name - the value to set
        Returns:
        this builder
      • description

        public TaskSchedule.Builder description​(String description)
        Detailed description for the object.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • objectVersion

        public TaskSchedule.Builder objectVersion​(Integer objectVersion)
        This is used by the service for optimistic locking of the object, to prevent multiple users from simultaneously updating the object.
        Parameters:
        objectVersion - the value to set
        Returns:
        this builder
      • objectStatus

        public TaskSchedule.Builder objectStatus​(Integer objectStatus)
        The status of an object that can be set to value 1 for shallow references across objects, other values reserved.
        Parameters:
        objectStatus - the value to set
        Returns:
        this builder
      • identifier

        public TaskSchedule.Builder identifier​(String identifier)
        Value can only contain upper case letters, underscore, and numbers.

        It should begin with upper case letter or underscore. The value can be modified.

        Parameters:
        identifier - the value to set
        Returns:
        this builder
      • isEnabled

        public TaskSchedule.Builder isEnabled​(Boolean isEnabled)
        Whether the schedule is enabled.
        Parameters:
        isEnabled - the value to set
        Returns:
        this builder
      • retryAttempts

        public TaskSchedule.Builder retryAttempts​(Integer retryAttempts)
        The number of retry attempts.
        Parameters:
        retryAttempts - the value to set
        Returns:
        this builder
      • retryDelay

        public TaskSchedule.Builder retryDelay​(Double retryDelay)
        The retry delay, the unit for measurement is in the property retry delay unit.
        Parameters:
        retryDelay - the value to set
        Returns:
        this builder
      • startTimeMillis

        public TaskSchedule.Builder startTimeMillis​(Long startTimeMillis)
        The start time in milliseconds.
        Parameters:
        startTimeMillis - the value to set
        Returns:
        this builder
      • endTimeMillis

        public TaskSchedule.Builder endTimeMillis​(Long endTimeMillis)
        The end time in milliseconds.
        Parameters:
        endTimeMillis - the value to set
        Returns:
        this builder
      • isConcurrentAllowed

        public TaskSchedule.Builder isConcurrentAllowed​(Boolean isConcurrentAllowed)
        Whether the same task can be executed concurrently.
        Parameters:
        isConcurrentAllowed - the value to set
        Returns:
        this builder
      • isBackfillEnabled

        public TaskSchedule.Builder isBackfillEnabled​(Boolean isBackfillEnabled)
        Whether the backfill is enabled
        Parameters:
        isBackfillEnabled - the value to set
        Returns:
        this builder
      • expectedDuration

        public TaskSchedule.Builder expectedDuration​(Double expectedDuration)
        The expected duration of the task execution.
        Parameters:
        expectedDuration - the value to set
        Returns:
        this builder