Class AlertPolicy.Builder

  • Enclosing class:
    AlertPolicy

    public static class AlertPolicy.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public AlertPolicy.Builder id​(String id)
        The OCID of the alert policy.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public AlertPolicy.Builder displayName​(String displayName)
        The display name of the alert policy.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • description

        public AlertPolicy.Builder description​(String description)
        The description of the alert policy.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • alertPolicyType

        public AlertPolicy.Builder alertPolicyType​(AlertPolicyType alertPolicyType)
        Indicates the Data Safe feature to which the alert policy belongs.
        Parameters:
        alertPolicyType - the value to set
        Returns:
        this builder
      • isUserDefined

        public AlertPolicy.Builder isUserDefined​(Boolean isUserDefined)
        Indicates if the alert policy is user-defined (true) or pre-defined (false).
        Parameters:
        isUserDefined - the value to set
        Returns:
        this builder
      • severity

        public AlertPolicy.Builder severity​(AlertSeverity severity)
        Severity level of the alert raised by this policy.
        Parameters:
        severity - the value to set
        Returns:
        this builder
      • compartmentId

        public AlertPolicy.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that contains the alert policy.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • timeCreated

        public AlertPolicy.Builder timeCreated​(Date timeCreated)
        Creation date and time of the alert policy, in the format defined by RFC3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public AlertPolicy.Builder timeUpdated​(Date timeUpdated)
        Last date and time the alert policy was updated, in the format defined by RFC3339.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public AlertPolicy.Builder lifecycleDetails​(String lifecycleDetails)
        Details about the current state of the alert policy.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • freeformTags

        public AlertPolicy.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 AlertPolicy.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
      • systemTags

        public AlertPolicy.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        System tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

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