Class LogSearchRuleResourcePatch

java.lang.Object
com.azure.resourcemanager.monitor.models.LogSearchRuleResourcePatch

public class LogSearchRuleResourcePatch extends Object
The log search rule resource for patch operations.
  • Constructor Details

    • LogSearchRuleResourcePatch

      public LogSearchRuleResourcePatch()
  • Method Details

    • tags

      public Map<String,String> tags()
      Get the tags property: Resource tags.
      Returns:
      the tags value.
    • withTags

      public LogSearchRuleResourcePatch withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Parameters:
      tags - the tags value to set.
      Returns:
      the LogSearchRuleResourcePatch object itself.
    • enabled

      public Enabled enabled()
      Get the enabled property: The flag which indicates whether the Log Search rule is enabled. Value should be true or false.
      Returns:
      the enabled value.
    • withEnabled

      public LogSearchRuleResourcePatch withEnabled(Enabled enabled)
      Set the enabled property: The flag which indicates whether the Log Search rule is enabled. Value should be true or false.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the LogSearchRuleResourcePatch object itself.
    • validate

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