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