Class ThreatIntelligenceAlertRuleTemplateProperties
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.AlertRuleTemplatePropertiesBase
-
- com.azure.resourcemanager.securityinsights.models.AlertRuleTemplateWithMitreProperties
-
- com.azure.resourcemanager.securityinsights.fluent.models.ThreatIntelligenceAlertRuleTemplateProperties
-
public final class ThreatIntelligenceAlertRuleTemplateProperties extends AlertRuleTemplateWithMitreProperties
Threat Intelligence alert rule template properties.
-
-
Constructor Summary
Constructors Constructor Description ThreatIntelligenceAlertRuleTemplateProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertSeverity
severity()
Get the severity property: The severity for alerts created by this alert rule.void
validate()
Validates the instance.ThreatIntelligenceAlertRuleTemplateProperties
withAlertRulesCreatedByTemplateCount(Integer alertRulesCreatedByTemplateCount)
Set the alertRulesCreatedByTemplateCount property: the number of alert rules that were created by this template.ThreatIntelligenceAlertRuleTemplateProperties
withDescription(String description)
Set the description property: The description of the alert rule template.ThreatIntelligenceAlertRuleTemplateProperties
withDisplayName(String displayName)
Set the displayName property: The display name for alert rule template.ThreatIntelligenceAlertRuleTemplateProperties
withRequiredDataConnectors(List<AlertRuleTemplateDataSource> requiredDataConnectors)
Set the requiredDataConnectors property: The required data sources for this template.ThreatIntelligenceAlertRuleTemplateProperties
withSeverity(AlertSeverity severity)
Set the severity property: The severity for alerts created by this alert rule.ThreatIntelligenceAlertRuleTemplateProperties
withStatus(TemplateStatus status)
Set the status property: The alert rule template status.ThreatIntelligenceAlertRuleTemplateProperties
withTactics(List<AttackTactic> tactics)
Set the tactics property: The tactics of the alert rule.ThreatIntelligenceAlertRuleTemplateProperties
withTechniques(List<String> techniques)
Set the techniques property: The techniques of the alert rule.-
Methods inherited from class com.azure.resourcemanager.securityinsights.models.AlertRuleTemplateWithMitreProperties
tactics, techniques
-
Methods inherited from class com.azure.resourcemanager.securityinsights.models.AlertRuleTemplatePropertiesBase
alertRulesCreatedByTemplateCount, createdDateUtc, description, displayName, lastUpdatedDateUtc, requiredDataConnectors, status
-
-
-
-
Method Detail
-
severity
public AlertSeverity severity()
Get the severity property: The severity for alerts created by this alert rule.- Returns:
- the severity value.
-
withSeverity
public ThreatIntelligenceAlertRuleTemplateProperties withSeverity(AlertSeverity severity)
Set the severity property: The severity for alerts created by this alert rule.- Parameters:
severity
- the severity value to set.- Returns:
- the ThreatIntelligenceAlertRuleTemplateProperties object itself.
-
withTactics
public ThreatIntelligenceAlertRuleTemplateProperties withTactics(List<AttackTactic> tactics)
Set the tactics property: The tactics of the alert rule.- Overrides:
withTactics
in classAlertRuleTemplateWithMitreProperties
- Parameters:
tactics
- the tactics value to set.- Returns:
- the AlertRuleTemplateWithMitreProperties object itself.
-
withTechniques
public ThreatIntelligenceAlertRuleTemplateProperties withTechniques(List<String> techniques)
Set the techniques property: The techniques of the alert rule.- Overrides:
withTechniques
in classAlertRuleTemplateWithMitreProperties
- Parameters:
techniques
- the techniques value to set.- Returns:
- the AlertRuleTemplateWithMitreProperties object itself.
-
withAlertRulesCreatedByTemplateCount
public ThreatIntelligenceAlertRuleTemplateProperties withAlertRulesCreatedByTemplateCount(Integer alertRulesCreatedByTemplateCount)
Set the alertRulesCreatedByTemplateCount property: the number of alert rules that were created by this template.- Overrides:
withAlertRulesCreatedByTemplateCount
in classAlertRuleTemplateWithMitreProperties
- Parameters:
alertRulesCreatedByTemplateCount
- the alertRulesCreatedByTemplateCount value to set.- Returns:
- the AlertRuleTemplatePropertiesBase object itself.
-
withDescription
public ThreatIntelligenceAlertRuleTemplateProperties withDescription(String description)
Set the description property: The description of the alert rule template.- Overrides:
withDescription
in classAlertRuleTemplateWithMitreProperties
- Parameters:
description
- the description value to set.- Returns:
- the AlertRuleTemplatePropertiesBase object itself.
-
withDisplayName
public ThreatIntelligenceAlertRuleTemplateProperties withDisplayName(String displayName)
Set the displayName property: The display name for alert rule template.- Overrides:
withDisplayName
in classAlertRuleTemplateWithMitreProperties
- Parameters:
displayName
- the displayName value to set.- Returns:
- the AlertRuleTemplatePropertiesBase object itself.
-
withRequiredDataConnectors
public ThreatIntelligenceAlertRuleTemplateProperties withRequiredDataConnectors(List<AlertRuleTemplateDataSource> requiredDataConnectors)
Set the requiredDataConnectors property: The required data sources for this template.- Overrides:
withRequiredDataConnectors
in classAlertRuleTemplateWithMitreProperties
- Parameters:
requiredDataConnectors
- the requiredDataConnectors value to set.- Returns:
- the AlertRuleTemplatePropertiesBase object itself.
-
withStatus
public ThreatIntelligenceAlertRuleTemplateProperties withStatus(TemplateStatus status)
Set the status property: The alert rule template status.- Overrides:
withStatus
in classAlertRuleTemplateWithMitreProperties
- Parameters:
status
- the status value to set.- Returns:
- the AlertRuleTemplatePropertiesBase object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAlertRuleTemplateWithMitreProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-