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 Details

    • ActivityLogAlertResourceInner

      public ActivityLogAlertResourceInner()
  • Method Details

    • 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

      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

      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:
      withLocation in class ResourceAutoGenerated2
    • withTags

      Overrides:
      withTags in class ResourceAutoGenerated2
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ResourceAutoGenerated2
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.