Package com.oracle.bmc.budget.model
Class AlertRuleSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.budget.model.AlertRuleSummary.Builder
-
- Enclosing class:
- AlertRuleSummary
public static class AlertRuleSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertRuleSummary.Builder
budgetId(String budgetId)
The OCID of the budget.AlertRuleSummary
build()
AlertRuleSummary.Builder
copy(AlertRuleSummary model)
AlertRuleSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.AlertRuleSummary.Builder
description(String description)
The description of the alert rule.AlertRuleSummary.Builder
displayName(String displayName)
The name of the alert rule.AlertRuleSummary.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.AlertRuleSummary.Builder
id(String id)
The OCID of the alert rule.AlertRuleSummary.Builder
lifecycleState(LifecycleState lifecycleState)
The current state of the alert rule.AlertRuleSummary.Builder
message(String message)
The custom message that will be sent when the alert is triggered.AlertRuleSummary.Builder
recipients(String recipients)
The audience that receives the alert when it triggers.AlertRuleSummary.Builder
threshold(BigDecimal threshold)
The threshold for triggering the alert.AlertRuleSummary.Builder
thresholdType(ThresholdType thresholdType)
The type of threshold.AlertRuleSummary.Builder
timeCreated(Date timeCreated)
The time when the budget was created.AlertRuleSummary.Builder
timeUpdated(Date timeUpdated)
The time when the budget was updated.AlertRuleSummary.Builder
type(AlertType type)
ACTUAL means the alert triggers based on actual usage.AlertRuleSummary.Builder
version(Integer version)
The version of the alert rule.
-
-
-
Method Detail
-
id
public AlertRuleSummary.Builder id(String id)
The OCID of the alert rule.- Parameters:
id
- the value to set- Returns:
- this builder
-
budgetId
public AlertRuleSummary.Builder budgetId(String budgetId)
The OCID of the budget.- Parameters:
budgetId
- the value to set- Returns:
- this builder
-
displayName
public AlertRuleSummary.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 AlertRuleSummary.Builder type(AlertType type)
ACTUAL means the alert triggers based on actual usage.FORECAST means the alert triggers based on predicted usage.
- Parameters:
type
- the value to set- Returns:
- this builder
-
threshold
public AlertRuleSummary.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
-
thresholdType
public AlertRuleSummary.Builder thresholdType(ThresholdType thresholdType)
The type of threshold.- Parameters:
thresholdType
- the value to set- Returns:
- this builder
-
lifecycleState
public AlertRuleSummary.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the alert rule.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
message
public AlertRuleSummary.Builder message(String message)
The custom message that will be sent when the alert is triggered.- Parameters:
message
- the value to set- Returns:
- this builder
-
description
public AlertRuleSummary.Builder description(String description)
The description of the alert rule.- Parameters:
description
- the value to set- Returns:
- this builder
-
version
public AlertRuleSummary.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
-
recipients
public AlertRuleSummary.Builder recipients(String recipients)
The audience that receives the alert when it triggers.- Parameters:
recipients
- the value to set- Returns:
- this builder
-
timeCreated
public AlertRuleSummary.Builder timeCreated(Date timeCreated)
The time when the budget was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public AlertRuleSummary.Builder timeUpdated(Date timeUpdated)
The time when the budget was updated.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
freeformTags
public AlertRuleSummary.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 AlertRuleSummary.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 AlertRuleSummary build()
-
copy
public AlertRuleSummary.Builder copy(AlertRuleSummary model)
-
-