Class AlertPropertiesDefinition
java.lang.Object
com.azure.resourcemanager.costmanagement.models.AlertPropertiesDefinition
defines the type of alert.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AlertPropertiesDefinition class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()
Get the category property: Alert category.criteria()
Get the criteria property: Criteria that triggered alert.type()
Get the type property: type of alert.void
validate()
Validates the instance.withCategory
(AlertCategory category) Set the category property: Alert category.withCriteria
(AlertCriteria criteria) Set the criteria property: Criteria that triggered alert.Set the type property: type of alert.
-
Constructor Details
-
AlertPropertiesDefinition
public AlertPropertiesDefinition()Creates an instance of AlertPropertiesDefinition class.
-
-
Method Details
-
type
Get the type property: type of alert.- Returns:
- the type value.
-
withType
Set the type property: type of alert.- Parameters:
type
- the type value to set.- Returns:
- the AlertPropertiesDefinition object itself.
-
category
Get the category property: Alert category.- Returns:
- the category value.
-
withCategory
Set the category property: Alert category.- Parameters:
category
- the category value to set.- Returns:
- the AlertPropertiesDefinition object itself.
-
criteria
Get the criteria property: Criteria that triggered alert.- Returns:
- the criteria value.
-
withCriteria
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.
-