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 Summary
Constructors Constructor Description LogSearchRuleResourcePatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Enabledenabled()Get the enabled property: The flag which indicates whether the Log Search rule is enabled.Map<String,String>tags()Get the tags property: Resource tags.voidvalidate()Validates the instance.LogSearchRuleResourcePatchwithEnabled(Enabled enabled)Set the enabled property: The flag which indicates whether the Log Search rule is enabled.LogSearchRuleResourcePatchwithTags(Map<String,String> tags)Set the tags property: Resource tags.
-
-
-
Method Detail
-
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.
-
-