Class ActivityLogAlertAllOfCondition
java.lang.Object
com.azure.resourcemanager.monitor.models.ActivityLogAlertAllOfCondition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ActivityLogAlertAllOfCondition>
public final class ActivityLogAlertAllOfCondition
extends Object
implements com.azure.json.JsonSerializable<ActivityLogAlertAllOfCondition>
An Activity Log Alert rule condition that is met when all its member conditions are met.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ActivityLogAlertAllOfCondition class. -
Method Summary
Modifier and TypeMethodDescriptionallOf()
Get the allOf property: The list of Activity Log Alert rule conditions.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ActivityLogAlertAllOfCondition from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the allOf property: The list of Activity Log Alert rule conditions.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
-
ActivityLogAlertAllOfCondition
public ActivityLogAlertAllOfCondition()Creates an instance of ActivityLogAlertAllOfCondition class.
-
-
Method Details
-
allOf
Get the allOf property: The list of Activity Log Alert rule conditions.- Returns:
- the allOf value.
-
withAllOf
Set the allOf property: The list of Activity Log Alert rule conditions.- Parameters:
allOf
- the allOf value to set.- Returns:
- the ActivityLogAlertAllOfCondition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ActivityLogAlertAllOfCondition>
- Throws:
IOException
-
fromJson
public static ActivityLogAlertAllOfCondition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ActivityLogAlertAllOfCondition from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ActivityLogAlertAllOfCondition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the ActivityLogAlertAllOfCondition.
-