Class AlertSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

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

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

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

        public AlertSummary.Builder severity​(AlertSeverity severity)
        Severity level of the alert.
        Parameters:
        severity - the value to set
        Returns:
        this builder
      • operationTime

        public AlertSummary.Builder operationTime​(Date operationTime)
        Creation date and time of the operation that triggered alert, in the format defined by RFC3339.
        Parameters:
        operationTime - the value to set
        Returns:
        this builder
      • operation

        public AlertSummary.Builder operation​(String operation)
        The operation that triggered alert.
        Parameters:
        operation - the value to set
        Returns:
        this builder
      • operationStatus

        public AlertSummary.Builder operationStatus​(AlertSummary.OperationStatus operationStatus)
        The result of the operation (event) that triggered alert.
        Parameters:
        operationStatus - the value to set
        Returns:
        this builder
      • targetIds

        public AlertSummary.Builder targetIds​(List<String> targetIds)
        Array of OCIDs of the target database.
        Parameters:
        targetIds - the value to set
        Returns:
        this builder
      • targetNames

        public AlertSummary.Builder targetNames​(List<String> targetNames)
        Array of names of the target database.
        Parameters:
        targetNames - the value to set
        Returns:
        this builder
      • policyId

        public AlertSummary.Builder policyId​(String policyId)
        The OCID of the policy that triggered alert.
        Parameters:
        policyId - the value to set
        Returns:
        this builder
      • alertType

        public AlertSummary.Builder alertType​(AlertType alertType)
        Type of the alert.

        Indicates the Data Safe feature triggering the alert.

        Parameters:
        alertType - the value to set
        Returns:
        this builder
      • compartmentId

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

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

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

        public AlertSummary.Builder lifecycleState​(AlertLifecycleState lifecycleState)
        The current state of the alert.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • alertPolicyRuleKey

        public AlertSummary.Builder alertPolicyRuleKey​(String alertPolicyRuleKey)
        The key of the rule of alert policy that triggered alert.
        Parameters:
        alertPolicyRuleKey - the value to set
        Returns:
        this builder
      • alertPolicyRuleName

        public AlertSummary.Builder alertPolicyRuleName​(String alertPolicyRuleName)
        The display name of the rule of alert policy that triggered alert.
        Parameters:
        alertPolicyRuleName - the value to set
        Returns:
        this builder
      • featureDetails

        public AlertSummary.Builder featureDetails​(Map<String,​Map<String,​Object>> featureDetails)
        Map that contains maps of values.

        Example: {“Operations”: {“CostCenter”: “42”}}

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

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