AlertsSuppressionRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. security. fluent. models. AlertsSuppressionRuleInner
- com.
- com.
public final class AlertsSuppressionRuleInner
extends ProxyResource
Describes the suppression rule.
Constructor Summary
Constructor | Description |
---|---|
AlertsSuppressionRuleInner() |
Creates an instance of Alerts |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
alertType()
Get the alert |
String |
comment()
Get the comment property: Any comment regarding the rule. |
Offset |
expirationDateUtc()
Get the expiration |
Offset |
lastModifiedUtc()
Get the last |
String |
reason()
Get the reason property: The reason for dismissing the alert. |
Rule |
state()
Get the state property: Possible states of the rule. |
Suppression |
suppressionAlertsScope()
Get the suppression |
void |
validate()
Validates the instance. |
Alerts |
withAlertType(String alertType)
Set the alert |
Alerts |
withComment(String comment)
Set the comment property: Any comment regarding the rule. |
Alerts |
withExpirationDateUtc(OffsetDateTime expirationDateUtc)
Set the expiration |
Alerts |
withReason(String reason)
Set the reason property: The reason for dismissing the alert. |
Alerts |
withState(RuleState state)
Set the state property: Possible states of the rule. |
Alerts |
withSuppressionAlertsScope(SuppressionAlertsScope suppressionAlertsScope)
Set the suppression |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
AlertsSuppressionRuleInner
public AlertsSuppressionRuleInner()
Creates an instance of AlertsSuppressionRuleInner class.
Method Details
alertType
public String alertType()
Get the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.
Returns:
comment
public String comment()
Get the comment property: Any comment regarding the rule.
Returns:
expirationDateUtc
public OffsetDateTime expirationDateUtc()
Get the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null there will no expiration at all.
Returns:
lastModifiedUtc
public OffsetDateTime lastModifiedUtc()
Get the lastModifiedUtc property: The last time this rule was modified.
Returns:
reason
public String reason()
Get the reason property: The reason for dismissing the alert.
Returns:
state
public RuleState state()
Get the state property: Possible states of the rule.
Returns:
suppressionAlertsScope
public SuppressionAlertsScope suppressionAlertsScope()
Get the suppressionAlertsScope property: The suppression conditions.
Returns:
validate
public void validate()
Validates the instance.
withAlertType
public AlertsSuppressionRuleInner withAlertType(String alertType)
Set the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.
Parameters:
Returns:
withComment
public AlertsSuppressionRuleInner withComment(String comment)
Set the comment property: Any comment regarding the rule.
Parameters:
Returns:
withExpirationDateUtc
public AlertsSuppressionRuleInner withExpirationDateUtc(OffsetDateTime expirationDateUtc)
Set the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null there will no expiration at all.
Parameters:
Returns:
withReason
public AlertsSuppressionRuleInner withReason(String reason)
Set the reason property: The reason for dismissing the alert.
Parameters:
Returns:
withState
public AlertsSuppressionRuleInner withState(RuleState state)
Set the state property: Possible states of the rule.
Parameters:
Returns:
withSuppressionAlertsScope
public AlertsSuppressionRuleInner withSuppressionAlertsScope(SuppressionAlertsScope suppressionAlertsScope)
Set the suppressionAlertsScope property: The suppression conditions.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for