Class GroupingConfiguration

java.lang.Object
com.azure.resourcemanager.securityinsights.models.GroupingConfiguration

public final class GroupingConfiguration extends Object
Grouping configuration property bag.
  • Constructor Details

    • GroupingConfiguration

      public GroupingConfiguration()
  • Method Details

    • enabled

      public boolean enabled()
      Get the enabled property: Grouping enabled.
      Returns:
      the enabled value.
    • withEnabled

      public GroupingConfiguration withEnabled(boolean enabled)
      Set the enabled property: Grouping enabled.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the GroupingConfiguration object itself.
    • reopenClosedIncident

      public boolean reopenClosedIncident()
      Get the reopenClosedIncident property: Re-open closed matching incidents.
      Returns:
      the reopenClosedIncident value.
    • withReopenClosedIncident

      public GroupingConfiguration withReopenClosedIncident(boolean reopenClosedIncident)
      Set the reopenClosedIncident property: Re-open closed matching incidents.
      Parameters:
      reopenClosedIncident - the reopenClosedIncident value to set.
      Returns:
      the GroupingConfiguration object itself.
    • lookbackDuration

      public Duration lookbackDuration()
      Get the lookbackDuration property: Limit the group to alerts created within the lookback duration (in ISO 8601 duration format).
      Returns:
      the lookbackDuration value.
    • withLookbackDuration

      public GroupingConfiguration withLookbackDuration(Duration lookbackDuration)
      Set the lookbackDuration property: Limit the group to alerts created within the lookback duration (in ISO 8601 duration format).
      Parameters:
      lookbackDuration - the lookbackDuration value to set.
      Returns:
      the GroupingConfiguration object itself.
    • matchingMethod

      public MatchingMethod matchingMethod()
      Get the matchingMethod property: Grouping matching method. When method is Selected at least one of groupByEntities, groupByAlertDetails, groupByCustomDetails must be provided and not empty.
      Returns:
      the matchingMethod value.
    • withMatchingMethod

      public GroupingConfiguration withMatchingMethod(MatchingMethod matchingMethod)
      Set the matchingMethod property: Grouping matching method. When method is Selected at least one of groupByEntities, groupByAlertDetails, groupByCustomDetails must be provided and not empty.
      Parameters:
      matchingMethod - the matchingMethod value to set.
      Returns:
      the GroupingConfiguration object itself.
    • groupByEntities

      public List<EntityMappingType> groupByEntities()
      Get the groupByEntities property: A list of entity types to group by (when matchingMethod is Selected). Only entities defined in the current alert rule may be used.
      Returns:
      the groupByEntities value.
    • withGroupByEntities

      public GroupingConfiguration withGroupByEntities(List<EntityMappingType> groupByEntities)
      Set the groupByEntities property: A list of entity types to group by (when matchingMethod is Selected). Only entities defined in the current alert rule may be used.
      Parameters:
      groupByEntities - the groupByEntities value to set.
      Returns:
      the GroupingConfiguration object itself.
    • groupByAlertDetails

      public List<AlertDetail> groupByAlertDetails()
      Get the groupByAlertDetails property: A list of alert details to group by (when matchingMethod is Selected).
      Returns:
      the groupByAlertDetails value.
    • withGroupByAlertDetails

      public GroupingConfiguration withGroupByAlertDetails(List<AlertDetail> groupByAlertDetails)
      Set the groupByAlertDetails property: A list of alert details to group by (when matchingMethod is Selected).
      Parameters:
      groupByAlertDetails - the groupByAlertDetails value to set.
      Returns:
      the GroupingConfiguration object itself.
    • groupByCustomDetails

      public List<String> groupByCustomDetails()
      Get the groupByCustomDetails property: A list of custom details keys to group by (when matchingMethod is Selected). Only keys defined in the current alert rule may be used.
      Returns:
      the groupByCustomDetails value.
    • withGroupByCustomDetails

      public GroupingConfiguration withGroupByCustomDetails(List<String> groupByCustomDetails)
      Set the groupByCustomDetails property: A list of custom details keys to group by (when matchingMethod is Selected). Only keys defined in the current alert rule may be used.
      Parameters:
      groupByCustomDetails - the groupByCustomDetails value to set.
      Returns:
      the GroupingConfiguration object itself.
    • validate

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