public class AlertRuleResourcePatch extends Object
Constructor and Description |
---|
AlertRuleResourcePatch() |
Modifier and Type | Method and Description |
---|---|
List<RuleAction> |
actions()
Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
|
RuleCondition |
condition()
Get the condition that results in the alert rule being activated.
|
String |
description()
Get the description of the alert rule that will be included in the alert email.
|
boolean |
isEnabled()
Get the flag that indicates whether the alert rule is enabled.
|
org.joda.time.DateTime |
lastUpdatedTime()
Get last time the rule was updated in ISO8601 format.
|
String |
name()
Get the name of the alert rule.
|
Map<String,String> |
tags()
Get resource tags.
|
AlertRuleResourcePatch |
withActions(List<RuleAction> actions)
Set the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
|
AlertRuleResourcePatch |
withCondition(RuleCondition condition)
Set the condition that results in the alert rule being activated.
|
AlertRuleResourcePatch |
withDescription(String description)
Set the description of the alert rule that will be included in the alert email.
|
AlertRuleResourcePatch |
withIsEnabled(boolean isEnabled)
Set the flag that indicates whether the alert rule is enabled.
|
AlertRuleResourcePatch |
withName(String name)
Set the name of the alert rule.
|
AlertRuleResourcePatch |
withTags(Map<String,String> tags)
Set resource tags.
|
public AlertRuleResourcePatch withTags(Map<String,String> tags)
tags
- the tags value to setpublic String name()
public AlertRuleResourcePatch withName(String name)
name
- the name value to setpublic String description()
public AlertRuleResourcePatch withDescription(String description)
description
- the description value to setpublic boolean isEnabled()
public AlertRuleResourcePatch withIsEnabled(boolean isEnabled)
isEnabled
- the isEnabled value to setpublic RuleCondition condition()
public AlertRuleResourcePatch withCondition(RuleCondition condition)
condition
- the condition value to setpublic List<RuleAction> actions()
public AlertRuleResourcePatch withActions(List<RuleAction> actions)
actions
- the actions value to setpublic org.joda.time.DateTime lastUpdatedTime()
Copyright © 2019. All rights reserved.