public static class UpdateAlertRuleDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UpdateAlertRuleDetails |
build() |
UpdateAlertRuleDetails.Builder |
copy(UpdateAlertRuleDetails model) |
UpdateAlertRuleDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
UpdateAlertRuleDetails.Builder |
description(String description)
The description of the alert rule.
|
UpdateAlertRuleDetails.Builder |
displayName(String displayName)
The name of the alert rule.
|
UpdateAlertRuleDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
UpdateAlertRuleDetails.Builder |
message(String message)
The message to be delivered to the recipients when an alert is triggered.
|
UpdateAlertRuleDetails.Builder |
recipients(String recipients)
The audience that receives the alert when it triggers.
|
UpdateAlertRuleDetails.Builder |
threshold(BigDecimal threshold)
The threshold for triggering the alert, expressed as a whole number or decimal value.
|
UpdateAlertRuleDetails.Builder |
thresholdType(ThresholdType thresholdType)
The type of threshold.
|
UpdateAlertRuleDetails.Builder |
type(AlertType type)
The type of the alert.
|
public UpdateAlertRuleDetails.Builder displayName(String displayName)
The name of the alert rule. Avoid entering confidential information.
displayName
- the value to setpublic 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).
type
- the value to setpublic 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.
threshold
- the value to setpublic UpdateAlertRuleDetails.Builder thresholdType(ThresholdType thresholdType)
The type of threshold.
thresholdType
- the value to setpublic 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.
recipients
- the value to setpublic UpdateAlertRuleDetails.Builder description(String description)
The description of the alert rule.
description
- the value to setpublic UpdateAlertRuleDetails.Builder message(String message)
The message to be delivered to the recipients when an alert is triggered.
message
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic UpdateAlertRuleDetails build()
public UpdateAlertRuleDetails.Builder copy(UpdateAlertRuleDetails model)
Copyright © 2016–2024. All rights reserved.