Class AlertRuleTemplatePropertiesBase
java.lang.Object
com.azure.resourcemanager.securityinsights.models.AlertRuleTemplatePropertiesBase
- Direct Known Subclasses:
AlertRuleTemplateWithMitreProperties
,MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties
Base alert rule template property bag.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the alertRulesCreatedByTemplateCount property: the number of alert rules that were created by this template.Get the createdDateUtc property: The time that this alert rule template has been added.Get the description property: The description of the alert rule template.Get the displayName property: The display name for alert rule template.Get the lastUpdatedDateUtc property: The last time that this alert rule template has been updated.Get the requiredDataConnectors property: The required data sources for this template.status()
Get the status property: The alert rule template status.void
validate()
Validates the instance.withAlertRulesCreatedByTemplateCount
(Integer alertRulesCreatedByTemplateCount) Set the alertRulesCreatedByTemplateCount property: the number of alert rules that were created by this template.withDescription
(String description) Set the description property: The description of the alert rule template.withDisplayName
(String displayName) Set the displayName property: The display name for alert rule template.withRequiredDataConnectors
(List<AlertRuleTemplateDataSource> requiredDataConnectors) Set the requiredDataConnectors property: The required data sources for this template.withStatus
(TemplateStatus status) Set the status property: The alert rule template status.
-
Constructor Details
-
AlertRuleTemplatePropertiesBase
public AlertRuleTemplatePropertiesBase()
-
-
Method Details
-
alertRulesCreatedByTemplateCount
Get the alertRulesCreatedByTemplateCount property: the number of alert rules that were created by this template.- Returns:
- the alertRulesCreatedByTemplateCount value.
-
withAlertRulesCreatedByTemplateCount
public AlertRuleTemplatePropertiesBase withAlertRulesCreatedByTemplateCount(Integer alertRulesCreatedByTemplateCount) Set the alertRulesCreatedByTemplateCount property: the number of alert rules that were created by this template.- Parameters:
alertRulesCreatedByTemplateCount
- the alertRulesCreatedByTemplateCount value to set.- Returns:
- the AlertRuleTemplatePropertiesBase object itself.
-
lastUpdatedDateUtc
Get the lastUpdatedDateUtc property: The last time that this alert rule template has been updated.- Returns:
- the lastUpdatedDateUtc value.
-
createdDateUtc
Get the createdDateUtc property: The time that this alert rule template has been added.- Returns:
- the createdDateUtc value.
-
description
Get the description property: The description of the alert rule template.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the alert rule template.- Parameters:
description
- the description value to set.- Returns:
- the AlertRuleTemplatePropertiesBase object itself.
-
displayName
Get the displayName property: The display name for alert rule template.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name for alert rule template.- Parameters:
displayName
- the displayName value to set.- Returns:
- the AlertRuleTemplatePropertiesBase object itself.
-
requiredDataConnectors
Get the requiredDataConnectors property: The required data sources for this template.- Returns:
- the requiredDataConnectors value.
-
withRequiredDataConnectors
public AlertRuleTemplatePropertiesBase withRequiredDataConnectors(List<AlertRuleTemplateDataSource> requiredDataConnectors) Set the requiredDataConnectors property: The required data sources for this template.- Parameters:
requiredDataConnectors
- the requiredDataConnectors value to set.- Returns:
- the AlertRuleTemplatePropertiesBase object itself.
-
status
Get the status property: The alert rule template status.- Returns:
- the status value.
-
withStatus
Set the status property: The alert rule template status.- Parameters:
status
- the status value to set.- Returns:
- the AlertRuleTemplatePropertiesBase object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-