public class ActivityLogAlertResourceInner
extends com.azure.core.management.Resource
| Constructor and Description |
|---|
ActivityLogAlertResourceInner() |
| Modifier and Type | Method and Description |
|---|---|
ActivityLogAlertActionList |
actions()
Get the actions property: The actions that will activate when the condition is met.
|
ActivityLogAlertAllOfCondition |
condition()
Get the condition property: The condition that will cause this alert to activate.
|
String |
description()
Get the description property: A description of this activity log alert.
|
Boolean |
enabled()
Get the enabled property: Indicates whether this activity log alert is enabled.
|
List<String> |
scopes()
Get the scopes property: A list of resourceIds that will be used as prefixes.
|
void |
validate()
Validates the instance.
|
ActivityLogAlertResourceInner |
withActions(ActivityLogAlertActionList actions)
Set the actions property: The actions that will activate when the condition is met.
|
ActivityLogAlertResourceInner |
withCondition(ActivityLogAlertAllOfCondition condition)
Set the condition property: The condition that will cause this alert to activate.
|
ActivityLogAlertResourceInner |
withDescription(String description)
Set the description property: A description of this activity log alert.
|
ActivityLogAlertResourceInner |
withEnabled(Boolean enabled)
Set the enabled property: Indicates whether this activity log alert is enabled.
|
ActivityLogAlertResourceInner |
withScopes(List<String> scopes)
Set the scopes property: A list of resourceIds that will be used as prefixes.
|
public List<String> scopes()
public ActivityLogAlertResourceInner withScopes(List<String> scopes)
scopes - the scopes value to set.public Boolean enabled()
public ActivityLogAlertResourceInner withEnabled(Boolean enabled)
enabled - the enabled value to set.public ActivityLogAlertAllOfCondition condition()
public ActivityLogAlertResourceInner withCondition(ActivityLogAlertAllOfCondition condition)
condition - the condition value to set.public ActivityLogAlertActionList actions()
public ActivityLogAlertResourceInner withActions(ActivityLogAlertActionList actions)
actions - the actions value to set.public String description()
public ActivityLogAlertResourceInner withDescription(String description)
description - the description value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.