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