Class AlertPolicySummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

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

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

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

        public AlertPolicySummary.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 AlertPolicySummary.Builder severity​(AlertSeverity severity)
        Severity level of the alert raised by this policy.
        Parameters:
        severity - the value to set
        Returns:
        this builder
      • compartmentId

        public AlertPolicySummary.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 AlertPolicySummary.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 AlertPolicySummary.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 AlertPolicySummary.Builder lifecycleDetails​(String lifecycleDetails)
        Details about the current state of the alert policy.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • freeformTags

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