public static class AlertPolicyRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public AlertPolicyRule.Builder key(String key)
The unique key of the alert policy rule.
key
- the value to setpublic AlertPolicyRule.Builder description(String description)
Describes the alert policy rule.
description
- the value to setpublic AlertPolicyRule.Builder expression(String expression)
The conditional expression of the alert policy rule which evaluates to boolean value.
expression
- the value to setpublic AlertPolicyRule.Builder lifecycleState(AlertPolicyRuleLifecycleState lifecycleState)
The current state of the alert policy rule.
lifecycleState
- the value to setpublic AlertPolicyRule.Builder displayName(String displayName)
The display name of the alert policy rule.
displayName
- the value to setpublic AlertPolicyRule.Builder timeCreated(Date timeCreated)
Creation date and time of the alert policy rule, in the format defined by RFC3339.
timeCreated
- the value to setpublic AlertPolicyRule build()
public AlertPolicyRule.Builder copy(AlertPolicyRule model)
Copyright © 2016–2024. All rights reserved.