Class AlertPropertiesDefinition

java.lang.Object
com.azure.resourcemanager.costmanagement.models.AlertPropertiesDefinition

public final class AlertPropertiesDefinition extends Object
defines the type of alert.
  • Constructor Details

    • AlertPropertiesDefinition

      public AlertPropertiesDefinition()
      Creates an instance of AlertPropertiesDefinition class.
  • Method Details

    • type

      public AlertType type()
      Get the type property: type of alert.
      Returns:
      the type value.
    • withType

      public AlertPropertiesDefinition withType(AlertType type)
      Set the type property: type of alert.
      Parameters:
      type - the type value to set.
      Returns:
      the AlertPropertiesDefinition object itself.
    • category

      public AlertCategory category()
      Get the category property: Alert category.
      Returns:
      the category value.
    • withCategory

      public AlertPropertiesDefinition withCategory(AlertCategory category)
      Set the category property: Alert category.
      Parameters:
      category - the category value to set.
      Returns:
      the AlertPropertiesDefinition object itself.
    • criteria

      public AlertCriteria criteria()
      Get the criteria property: Criteria that triggered alert.
      Returns:
      the criteria value.
    • withCriteria

      public AlertPropertiesDefinition withCriteria(AlertCriteria criteria)
      Set the criteria property: Criteria that triggered alert.
      Parameters:
      criteria - the criteria value to set.
      Returns:
      the AlertPropertiesDefinition object itself.
    • validate

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