Class CreateAlertRuleDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

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

        Avoid entering confidential information.

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

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

        public CreateAlertRuleDetails.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 CreateAlertRuleDetails.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 CreateAlertRuleDetails.Builder recipients​(String recipients)
        The audience that receives the alert when it triggers.

        An empty string is interpreted as null.

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

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

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