Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AlertRule.Builder |
budgetId(String budgetId)
The OCID of the budget.
|
AlertRule |
build() |
AlertRule.Builder |
copy(AlertRule model) |
AlertRule.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
AlertRule.Builder |
description(String description)
The description of the alert rule.
|
AlertRule.Builder |
displayName(String displayName)
The name of the alert rule.
|
AlertRule.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
AlertRule.Builder |
id(String id)
The OCID of the alert rule.
|
AlertRule.Builder |
lifecycleState(LifecycleState lifecycleState)
The current state of the alert rule.
|
AlertRule.Builder |
message(String message)
Custom message sent when an alert is triggered.
|
AlertRule.Builder |
recipients(String recipients)
The delimited list of email addresses to receive the alert when it triggers.
|
AlertRule.Builder |
threshold(BigDecimal threshold)
The threshold for triggering the alert.
|
AlertRule.Builder |
thresholdType(ThresholdType thresholdType)
The type of threshold.
|
AlertRule.Builder |
timeCreated(Date timeCreated)
The time the budget was created.
|
AlertRule.Builder |
timeUpdated(Date timeUpdated)
The time the budget was updated.
|
AlertRule.Builder |
type(AlertType type)
The type of the alert.
|
AlertRule.Builder |
version(Integer version)
The version of the alert rule.
|
public AlertRule.Builder id(String id)
The OCID of the alert rule.
id
- the value to setpublic AlertRule.Builder budgetId(String budgetId)
The OCID of the budget.
budgetId
- the value to setpublic AlertRule.Builder displayName(String displayName)
The name of the alert rule. Avoid entering confidential information.
displayName
- the value to setpublic 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).
type
- the value to setpublic AlertRule.Builder threshold(BigDecimal threshold)
The threshold for triggering the alert. If the thresholdType is PERCENTAGE, the maximum value is 10000.
threshold
- the value to setpublic AlertRule.Builder thresholdType(ThresholdType thresholdType)
The type of threshold.
thresholdType
- the value to setpublic AlertRule.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the alert rule.
lifecycleState
- the value to setpublic AlertRule.Builder message(String message)
Custom message sent when an alert is triggered.
message
- the value to setpublic AlertRule.Builder description(String description)
The description of the alert rule.
description
- the value to setpublic AlertRule.Builder version(Integer version)
The version of the alert rule. Starts from 1 and increments by 1.
version
- the value to setpublic 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.
recipients
- the value to setpublic AlertRule.Builder timeCreated(Date timeCreated)
The time the budget was created.
timeCreated
- the value to setpublic AlertRule.Builder timeUpdated(Date timeUpdated)
The time the budget was updated.
timeUpdated
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic AlertRule build()
public AlertRule.Builder copy(AlertRule model)
Copyright © 2016–2024. All rights reserved.