Package com.oracle.bmc.budget.model
Class AlertRule.Builder
- java.lang.Object
- 
- com.oracle.bmc.budget.model.AlertRule.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertRule.BuilderbudgetId(String budgetId)The OCID of the budget.AlertRulebuild()AlertRule.Buildercopy(AlertRule model)AlertRule.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.AlertRule.Builderdescription(String description)The description of the alert rule.AlertRule.BuilderdisplayName(String displayName)The name of the alert rule.AlertRule.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.AlertRule.Builderid(String id)The OCID of the alert rule.AlertRule.BuilderlifecycleState(LifecycleState lifecycleState)The current state of the alert rule.AlertRule.Buildermessage(String message)Custom message sent when an alert is triggered.AlertRule.Builderrecipients(String recipients)The delimited list of email addresses to receive the alert when it triggers.AlertRule.Builderthreshold(BigDecimal threshold)The threshold for triggering the alert.AlertRule.BuilderthresholdType(ThresholdType thresholdType)The type of threshold.AlertRule.BuildertimeCreated(Date timeCreated)The time the budget was created.AlertRule.BuildertimeUpdated(Date timeUpdated)The time the budget was updated.AlertRule.Buildertype(AlertType type)The type of the alert.AlertRule.Builderversion(Integer version)The version of the alert rule.
 
- 
- 
- 
Method Detail- 
idpublic AlertRule.Builder id(String id) The OCID of the alert rule.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
budgetIdpublic AlertRule.Builder budgetId(String budgetId) The OCID of the budget.- Parameters:
- budgetId- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic AlertRule.Builder displayName(String displayName) The name of the alert rule.Avoid entering confidential information. - Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
typepublic AlertRule.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
 
 - 
thresholdpublic AlertRule.Builder threshold(BigDecimal threshold) The threshold for triggering the alert.If the thresholdType is PERCENTAGE, the maximum value is 10000. - Parameters:
- threshold- the value to set
- Returns:
- this builder
 
 - 
thresholdTypepublic AlertRule.Builder thresholdType(ThresholdType thresholdType) The type of threshold.- Parameters:
- thresholdType- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic AlertRule.Builder lifecycleState(LifecycleState lifecycleState) The current state of the alert rule.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
messagepublic AlertRule.Builder message(String message) Custom message sent when an alert is triggered.- Parameters:
- message- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic AlertRule.Builder description(String description) The description of the alert rule.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
versionpublic AlertRule.Builder version(Integer version) The version of the alert rule.Starts from 1 and increments by 1. - Parameters:
- version- the value to set
- Returns:
- this builder
 
 - 
recipientspublic AlertRule.Builder recipients(String recipients) The delimited list of email addresses to receive the alert when it triggers.Delimiter characters can be a comma, space, TAB, or semicolon. - Parameters:
- recipients- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic AlertRule.Builder timeCreated(Date timeCreated) The time the budget was created.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic AlertRule.Builder timeUpdated(Date timeUpdated) The time the budget was updated.- Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic AlertRule.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
 
 - 
definedTagspublic AlertRule.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
 
 - 
buildpublic AlertRule build() 
 - 
copypublic AlertRule.Builder copy(AlertRule model) 
 
- 
 
-