Class AlertsSuppressionRuleProperties

java.lang.Object
com.azure.resourcemanager.security.fluent.models.AlertsSuppressionRuleProperties

public final class AlertsSuppressionRuleProperties extends Object
describes AlertsSuppressionRule properties.
  • Constructor Details

    • AlertsSuppressionRuleProperties

      public AlertsSuppressionRuleProperties()
  • 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 AlertsSuppressionRuleProperties 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 AlertsSuppressionRuleProperties 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 AlertsSuppressionRuleProperties 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 AlertsSuppressionRuleProperties object itself.
    • reason

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

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

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

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

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

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

      public SuppressionAlertsScope 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.