public static class AlertRuleSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public AlertRuleSummary.Builder id(String id)
The OCID of the alert rule.
id
- the value to setpublic AlertRuleSummary.Builder budgetId(String budgetId)
The OCID of the budget.
budgetId
- the value to setpublic AlertRuleSummary.Builder displayName(String displayName)
The name of the alert rule. Avoid entering confidential information.
displayName
- the value to setpublic AlertRuleSummary.Builder type(AlertType type)
ACTUAL means the alert triggers based on actual usage. FORECAST means the alert triggers based on predicted usage.
type
- the value to setpublic AlertRuleSummary.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 AlertRuleSummary.Builder thresholdType(ThresholdType thresholdType)
The type of threshold.
thresholdType
- the value to setpublic AlertRuleSummary.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the alert rule.
lifecycleState
- the value to setpublic AlertRuleSummary.Builder message(String message)
The custom message that will be sent when the alert is triggered.
message
- the value to setpublic AlertRuleSummary.Builder description(String description)
The description of the alert rule.
description
- the value to setpublic AlertRuleSummary.Builder version(Integer version)
The version of the alert rule. Starts from 1 and increments by 1.
version
- the value to setpublic AlertRuleSummary.Builder recipients(String recipients)
The audience that receives the alert when it triggers.
recipients
- the value to setpublic AlertRuleSummary.Builder timeCreated(Date timeCreated)
The time when the budget was created.
timeCreated
- the value to setpublic AlertRuleSummary.Builder timeUpdated(Date timeUpdated)
The time when the budget was updated.
timeUpdated
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic AlertRuleSummary build()
public AlertRuleSummary.Builder copy(AlertRuleSummary model)
Copyright © 2016–2024. All rights reserved.