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 Details

    • DiagnosticSettingsCategory

      public DiagnosticSettingsCategory()
      Creates an instance of DiagnosticSettingsCategory class.
  • Method Details

    • categoryType

      public CategoryType categoryType()
      Get the categoryType property: The type of the diagnostic settings category.
      Returns:
      the categoryType value.
    • withCategoryType

      public DiagnosticSettingsCategory withCategoryType(CategoryType categoryType)
      Set the categoryType property: The type of the diagnostic settings category.
      Parameters:
      categoryType - the categoryType value to set.
      Returns:
      the DiagnosticSettingsCategory object itself.
    • categoryGroups

      public List<String> categoryGroups()
      Get the categoryGroups property: the collection of what category groups are supported.
      Returns:
      the categoryGroups value.
    • withCategoryGroups

      public DiagnosticSettingsCategory withCategoryGroups(List<String> categoryGroups)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.