Class InstanceMaintenanceEvent.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public InstanceMaintenanceEvent.Builder displayName​(String displayName)
        A user-friendly name.

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

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

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

        Example: {"Operations": {"CostCenter": "42"}}

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

        public InstanceMaintenanceEvent.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
      • compartmentId

        public InstanceMaintenanceEvent.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that contains the instance.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • maintenanceCategory

        public InstanceMaintenanceEvent.Builder maintenanceCategory​(InstanceMaintenanceEvent.MaintenanceCategory maintenanceCategory)
        This indicates the priority and allowed actions for this Maintenance.

        Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the Instance Maintenance documentation for details.

        Parameters:
        maintenanceCategory - the value to set
        Returns:
        this builder
      • timeStarted

        public InstanceMaintenanceEvent.Builder timeStarted​(Date timeStarted)
        The time at which the Maintenance actually started.
        Parameters:
        timeStarted - the value to set
        Returns:
        this builder
      • timeFinished

        public InstanceMaintenanceEvent.Builder timeFinished​(Date timeFinished)
        The time at which the Maintenance actually finished.
        Parameters:
        timeFinished - the value to set
        Returns:
        this builder
      • timeWindowStart

        public InstanceMaintenanceEvent.Builder timeWindowStart​(Date timeWindowStart)
        The beginning of the time window when Maintenance is scheduled to begin.

        The Maintenance will not begin before this time.

        Parameters:
        timeWindowStart - the value to set
        Returns:
        this builder
      • startWindowDuration

        public InstanceMaintenanceEvent.Builder startWindowDuration​(String startWindowDuration)
        The duration of the time window Maintenance is scheduled to begin within.
        Parameters:
        startWindowDuration - the value to set
        Returns:
        this builder
      • estimatedDuration

        public InstanceMaintenanceEvent.Builder estimatedDuration​(String estimatedDuration)
        This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state.
        Parameters:
        estimatedDuration - the value to set
        Returns:
        this builder
      • timeHardDueDate

        public InstanceMaintenanceEvent.Builder timeHardDueDate​(Date timeHardDueDate)
        It is the scheduled hard due date and time of the maintenance event.

        The maintenance event will happen at this time and the due date will not be extended.

        Parameters:
        timeHardDueDate - the value to set
        Returns:
        this builder
      • canReschedule

        public InstanceMaintenanceEvent.Builder canReschedule​(Boolean canReschedule)
        Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate.
        Parameters:
        canReschedule - the value to set
        Returns:
        this builder
      • timeCreated

        public InstanceMaintenanceEvent.Builder timeCreated​(Date timeCreated)
        The date and time the maintenance event was created, in the format defined by RFC3339.

        Example: 2016-08-25T21:10:29.600Z

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

        public InstanceMaintenanceEvent.Builder lifecycleDetails​(String lifecycleDetails)
        Provides more details about the state of the maintenance event.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • description

        public InstanceMaintenanceEvent.Builder description​(String description)
        It is the descriptive information about the maintenance taking place on the customer instance.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • correlationToken

        public InstanceMaintenanceEvent.Builder correlationToken​(String correlationToken)
        A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed.

        Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken.

        Parameters:
        correlationToken - the value to set
        Returns:
        this builder
      • canDeleteLocalStorage

        public InstanceMaintenanceEvent.Builder canDeleteLocalStorage​(Boolean canDeleteLocalStorage)
        For Instances that have local storage, this field is set to true when local storage will be deleted as a result of the Maintenance.
        Parameters:
        canDeleteLocalStorage - the value to set
        Returns:
        this builder
      • additionalDetails

        public InstanceMaintenanceEvent.Builder additionalDetails​(Map<String,​String> additionalDetails)
        Additional details of the maintenance in the form of json.
        Parameters:
        additionalDetails - the value to set
        Returns:
        this builder