Class ActivityLogAlertResourceInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.monitor.models.ResourceAutoGenerated2
-
- com.azure.resourcemanager.monitor.fluent.models.ActivityLogAlertResourceInner
-
public class ActivityLogAlertResourceInner extends ResourceAutoGenerated2
An activity log alert resource.
-
-
Constructor Summary
Constructors Constructor Description ActivityLogAlertResourceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivityLogAlertActionListactions()Get the actions property: The actions that will activate when the condition is met.ActivityLogAlertAllOfConditioncondition()Get the condition property: The condition that will cause this alert to activate.Stringdescription()Get the description property: A description of this activity log alert.Booleanenabled()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.voidvalidate()Validates the instance.ActivityLogAlertResourceInnerwithActions(ActivityLogAlertActionList actions)Set the actions property: The actions that will activate when the condition is met.ActivityLogAlertResourceInnerwithCondition(ActivityLogAlertAllOfCondition condition)Set the condition property: The condition that will cause this alert to activate.ActivityLogAlertResourceInnerwithDescription(String description)Set the description property: A description of this activity log alert.ActivityLogAlertResourceInnerwithEnabled(Boolean enabled)Set the enabled property: Indicates whether this activity log alert is enabled.ActivityLogAlertResourceInnerwithLocation(String location)ActivityLogAlertResourceInnerwithScopes(List<String> scopes)Set the scopes property: A list of resourceIds that will be used as prefixes.ActivityLogAlertResourceInnerwithTags(Map<String,String> tags)
-
-
-
Method Detail
-
scopes
public List<String> scopes()
Get the scopes property: A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.- Returns:
- the scopes value.
-
withScopes
public ActivityLogAlertResourceInner withScopes(List<String> scopes)
Set the scopes property: A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.- Parameters:
scopes- the scopes value to set.- Returns:
- the ActivityLogAlertResourceInner object itself.
-
enabled
public Boolean enabled()
Get the enabled property: Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.- Returns:
- the enabled value.
-
withEnabled
public ActivityLogAlertResourceInner withEnabled(Boolean enabled)
Set the enabled property: Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.- Parameters:
enabled- the enabled value to set.- Returns:
- the ActivityLogAlertResourceInner object itself.
-
condition
public ActivityLogAlertAllOfCondition condition()
Get the condition property: The condition that will cause this alert to activate.- Returns:
- the condition value.
-
withCondition
public ActivityLogAlertResourceInner withCondition(ActivityLogAlertAllOfCondition condition)
Set the condition property: The condition that will cause this alert to activate.- Parameters:
condition- the condition value to set.- Returns:
- the ActivityLogAlertResourceInner object itself.
-
actions
public ActivityLogAlertActionList actions()
Get the actions property: The actions that will activate when the condition is met.- Returns:
- the actions value.
-
withActions
public ActivityLogAlertResourceInner withActions(ActivityLogAlertActionList actions)
Set the actions property: The actions that will activate when the condition is met.- Parameters:
actions- the actions value to set.- Returns:
- the ActivityLogAlertResourceInner object itself.
-
description
public String description()
Get the description property: A description of this activity log alert.- Returns:
- the description value.
-
withDescription
public ActivityLogAlertResourceInner withDescription(String description)
Set the description property: A description of this activity log alert.- Parameters:
description- the description value to set.- Returns:
- the ActivityLogAlertResourceInner object itself.
-
withLocation
public ActivityLogAlertResourceInner withLocation(String location)
- Overrides:
withLocationin classResourceAutoGenerated2
-
withTags
public ActivityLogAlertResourceInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classResourceAutoGenerated2
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classResourceAutoGenerated2- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-