EventCategoryCollection Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.EventCategoryCollection

Implements

public final class EventCategoryCollection
implements JsonSerializable<EventCategoryCollection>

A collection of event categories. Currently possible values are: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.

Constructor Summary

Constructor Description
EventCategoryCollection()

Creates an instance of EventCategoryCollection class.

Method Summary

Modifier and Type Method and Description
static EventCategoryCollection fromJson(JsonReader jsonReader)

Reads an instance of EventCategoryCollection from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<LocalizableStringInner> value()

Get the value property: the list that includes the Azure event categories.

EventCategoryCollection withValue(List<LocalizableStringInner> value)

Set the value property: the list that includes the Azure event categories.

Methods inherited from java.lang.Object

Constructor Details

EventCategoryCollection

public EventCategoryCollection()

Creates an instance of EventCategoryCollection class.

Method Details

fromJson

public static EventCategoryCollection fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public List value()

Get the value property: the list that includes the Azure event categories.

Returns:

the value value.

withValue

public EventCategoryCollection withValue(List value)

Set the value property: the list that includes the Azure event categories.

Parameters:

value - the value value to set.

Returns:

the EventCategoryCollection object itself.

Applies to

Azure SDK for Java

Latest