Class EventCategoryCollection
java.lang.Object
com.azure.resourcemanager.monitor.models.EventCategoryCollection
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EventCategoryCollection>
public final class EventCategoryCollection
extends Object
implements com.azure.json.JsonSerializable<EventCategoryCollection>
A collection of event categories. Currently possible values are: Administrative, Security, ServiceHealth, Alert,
Recommendation, Policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EventCategoryCollection class. -
Method Summary
Modifier and TypeMethodDescriptionstatic EventCategoryCollection
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of EventCategoryCollection from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.value()
Get the value property: the list that includes the Azure event categories.withValue
(List<LocalizableStringInner> value) Set the value property: the list that includes the Azure event categories.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
-
EventCategoryCollection
public EventCategoryCollection()Creates an instance of EventCategoryCollection class.
-
-
Method Details
-
value
Get the value property: the list that includes the Azure event categories.- Returns:
- the value value.
-
withValue
Set the value property: the list that includes the Azure event categories.- Parameters:
value
- the value value to set.- Returns:
- the EventCategoryCollection 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<EventCategoryCollection>
- Throws:
IOException
-
fromJson
public static EventCategoryCollection fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EventCategoryCollection from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of EventCategoryCollection 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 EventCategoryCollection.
-