Class ExecutionWindow.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • executionResourceId

        public ExecutionWindow.Builder executionResourceId​(String executionResourceId)
        The OCID of the execution resource the execution window belongs to.
        Parameters:
        executionResourceId - the value to set
        Returns:
        this builder
      • deferredExecutionWindowId

        public ExecutionWindow.Builder deferredExecutionWindowId​(String deferredExecutionWindowId)
        The OCID of the new execution window created as part of reschedule for the execution window failure.
        Parameters:
        deferredExecutionWindowId - the value to set
        Returns:
        this builder
      • compartmentId

        public ExecutionWindow.Builder compartmentId​(String compartmentId)
        The OCID of the compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • displayName

        public ExecutionWindow.Builder displayName​(String displayName)
        The user-friendly name for the execution window.

        The name does not need to be unique.

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

        public ExecutionWindow.Builder description​(String description)
        Description of the execution window.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • lifecycleState

        public ExecutionWindow.Builder lifecycleState​(ExecutionWindow.LifecycleState lifecycleState)
        The current state of the Schedule Policy.

        Valid states are CREATED, SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS.

        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleSubstate

        public ExecutionWindow.Builder lifecycleSubstate​(ExecutionWindow.LifecycleSubstate lifecycleSubstate)
        The current sub-state of the execution window.

        Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING.

        Parameters:
        lifecycleSubstate - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public ExecutionWindow.Builder lifecycleDetails​(String lifecycleDetails)
        Additional information about the current lifecycle state.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • timeCreated

        public ExecutionWindow.Builder timeCreated​(Date timeCreated)
        The date and time the execution window was created.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public ExecutionWindow.Builder timeUpdated​(Date timeUpdated)
        The last date and time that the execution window was updated.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • timeStarted

        public ExecutionWindow.Builder timeStarted​(Date timeStarted)
        The date and time that the execution window was started.
        Parameters:
        timeStarted - the value to set
        Returns:
        this builder
      • timeEnded

        public ExecutionWindow.Builder timeEnded​(Date timeEnded)
        The date and time that the execution window ended.
        Parameters:
        timeEnded - the value to set
        Returns:
        this builder
      • timeScheduled

        public ExecutionWindow.Builder timeScheduled​(Date timeScheduled)
        The scheduled start date and time of the execution window.
        Parameters:
        timeScheduled - the value to set
        Returns:
        this builder
      • windowDurationInMins

        public ExecutionWindow.Builder windowDurationInMins​(Integer windowDurationInMins)
        Duration window allows user to set a duration they plan to allocate for Scheduling window.

        The duration is in minutes.

        Parameters:
        windowDurationInMins - the value to set
        Returns:
        this builder
      • isEnforcedDuration

        public ExecutionWindow.Builder isEnforcedDuration​(Boolean isEnforcedDuration)
        Indicates if duration the user plans to allocate for scheduling window is strictly enforced.

        The default value is FALSE.

        Parameters:
        isEnforcedDuration - the value to set
        Returns:
        this builder
      • estimatedTimeInMins

        public ExecutionWindow.Builder estimatedTimeInMins​(Integer estimatedTimeInMins)
        The estimated time of the execution window in minutes.
        Parameters:
        estimatedTimeInMins - the value to set
        Returns:
        this builder
      • totalTimeTakenInMins

        public ExecutionWindow.Builder totalTimeTakenInMins​(Integer totalTimeTakenInMins)
        The total time taken by corresponding resource activity in minutes.
        Parameters:
        totalTimeTakenInMins - the value to set
        Returns:
        this builder
      • freeformTags

        public ExecutionWindow.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"}

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

        public ExecutionWindow.Builder windowDetails​(String windowDetails)
        A message that gives a description of its creation.

        For example, if the window type is unplanned, the message must specify the window display name. If the window has been deferred from another window, the message should additionally reference the deferred window\u2019s display name and provide the justification for creating the unplanned window.

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