Class MetricAlertMultipleResourceMultipleMetricCriteria
java.lang.Object
com.azure.resourcemanager.monitor.models.MetricAlertCriteria
com.azure.resourcemanager.monitor.models.MetricAlertMultipleResourceMultipleMetricCriteria
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricAlertCriteria>
Specifies the metric alert criteria for multiple resource that has multiple metric criteria.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MetricAlertMultipleResourceMultipleMetricCriteria class. -
Method Summary
Modifier and TypeMethodDescriptionallOf()
Get the allOf property: the list of multiple metric criteria for this 'all of' operation.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of MetricAlertMultipleResourceMultipleMetricCriteria from the JsonReader.Get the odataType property: specifies the type of the alert criteria.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAllOf
(List<MultiMetricCriteria> allOf) Set the allOf property: the list of multiple metric criteria for this 'all of' operation.Methods inherited from class com.azure.resourcemanager.monitor.models.MetricAlertCriteria
additionalProperties, withAdditionalProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MetricAlertMultipleResourceMultipleMetricCriteria
public MetricAlertMultipleResourceMultipleMetricCriteria()Creates an instance of MetricAlertMultipleResourceMultipleMetricCriteria class.
-
-
Method Details
-
odataType
Get the odataType property: specifies the type of the alert criteria.- Overrides:
odataType
in classMetricAlertCriteria
- Returns:
- the odataType value.
-
allOf
Get the allOf property: the list of multiple metric criteria for this 'all of' operation.- Returns:
- the allOf value.
-
withAllOf
Set the allOf property: the list of multiple metric criteria for this 'all of' operation.- Parameters:
allOf
- the allOf value to set.- Returns:
- the MetricAlertMultipleResourceMultipleMetricCriteria object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classMetricAlertCriteria
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<MetricAlertCriteria>
- Overrides:
toJson
in classMetricAlertCriteria
- Throws:
IOException
-
fromJson
public static MetricAlertMultipleResourceMultipleMetricCriteria fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MetricAlertMultipleResourceMultipleMetricCriteria from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of MetricAlertMultipleResourceMultipleMetricCriteria if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the MetricAlertMultipleResourceMultipleMetricCriteria.
-