Class SearchMetadataSchema

java.lang.Object
com.azure.resourcemanager.loganalytics.models.SearchMetadataSchema
All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchMetadataSchema>

public final class SearchMetadataSchema extends Object implements com.azure.json.JsonSerializable<SearchMetadataSchema>
Schema metadata for search.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SearchMetadataSchema from the JsonReader.
    Get the name property: The name of the metadata schema.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the version property: The version of the metadata schema.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • name

      public String name()
      Get the name property: The name of the metadata schema.
      Returns:
      the name value.
    • version

      public Integer version()
      Get the version property: The version of the metadata schema.
      Returns:
      the version value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SearchMetadataSchema>
      Throws:
      IOException
    • fromJson

      public static SearchMetadataSchema fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SearchMetadataSchema from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SearchMetadataSchema 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 SearchMetadataSchema.