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
Constructors Constructor Description MicrosoftSecurityIncidentCreationAlertRuleProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
alertRuleTemplateName()
Get the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.String
description()
Get the description property: The description of the alert rule.String
displayName()
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.OffsetDateTime
lastModifiedUtc()
Get the lastModifiedUtc property: The last time that this alert has been modified.void
validate()
Validates the instance.MicrosoftSecurityIncidentCreationAlertRuleProperties
withAlertRuleTemplateName(String alertRuleTemplateName)
Set the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.MicrosoftSecurityIncidentCreationAlertRuleProperties
withDescription(String description)
Set the description property: The description of the alert rule.MicrosoftSecurityIncidentCreationAlertRuleProperties
withDisplayName(String displayName)
Set the displayName property: The display name for alerts created by this alert rule.MicrosoftSecurityIncidentCreationAlertRuleProperties
withDisplayNamesExcludeFilter(List<String> displayNamesExcludeFilter)
Set the displayNamesExcludeFilter property: the alerts' displayNames on which the cases will not be generated.MicrosoftSecurityIncidentCreationAlertRuleProperties
withDisplayNamesFilter(List<String> displayNamesFilter)
Set the displayNamesFilter property: the alerts' displayNames on which the cases will be generated.MicrosoftSecurityIncidentCreationAlertRuleProperties
withEnabled(boolean enabled)
Set the enabled property: Determines whether this alert rule is enabled or disabled.MicrosoftSecurityIncidentCreationAlertRuleProperties
withProductFilter(MicrosoftSecurityProductName productFilter)
Set the productFilter property: The alerts' productName on which the cases will be generated.MicrosoftSecurityIncidentCreationAlertRuleProperties
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
-
-
-
-
Method Detail
-
alertRuleTemplateName
public String 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
public String description()
Get the description property: The description of the alert rule.- Returns:
- the description value.
-
withDescription
public MicrosoftSecurityIncidentCreationAlertRuleProperties withDescription(String description)
Set the description property: The description of the alert rule.- Parameters:
description
- the description value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRuleProperties object itself.
-
displayName
public String displayName()
Get the displayName property: The display name for alerts created by this alert rule.- Returns:
- the displayName value.
-
withDisplayName
public MicrosoftSecurityIncidentCreationAlertRuleProperties withDisplayName(String displayName)
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
public MicrosoftSecurityIncidentCreationAlertRuleProperties withEnabled(boolean enabled)
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
public OffsetDateTime 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.
-
-