Class MicrosoftSecurityIncidentCreationAlertRule
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.securityinsights.models.ResourceWithEtag
com.azure.resourcemanager.securityinsights.fluent.models.AlertRuleInner
com.azure.resourcemanager.securityinsights.models.MicrosoftSecurityIncidentCreationAlertRule
Represents MicrosoftSecurityIncidentCreation rule.
-
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.Get the displayNamesExcludeFilter property: the alerts' displayNames on which the cases will not be generated.Get the displayNamesFilter property: the alerts' displayNames on which the cases will be generated.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.Get the productFilter property: The alerts' productName on which the cases will be generated.Get the severitiesFilter property: the alerts' severities on which the cases will be generated.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.Set the etag property: Etag of the azure resource.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.ResourceWithEtag
etag, systemData
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
MicrosoftSecurityIncidentCreationAlertRule
public MicrosoftSecurityIncidentCreationAlertRule()
-
-
Method Details
-
withEtag
Set the etag property: Etag of the azure resource.- Overrides:
withEtag
in classAlertRuleInner
- Parameters:
etag
- the etag value to set.- Returns:
- the ResourceWithEtag object itself.
-
alertRuleTemplateName
Get the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.- Returns:
- the alertRuleTemplateName value.
-
withAlertRuleTemplateName
public MicrosoftSecurityIncidentCreationAlertRule 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 MicrosoftSecurityIncidentCreationAlertRule 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 MicrosoftSecurityIncidentCreationAlertRule 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 MicrosoftSecurityIncidentCreationAlertRule object itself.
-
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 MicrosoftSecurityIncidentCreationAlertRule object itself.
-
lastModifiedUtc
Get the lastModifiedUtc property: The last time that this alert has been modified.- Returns:
- the lastModifiedUtc value.
-
displayNamesFilter
Get the displayNamesFilter property: the alerts' displayNames on which the cases will be generated.- Returns:
- the displayNamesFilter value.
-
withDisplayNamesFilter
public MicrosoftSecurityIncidentCreationAlertRule withDisplayNamesFilter(List<String> displayNamesFilter) Set the displayNamesFilter property: the alerts' displayNames on which the cases will be generated.- Parameters:
displayNamesFilter
- the displayNamesFilter value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRule object itself.
-
displayNamesExcludeFilter
Get the displayNamesExcludeFilter property: the alerts' displayNames on which the cases will not be generated.- Returns:
- the displayNamesExcludeFilter value.
-
withDisplayNamesExcludeFilter
public MicrosoftSecurityIncidentCreationAlertRule withDisplayNamesExcludeFilter(List<String> displayNamesExcludeFilter) Set the displayNamesExcludeFilter property: the alerts' displayNames on which the cases will not be generated.- Parameters:
displayNamesExcludeFilter
- the displayNamesExcludeFilter value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRule object itself.
-
productFilter
Get the productFilter property: The alerts' productName on which the cases will be generated.- Returns:
- the productFilter value.
-
withProductFilter
public MicrosoftSecurityIncidentCreationAlertRule withProductFilter(MicrosoftSecurityProductName productFilter) Set the productFilter property: The alerts' productName on which the cases will be generated.- Parameters:
productFilter
- the productFilter value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRule object itself.
-
severitiesFilter
Get the severitiesFilter property: the alerts' severities on which the cases will be generated.- Returns:
- the severitiesFilter value.
-
withSeveritiesFilter
public MicrosoftSecurityIncidentCreationAlertRule withSeveritiesFilter(List<AlertSeverity> severitiesFilter) Set the severitiesFilter property: the alerts' severities on which the cases will be generated.- Parameters:
severitiesFilter
- the severitiesFilter value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classAlertRuleInner
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-