Class SchedulingPolicy.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

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

        public SchedulingPolicy.Builder displayName​(String displayName)
        The user-friendly name for the Scheduling Policy.

        The name does not need to be unique.

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

        public SchedulingPolicy.Builder lifecycleState​(SchedulingPolicy.LifecycleState lifecycleState)
        The current state of the Scheduling Policy.

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

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

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

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

        public SchedulingPolicy.Builder timeUpdated​(Date timeUpdated)
        The last date and time that the Scheduling Policy was updated.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • cadenceStartMonth

        public SchedulingPolicy.Builder cadenceStartMonth​(Month cadenceStartMonth)
        Start of the month to be followed during the cadence period.
        Parameters:
        cadenceStartMonth - the value to set
        Returns:
        this builder
      • timeNextWindowStarts

        public SchedulingPolicy.Builder timeNextWindowStarts​(Date timeNextWindowStarts)
        The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
        Parameters:
        timeNextWindowStarts - the value to set
        Returns:
        this builder
      • freeformTags

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