Class MaintenanceExecution.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public MaintenanceExecution.Builder displayName​(String displayName)
        The user-friendly name for the maintenance run execution.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • description

        public MaintenanceExecution.Builder description​(String description)
        Description of the maintenance run execution.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • lifecycleDetails

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

        public MaintenanceExecution.Builder timeStarted​(Date timeStarted)
        The date and time the maintenance run execution started.
        Parameters:
        timeStarted - the value to set
        Returns:
        this builder
      • timeEnded

        public MaintenanceExecution.Builder timeEnded​(Date timeEnded)
        The date and time the maintenance run was completed.
        Parameters:
        timeEnded - the value to set
        Returns:
        this builder
      • targetResourceType

        public MaintenanceExecution.Builder targetResourceType​(TargetResourceTypeEnum targetResourceType)
        The type of the target resource on which the maintenance run execution occurred.
        Parameters:
        targetResourceType - the value to set
        Returns:
        this builder
      • infrastructureId

        public MaintenanceExecution.Builder infrastructureId​(String infrastructureId)
        The OCID of the Database Infrastructure on which the maintenance run execution occurred.
        Parameters:
        infrastructureId - the value to set
        Returns:
        this builder
      • maintenanceRunId

        public MaintenanceExecution.Builder maintenanceRunId​(String maintenanceRunId)
        The OCID of the maintenance run to which this maintenance execution belongs.
        Parameters:
        maintenanceRunId - the value to set
        Returns:
        this builder
      • patchingMode

        public MaintenanceExecution.Builder patchingMode​(PatchingModeEnum patchingMode)
        The patching mode for the maintenance run that is being executed.
        Parameters:
        patchingMode - the value to set
        Returns:
        this builder
      • sourceVersion

        public MaintenanceExecution.Builder sourceVersion​(String sourceVersion)
        The source software version for the Oracle infrastructure.
        Parameters:
        sourceVersion - the value to set
        Returns:
        this builder
      • targetVersion

        public MaintenanceExecution.Builder targetVersion​(String targetVersion)
        The target software version for the Database Infrastructure patching operation.
        Parameters:
        targetVersion - the value to set
        Returns:
        this builder
      • isCustomActionTimeoutEnabled

        public MaintenanceExecution.Builder isCustomActionTimeoutEnabled​(Boolean isCustomActionTimeoutEnabled)
        At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.
        Parameters:
        isCustomActionTimeoutEnabled - the value to set
        Returns:
        this builder
      • customActionTimeoutInMins

        public MaintenanceExecution.Builder customActionTimeoutInMins​(Integer customActionTimeoutInMins)
        Determines the amount of time the system will wait before the start of each compute server patching operation.

        Supported values are 15 to 120 minutes.

        Parameters:
        customActionTimeoutInMins - the value to set
        Returns:
        this builder
      • workflowId

        public MaintenanceExecution.Builder workflowId​(String workflowId)
        The OCID of the work request executed by this execution.
        Parameters:
        workflowId - the value to set
        Returns:
        this builder
      • systemTags

        public MaintenanceExecution.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        Usage of system tag keys.

        These predefined keys are scoped to namespaces. Example: { “orcl-cloud”: { “free-tier-retained”: “true” } }

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

        public MaintenanceExecution.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
      • freeformTags

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

        This tag option exists for cross-compatibility only. Example: {“bar-key”: “value”}

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

        public MaintenanceExecution.Builder totalTimeTakenInMins​(Integer totalTimeTakenInMins)
        The total time taken by this execution in minutes.
        Parameters:
        totalTimeTakenInMins - the value to set
        Returns:
        this builder