Class UpdateAlertRuleDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public UpdateAlertRuleDetails.Builder displayName​(String displayName)
        The name of the alert rule.

        Avoid entering confidential information.

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

        public UpdateAlertRuleDetails.Builder type​(AlertType type)
        The type of the alert.

        Valid values are ACTUAL (the alert triggers based on actual usage), or FORECAST (the alert triggers based on predicted usage).

        Parameters:
        type - the value to set
        Returns:
        this builder
      • threshold

        public UpdateAlertRuleDetails.Builder threshold​(BigDecimal threshold)
        The threshold for triggering the alert, expressed as a whole number or decimal value.

        If the thresholdType is ABSOLUTE, the threshold can have at most 12 digits before the decimal point, and up to two digits after the decimal point. If the thresholdType is PERCENTAGE, the maximum value is 10000 and can have up to two digits after the decimal point.

        Parameters:
        threshold - the value to set
        Returns:
        this builder
      • recipients

        public UpdateAlertRuleDetails.Builder recipients​(String recipients)
        The audience that receives the alert when it triggers.

        If you need to clear out this value, pass in an empty string instead of a null value.

        Parameters:
        recipients - the value to set
        Returns:
        this builder
      • description

        public UpdateAlertRuleDetails.Builder description​(String description)
        The description of the alert rule.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • message

        public UpdateAlertRuleDetails.Builder message​(String message)
        The message to be delivered to the recipients when an alert is triggered.
        Parameters:
        message - the value to set
        Returns:
        this builder
      • freeformTags

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