Class AlertsSuppressionRuleProperties
java.lang.Object
com.azure.resourcemanager.security.fluent.models.AlertsSuppressionRuleProperties
describes AlertsSuppressionRule properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the alertType property: Type of the alert to automatically suppress.comment()
Get the comment property: Any comment regarding the rule.Get the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null this field will default to the maximum allowed expiration date.Get the lastModifiedUtc property: The last time this rule was modified.reason()
Get the reason property: The reason for dismissing the alert.state()
Get the state property: Possible states of the rule.Get the suppressionAlertsScope property: The suppression conditions.void
validate()
Validates the instance.withAlertType
(String alertType) Set the alertType property: Type of the alert to automatically suppress.withComment
(String comment) Set the comment property: Any comment regarding the rule.withExpirationDateUtc
(OffsetDateTime expirationDateUtc) Set the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null this field will default to the maximum allowed expiration date.withReason
(String reason) Set the reason property: The reason for dismissing the alert.Set the state property: Possible states of the rule.withSuppressionAlertsScope
(SuppressionAlertsScope suppressionAlertsScope) Set the suppressionAlertsScope property: The suppression conditions.
-
Constructor Details
-
AlertsSuppressionRuleProperties
public AlertsSuppressionRuleProperties()
-
-
Method Details
-
alertType
Get the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.- Returns:
- the alertType value.
-
withAlertType
Set the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.- Parameters:
alertType
- the alertType value to set.- Returns:
- the AlertsSuppressionRuleProperties object itself.
-
lastModifiedUtc
Get the lastModifiedUtc property: The last time this rule was modified.- Returns:
- the lastModifiedUtc value.
-
expirationDateUtc
Get the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null this field will default to the maximum allowed expiration date.- Returns:
- the expirationDateUtc value.
-
withExpirationDateUtc
Set the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null this field will default to the maximum allowed expiration date.- Parameters:
expirationDateUtc
- the expirationDateUtc value to set.- Returns:
- the AlertsSuppressionRuleProperties object itself.
-
reason
Get the reason property: The reason for dismissing the alert.- Returns:
- the reason value.
-
withReason
Set the reason property: The reason for dismissing the alert.- Parameters:
reason
- the reason value to set.- Returns:
- the AlertsSuppressionRuleProperties object itself.
-
state
Get the state property: Possible states of the rule.- Returns:
- the state value.
-
withState
Set the state property: Possible states of the rule.- Parameters:
state
- the state value to set.- Returns:
- the AlertsSuppressionRuleProperties object itself.
-
comment
Get the comment property: Any comment regarding the rule.- Returns:
- the comment value.
-
withComment
Set the comment property: Any comment regarding the rule.- Parameters:
comment
- the comment value to set.- Returns:
- the AlertsSuppressionRuleProperties object itself.
-
suppressionAlertsScope
Get the suppressionAlertsScope property: The suppression conditions.- Returns:
- the suppressionAlertsScope value.
-
withSuppressionAlertsScope
public AlertsSuppressionRuleProperties withSuppressionAlertsScope(SuppressionAlertsScope suppressionAlertsScope) Set the suppressionAlertsScope property: The suppression conditions.- Parameters:
suppressionAlertsScope
- the suppressionAlertsScope value to set.- Returns:
- the AlertsSuppressionRuleProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-