Class MicrosoftSecurityIncidentCreationAlertRuleProperties
java.lang.Object
com.azure.resourcemanager.securityinsights.models.MicrosoftSecurityIncidentCreationAlertRuleCommonProperties
com.azure.resourcemanager.securityinsights.fluent.models.MicrosoftSecurityIncidentCreationAlertRuleProperties
public final class MicrosoftSecurityIncidentCreationAlertRuleProperties
extends MicrosoftSecurityIncidentCreationAlertRuleCommonProperties
MicrosoftSecurityIncidentCreation rule property bag.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.Get the description property: The description of the alert rule.Get the displayName property: The display name for alerts created by this alert rule.boolean
enabled()
Get the enabled property: Determines whether this alert rule is enabled or disabled.Get the lastModifiedUtc property: The last time that this alert has been modified.void
validate()
Validates the instance.withAlertRuleTemplateName
(String alertRuleTemplateName) Set the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.withDescription
(String description) Set the description property: The description of the alert rule.withDisplayName
(String displayName) Set the displayName property: The display name for alerts created by this alert rule.withDisplayNamesExcludeFilter
(List<String> displayNamesExcludeFilter) Set the displayNamesExcludeFilter property: the alerts' displayNames on which the cases will not be generated.withDisplayNamesFilter
(List<String> displayNamesFilter) Set the displayNamesFilter property: the alerts' displayNames on which the cases will be generated.withEnabled
(boolean enabled) Set the enabled property: Determines whether this alert rule is enabled or disabled.withProductFilter
(MicrosoftSecurityProductName productFilter) Set the productFilter property: The alerts' productName on which the cases will be generated.withSeveritiesFilter
(List<AlertSeverity> severitiesFilter) Set the severitiesFilter property: the alerts' severities on which the cases will be generated.Methods inherited from class com.azure.resourcemanager.securityinsights.models.MicrosoftSecurityIncidentCreationAlertRuleCommonProperties
displayNamesExcludeFilter, displayNamesFilter, productFilter, severitiesFilter
-
Constructor Details
-
MicrosoftSecurityIncidentCreationAlertRuleProperties
public MicrosoftSecurityIncidentCreationAlertRuleProperties()
-
-
Method Details
-
alertRuleTemplateName
Get the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.- Returns:
- the alertRuleTemplateName value.
-
withAlertRuleTemplateName
public MicrosoftSecurityIncidentCreationAlertRuleProperties withAlertRuleTemplateName(String alertRuleTemplateName) Set the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.- Parameters:
alertRuleTemplateName
- the alertRuleTemplateName value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRuleProperties object itself.
-
description
Get the description property: The description of the alert rule.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the alert rule.- Parameters:
description
- the description value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRuleProperties object itself.
-
displayName
Get the displayName property: The display name for alerts created by this alert rule.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name for alerts created by this alert rule.- Parameters:
displayName
- the displayName value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRuleProperties object itself.
-
enabled
public boolean enabled()Get the enabled property: Determines whether this alert rule is enabled or disabled.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Determines whether this alert rule is enabled or disabled.- Parameters:
enabled
- the enabled value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRuleProperties object itself.
-
lastModifiedUtc
Get the lastModifiedUtc property: The last time that this alert has been modified.- Returns:
- the lastModifiedUtc value.
-
withDisplayNamesFilter
public MicrosoftSecurityIncidentCreationAlertRuleProperties withDisplayNamesFilter(List<String> displayNamesFilter) Set the displayNamesFilter property: the alerts' displayNames on which the cases will be generated.- Overrides:
withDisplayNamesFilter
in classMicrosoftSecurityIncidentCreationAlertRuleCommonProperties
- Parameters:
displayNamesFilter
- the displayNamesFilter value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRuleCommonProperties object itself.
-
withDisplayNamesExcludeFilter
public MicrosoftSecurityIncidentCreationAlertRuleProperties withDisplayNamesExcludeFilter(List<String> displayNamesExcludeFilter) Set the displayNamesExcludeFilter property: the alerts' displayNames on which the cases will not be generated.- Overrides:
withDisplayNamesExcludeFilter
in classMicrosoftSecurityIncidentCreationAlertRuleCommonProperties
- Parameters:
displayNamesExcludeFilter
- the displayNamesExcludeFilter value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRuleCommonProperties object itself.
-
withProductFilter
public MicrosoftSecurityIncidentCreationAlertRuleProperties withProductFilter(MicrosoftSecurityProductName productFilter) Set the productFilter property: The alerts' productName on which the cases will be generated.- Overrides:
withProductFilter
in classMicrosoftSecurityIncidentCreationAlertRuleCommonProperties
- Parameters:
productFilter
- the productFilter value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRuleCommonProperties object itself.
-
withSeveritiesFilter
public MicrosoftSecurityIncidentCreationAlertRuleProperties withSeveritiesFilter(List<AlertSeverity> severitiesFilter) Set the severitiesFilter property: the alerts' severities on which the cases will be generated.- Overrides:
withSeveritiesFilter
in classMicrosoftSecurityIncidentCreationAlertRuleCommonProperties
- Parameters:
severitiesFilter
- the severitiesFilter value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRuleCommonProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classMicrosoftSecurityIncidentCreationAlertRuleCommonProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-