Class DiagnosticSettingsCategory
java.lang.Object
com.azure.resourcemanager.monitor.fluent.models.DiagnosticSettingsCategory
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiagnosticSettingsCategory>
public final class DiagnosticSettingsCategory
extends Object
implements com.azure.json.JsonSerializable<DiagnosticSettingsCategory>
The diagnostic settings Category.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DiagnosticSettingsCategory class. -
Method Summary
Modifier and TypeMethodDescriptionGet the categoryGroups property: the collection of what category groups are supported.Get the categoryType property: The type of the diagnostic settings category.static DiagnosticSettingsCategoryfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiagnosticSettingsCategory from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCategoryGroups(List<String> categoryGroups) Set the categoryGroups property: the collection of what category groups are supported.withCategoryType(CategoryType categoryType) Set the categoryType property: The type of the diagnostic settings category.Methods inherited from class 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
-
DiagnosticSettingsCategory
public DiagnosticSettingsCategory()Creates an instance of DiagnosticSettingsCategory class.
-
-
Method Details
-
categoryType
Get the categoryType property: The type of the diagnostic settings category.- Returns:
- the categoryType value.
-
withCategoryType
Set the categoryType property: The type of the diagnostic settings category.- Parameters:
categoryType- the categoryType value to set.- Returns:
- the DiagnosticSettingsCategory object itself.
-
categoryGroups
-
withCategoryGroups
Set the categoryGroups property: the collection of what category groups are supported.- Parameters:
categoryGroups- the categoryGroups value to set.- Returns:
- the DiagnosticSettingsCategory object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DiagnosticSettingsCategory>- Throws:
IOException
-
fromJson
public static DiagnosticSettingsCategory fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DiagnosticSettingsCategory from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiagnosticSettingsCategory 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 DiagnosticSettingsCategory.
-