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
-
public final class MicrosoftSecurityIncidentCreationAlertRule extends AlertRuleInner
Represents MicrosoftSecurityIncidentCreation rule.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftSecurityIncidentCreationAlertRule()
-
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.List<String>
displayNamesExcludeFilter()
Get the displayNamesExcludeFilter property: the alerts' displayNames on which the cases will not be generated.List<String>
displayNamesFilter()
Get the displayNamesFilter property: the alerts' displayNames on which the cases will be generated.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.MicrosoftSecurityProductName
productFilter()
Get the productFilter property: The alerts' productName on which the cases will be generated.List<AlertSeverity>
severitiesFilter()
Get the severitiesFilter property: the alerts' severities on which the cases will be generated.void
validate()
Validates the instance.MicrosoftSecurityIncidentCreationAlertRule
withAlertRuleTemplateName(String alertRuleTemplateName)
Set the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.MicrosoftSecurityIncidentCreationAlertRule
withDescription(String description)
Set the description property: The description of the alert rule.MicrosoftSecurityIncidentCreationAlertRule
withDisplayName(String displayName)
Set the displayName property: The display name for alerts created by this alert rule.MicrosoftSecurityIncidentCreationAlertRule
withDisplayNamesExcludeFilter(List<String> displayNamesExcludeFilter)
Set the displayNamesExcludeFilter property: the alerts' displayNames on which the cases will not be generated.MicrosoftSecurityIncidentCreationAlertRule
withDisplayNamesFilter(List<String> displayNamesFilter)
Set the displayNamesFilter property: the alerts' displayNames on which the cases will be generated.MicrosoftSecurityIncidentCreationAlertRule
withEnabled(Boolean enabled)
Set the enabled property: Determines whether this alert rule is enabled or disabled.MicrosoftSecurityIncidentCreationAlertRule
withEtag(String etag)
Set the etag property: Etag of the azure resource.MicrosoftSecurityIncidentCreationAlertRule
withProductFilter(MicrosoftSecurityProductName productFilter)
Set the productFilter property: The alerts' productName on which the cases will be generated.MicrosoftSecurityIncidentCreationAlertRule
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
-
-
-
-
Method Detail
-
withEtag
public MicrosoftSecurityIncidentCreationAlertRule withEtag(String etag)
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
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 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
public String description()
Get the description property: The description of the alert rule.- Returns:
- the description value.
-
withDescription
public MicrosoftSecurityIncidentCreationAlertRule withDescription(String description)
Set the description property: The description of the alert rule.- Parameters:
description
- the description value to set.- Returns:
- the MicrosoftSecurityIncidentCreationAlertRule 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 MicrosoftSecurityIncidentCreationAlertRule 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 MicrosoftSecurityIncidentCreationAlertRule 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 MicrosoftSecurityIncidentCreationAlertRule 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 MicrosoftSecurityIncidentCreationAlertRule object itself.
-
lastModifiedUtc
public OffsetDateTime lastModifiedUtc()
Get the lastModifiedUtc property: The last time that this alert has been modified.- Returns:
- the lastModifiedUtc value.
-
displayNamesFilter
public List<String> 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
public List<String> 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
public MicrosoftSecurityProductName 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
public List<AlertSeverity> 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.
-
-