Class SchedulingPlan.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

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

        public SchedulingPlan.Builder schedulingPolicyId​(String schedulingPolicyId)
        The OCID of the Scheduling Policy.
        Parameters:
        schedulingPolicyId - the value to set
        Returns:
        this builder
      • resourceId

        public SchedulingPlan.Builder resourceId​(String resourceId)
        The OCID of the resource.
        Parameters:
        resourceId - the value to set
        Returns:
        this builder
      • displayName

        public SchedulingPlan.Builder displayName​(String displayName)
        The display name of the Scheduling Plan.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • lifecycleState

        public SchedulingPlan.Builder lifecycleState​(SchedulingPlan.LifecycleState lifecycleState)
        The current state of the Scheduling Plan.

        Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.

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

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

        public SchedulingPlan.Builder isUsingRecommendedScheduledActions​(Boolean isUsingRecommendedScheduledActions)
        If true, recommended scheduled actions will be generated for the scheduling plan.
        Parameters:
        isUsingRecommendedScheduledActions - the value to set
        Returns:
        this builder
      • planIntent

        public SchedulingPlan.Builder planIntent​(SchedulingPlan.PlanIntent planIntent)
        The current intent the Scheduling Plan.

        Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.

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

        public SchedulingPlan.Builder estimatedTimeInMins​(Integer estimatedTimeInMins)
        The estimated time for the Scheduling Plan.
        Parameters:
        estimatedTimeInMins - the value to set
        Returns:
        this builder
      • timeCreated

        public SchedulingPlan.Builder timeCreated​(Date timeCreated)
        The date and time the Scheduling Plan Resource was created.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public SchedulingPlan.Builder timeUpdated​(Date timeUpdated)
        The date and time the Scheduling Plan Resource was updated.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • freeformTags

        public SchedulingPlan.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
      • definedTags

        public SchedulingPlan.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

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