Package com.oracle.bmc.datasafe.model
Class AlertPolicyRule.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.AlertPolicyRule.Builder
-
- Enclosing class:
- AlertPolicyRule
public static class AlertPolicyRule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertPolicyRule
build()
AlertPolicyRule.Builder
copy(AlertPolicyRule model)
AlertPolicyRule.Builder
description(String description)
Describes the alert policy rule.AlertPolicyRule.Builder
displayName(String displayName)
The display name of the alert policy rule.AlertPolicyRule.Builder
expression(String expression)
The conditional expression of the alert policy rule which evaluates to boolean value.AlertPolicyRule.Builder
key(String key)
The unique key of the alert policy rule.AlertPolicyRule.Builder
lifecycleState(AlertPolicyRuleLifecycleState lifecycleState)
The current state of the alert policy rule.AlertPolicyRule.Builder
timeCreated(Date timeCreated)
Creation date and time of the alert policy rule, in the format defined by RFC3339.
-
-
-
Method Detail
-
key
public AlertPolicyRule.Builder key(String key)
The unique key of the alert policy rule.- Parameters:
key
- the value to set- Returns:
- this builder
-
description
public AlertPolicyRule.Builder description(String description)
Describes the alert policy rule.- Parameters:
description
- the value to set- Returns:
- this builder
-
expression
public AlertPolicyRule.Builder expression(String expression)
The conditional expression of the alert policy rule which evaluates to boolean value.- Parameters:
expression
- the value to set- Returns:
- this builder
-
lifecycleState
public AlertPolicyRule.Builder lifecycleState(AlertPolicyRuleLifecycleState lifecycleState)
The current state of the alert policy rule.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
displayName
public AlertPolicyRule.Builder displayName(String displayName)
The display name of the alert policy rule.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
timeCreated
public AlertPolicyRule.Builder timeCreated(Date timeCreated)
Creation date and time of the alert policy rule, in the format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
build
public AlertPolicyRule build()
-
copy
public AlertPolicyRule.Builder copy(AlertPolicyRule model)
-
-