Class UpdateAlertRuleDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.budget.model.UpdateAlertRuleDetails.Builder
-
- Enclosing class:
- UpdateAlertRuleDetails
public static class UpdateAlertRuleDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateAlertRuleDetailsbuild()UpdateAlertRuleDetails.Buildercopy(UpdateAlertRuleDetails model)UpdateAlertRuleDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.UpdateAlertRuleDetails.Builderdescription(String description)The description of the alert rule.UpdateAlertRuleDetails.BuilderdisplayName(String displayName)The name of the alert rule.UpdateAlertRuleDetails.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.UpdateAlertRuleDetails.Buildermessage(String message)The message to be delivered to the recipients when an alert is triggered.UpdateAlertRuleDetails.Builderrecipients(String recipients)The audience that receives the alert when it triggers.UpdateAlertRuleDetails.Builderthreshold(BigDecimal threshold)The threshold for triggering the alert, expressed as a whole number or decimal value.UpdateAlertRuleDetails.BuilderthresholdType(ThresholdType thresholdType)The type of threshold.UpdateAlertRuleDetails.Buildertype(AlertType type)The type of the alert.
-
-
-
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
-
thresholdType
public UpdateAlertRuleDetails.Builder thresholdType(ThresholdType thresholdType)
The type of threshold.- Parameters:
thresholdType- 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
-
build
public UpdateAlertRuleDetails build()
-
copy
public UpdateAlertRuleDetails.Builder copy(UpdateAlertRuleDetails model)
-
-