Class SmartGroupProperties

java.lang.Object
com.azure.resourcemanager.alertsmanagement.fluent.models.SmartGroupProperties

public final class SmartGroupProperties extends Object
Properties of smart group.
  • Constructor Details

    • SmartGroupProperties

      public SmartGroupProperties()
  • Method Details

    • alertsCount

      public Long alertsCount()
      Get the alertsCount property: Total number of alerts in smart group.
      Returns:
      the alertsCount value.
    • withAlertsCount

      public SmartGroupProperties withAlertsCount(Long alertsCount)
      Set the alertsCount property: Total number of alerts in smart group.
      Parameters:
      alertsCount - the alertsCount value to set.
      Returns:
      the SmartGroupProperties object itself.
    • smartGroupState

      public State smartGroupState()
      Get the smartGroupState property: Smart group state.
      Returns:
      the smartGroupState value.
    • severity

      public Severity severity()
      Get the severity property: Severity of smart group is the highest(Sev0 >... > Sev4) severity of all the alerts in the group.
      Returns:
      the severity value.
    • startDateTime

      public OffsetDateTime startDateTime()
      Get the startDateTime property: Creation time of smart group. Date-Time in ISO-8601 format.
      Returns:
      the startDateTime value.
    • lastModifiedDateTime

      public OffsetDateTime lastModifiedDateTime()
      Get the lastModifiedDateTime property: Last updated time of smart group. Date-Time in ISO-8601 format.
      Returns:
      the lastModifiedDateTime value.
    • lastModifiedUsername

      public String lastModifiedUsername()
      Get the lastModifiedUsername property: Last modified by user name.
      Returns:
      the lastModifiedUsername value.
    • resources

      public List<SmartGroupAggregatedProperty> resources()
      Get the resources property: Summary of target resources in the smart group.
      Returns:
      the resources value.
    • withResources

      public SmartGroupProperties withResources(List<SmartGroupAggregatedProperty> resources)
      Set the resources property: Summary of target resources in the smart group.
      Parameters:
      resources - the resources value to set.
      Returns:
      the SmartGroupProperties object itself.
    • resourceTypes

      public List<SmartGroupAggregatedProperty> resourceTypes()
      Get the resourceTypes property: Summary of target resource types in the smart group.
      Returns:
      the resourceTypes value.
    • withResourceTypes

      public SmartGroupProperties withResourceTypes(List<SmartGroupAggregatedProperty> resourceTypes)
      Set the resourceTypes property: Summary of target resource types in the smart group.
      Parameters:
      resourceTypes - the resourceTypes value to set.
      Returns:
      the SmartGroupProperties object itself.
    • resourceGroups

      public List<SmartGroupAggregatedProperty> resourceGroups()
      Get the resourceGroups property: Summary of target resource groups in the smart group.
      Returns:
      the resourceGroups value.
    • withResourceGroups

      public SmartGroupProperties withResourceGroups(List<SmartGroupAggregatedProperty> resourceGroups)
      Set the resourceGroups property: Summary of target resource groups in the smart group.
      Parameters:
      resourceGroups - the resourceGroups value to set.
      Returns:
      the SmartGroupProperties object itself.
    • monitorServices

      public List<SmartGroupAggregatedProperty> monitorServices()
      Get the monitorServices property: Summary of monitorServices in the smart group.
      Returns:
      the monitorServices value.
    • withMonitorServices

      public SmartGroupProperties withMonitorServices(List<SmartGroupAggregatedProperty> monitorServices)
      Set the monitorServices property: Summary of monitorServices in the smart group.
      Parameters:
      monitorServices - the monitorServices value to set.
      Returns:
      the SmartGroupProperties object itself.
    • monitorConditions

      public List<SmartGroupAggregatedProperty> monitorConditions()
      Get the monitorConditions property: Summary of monitorConditions in the smart group.
      Returns:
      the monitorConditions value.
    • withMonitorConditions

      public SmartGroupProperties withMonitorConditions(List<SmartGroupAggregatedProperty> monitorConditions)
      Set the monitorConditions property: Summary of monitorConditions in the smart group.
      Parameters:
      monitorConditions - the monitorConditions value to set.
      Returns:
      the SmartGroupProperties object itself.
    • alertStates

      public List<SmartGroupAggregatedProperty> alertStates()
      Get the alertStates property: Summary of alertStates in the smart group.
      Returns:
      the alertStates value.
    • withAlertStates

      public SmartGroupProperties withAlertStates(List<SmartGroupAggregatedProperty> alertStates)
      Set the alertStates property: Summary of alertStates in the smart group.
      Parameters:
      alertStates - the alertStates value to set.
      Returns:
      the SmartGroupProperties object itself.
    • alertSeverities

      public List<SmartGroupAggregatedProperty> alertSeverities()
      Get the alertSeverities property: Summary of alertSeverities in the smart group.
      Returns:
      the alertSeverities value.
    • withAlertSeverities

      public SmartGroupProperties withAlertSeverities(List<SmartGroupAggregatedProperty> alertSeverities)
      Set the alertSeverities property: Summary of alertSeverities in the smart group.
      Parameters:
      alertSeverities - the alertSeverities value to set.
      Returns:
      the SmartGroupProperties object itself.
    • nextLink

      public String nextLink()
      Get the nextLink property: The URI to fetch the next page of alerts. Call ListNext() with this URI to fetch the next page alerts.
      Returns:
      the nextLink value.
    • withNextLink

      public SmartGroupProperties withNextLink(String nextLink)
      Set the nextLink property: The URI to fetch the next page of alerts. Call ListNext() with this URI to fetch the next page alerts.
      Parameters:
      nextLink - the nextLink value to set.
      Returns:
      the SmartGroupProperties object itself.
    • validate

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