public class AlertRuleResourcePatch extends Object
| Constructor and Description |
|---|
AlertRuleResourcePatch() |
| Modifier and Type | Method and Description |
|---|---|
List<RuleAction> |
actions()
Get the actions property: 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 property: the condition that results in the alert rule being activated.
|
String |
description()
Get the description property: the description of the alert rule that will be included in the alert email.
|
Boolean |
isEnabled()
Get the isEnabled property: the flag that indicates whether the alert rule is enabled.
|
OffsetDateTime |
lastUpdatedTime()
Get the lastUpdatedTime property: Last time the rule was updated in ISO8601 format.
|
String |
name()
Get the name property: the name of the alert rule.
|
Map<String,String> |
tags()
Get the tags property: Resource tags.
|
void |
validate()
Validates the instance.
|
AlertRuleResourcePatch |
withActions(List<RuleAction> actions)
Set the actions property: 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 property: the condition that results in the alert rule being activated.
|
AlertRuleResourcePatch |
withDescription(String description)
Set the description property: the description of the alert rule that will be included in the alert email.
|
AlertRuleResourcePatch |
withIsEnabled(Boolean isEnabled)
Set the isEnabled property: the flag that indicates whether the alert rule is enabled.
|
AlertRuleResourcePatch |
withName(String name)
Set the name property: the name of the alert rule.
|
AlertRuleResourcePatch |
withTags(Map<String,String> tags)
Set the tags property: Resource tags.
|
public Map<String,String> tags()
public AlertRuleResourcePatch withTags(Map<String,String> tags)
tags - the tags value to set.public String name()
public AlertRuleResourcePatch withName(String name)
name - the name value to set.public String description()
public AlertRuleResourcePatch withDescription(String description)
description - the description value to set.public Boolean isEnabled()
public AlertRuleResourcePatch withIsEnabled(Boolean isEnabled)
isEnabled - the isEnabled value to set.public RuleCondition condition()
public AlertRuleResourcePatch withCondition(RuleCondition condition)
condition - the condition value to set.public List<RuleAction> actions()
public AlertRuleResourcePatch withActions(List<RuleAction> actions)
actions - the actions value to set.public OffsetDateTime lastUpdatedTime()
public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.