Class AlertsSuppressionRuleInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.security.fluent.models.AlertsSuppressionRuleInner

public final class AlertsSuppressionRuleInner extends com.azure.core.management.ProxyResource
Describes the suppression rule.
  • Constructor Details

    • AlertsSuppressionRuleInner

      public AlertsSuppressionRuleInner()
  • Method Details

    • alertType

      public String alertType()
      Get the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.
      Returns:
      the alertType value.
    • withAlertType

      public AlertsSuppressionRuleInner withAlertType(String alertType)
      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 AlertsSuppressionRuleInner object itself.
    • lastModifiedUtc

      public OffsetDateTime lastModifiedUtc()
      Get the lastModifiedUtc property: The last time this rule was modified.
      Returns:
      the lastModifiedUtc value.
    • expirationDateUtc

      public OffsetDateTime 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

      public AlertsSuppressionRuleInner 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.
      Parameters:
      expirationDateUtc - the expirationDateUtc value to set.
      Returns:
      the AlertsSuppressionRuleInner object itself.
    • reason

      public String reason()
      Get the reason property: The reason for dismissing the alert.
      Returns:
      the reason value.
    • withReason

      public AlertsSuppressionRuleInner withReason(String reason)
      Set the reason property: The reason for dismissing the alert.
      Parameters:
      reason - the reason value to set.
      Returns:
      the AlertsSuppressionRuleInner object itself.
    • state

      public RuleState state()
      Get the state property: Possible states of the rule.
      Returns:
      the state value.
    • withState

      public AlertsSuppressionRuleInner withState(RuleState state)
      Set the state property: Possible states of the rule.
      Parameters:
      state - the state value to set.
      Returns:
      the AlertsSuppressionRuleInner object itself.
    • comment

      public String comment()
      Get the comment property: Any comment regarding the rule.
      Returns:
      the comment value.
    • withComment

      public AlertsSuppressionRuleInner withComment(String comment)
      Set the comment property: Any comment regarding the rule.
      Parameters:
      comment - the comment value to set.
      Returns:
      the AlertsSuppressionRuleInner object itself.
    • suppressionAlertsScope

      public SuppressionAlertsScope suppressionAlertsScope()
      Get the suppressionAlertsScope property: The suppression conditions.
      Returns:
      the suppressionAlertsScope value.
    • withSuppressionAlertsScope

      public AlertsSuppressionRuleInner withSuppressionAlertsScope(SuppressionAlertsScope suppressionAlertsScope)
      Set the suppressionAlertsScope property: The suppression conditions.
      Parameters:
      suppressionAlertsScope - the suppressionAlertsScope value to set.
      Returns:
      the AlertsSuppressionRuleInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.