Class ExecutionAction.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • executionWindowId

        public ExecutionAction.Builder executionWindowId​(String executionWindowId)
        The OCID of the execution window resource the execution action belongs to.
        Parameters:
        executionWindowId - the value to set
        Returns:
        this builder
      • compartmentId

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

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

        The name does not need to be unique.

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

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

        public ExecutionAction.Builder lifecycleState​(ExecutionAction.LifecycleState lifecycleState)
        The current state of the execution action.

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

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

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

        Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING.

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

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

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

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

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

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

        public ExecutionAction.Builder executionActionOrder​(Integer executionActionOrder)
        The priority order of the execution action.
        Parameters:
        executionActionOrder - the value to set
        Returns:
        this builder
      • actionParams

        public ExecutionAction.Builder actionParams​(Map<String,​String> actionParams)
        Map<ParamName, ParamValue> where a key value pair describes the specific action parameter.

        Example: {“count”: “3”}

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

        public ExecutionAction.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