Class MetricAlertSingleResourceMultipleMetricCriteria
java.lang.Object
com.azure.resourcemanager.monitor.models.MetricAlertCriteria
com.azure.resourcemanager.monitor.models.MetricAlertSingleResourceMultipleMetricCriteria
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricAlertCriteria>
Specifies the metric alert criteria for a single resource that has multiple metric criteria.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MetricAlertSingleResourceMultipleMetricCriteria class. -
Method Summary
Modifier and TypeMethodDescriptionallOf()Get the allOf property: The list of metric criteria for this 'all of' operation.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MetricAlertSingleResourceMultipleMetricCriteria from the JsonReader.Get the odataType property: specifies the type of the alert criteria.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAllOf(List<MetricCriteria> allOf) Set the allOf property: The list of metric criteria for this 'all of' operation.Methods inherited from class com.azure.resourcemanager.monitor.models.MetricAlertCriteria
additionalProperties, withAdditionalPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MetricAlertSingleResourceMultipleMetricCriteria
public MetricAlertSingleResourceMultipleMetricCriteria()Creates an instance of MetricAlertSingleResourceMultipleMetricCriteria class.
-
-
Method Details
-
odataType
Get the odataType property: specifies the type of the alert criteria.- Overrides:
odataTypein classMetricAlertCriteria- Returns:
- the odataType value.
-
allOf
Get the allOf property: The list of metric criteria for this 'all of' operation.- Returns:
- the allOf value.
-
withAllOf
Set the allOf property: The list of metric criteria for this 'all of' operation.- Parameters:
allOf- the allOf value to set.- Returns:
- the MetricAlertSingleResourceMultipleMetricCriteria object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMetricAlertCriteria- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MetricAlertCriteria>- Overrides:
toJsonin classMetricAlertCriteria- Throws:
IOException
-
fromJson
public static MetricAlertSingleResourceMultipleMetricCriteria fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MetricAlertSingleResourceMultipleMetricCriteria from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MetricAlertSingleResourceMultipleMetricCriteria 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 MetricAlertSingleResourceMultipleMetricCriteria.
-