Class SavedSearchInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class SavedSearchInner extends com.azure.core.management.ProxyResource
Value object for saved search results.
  • Constructor Details

    • SavedSearchInner

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

    • etag

      public String etag()
      Get the etag property: The ETag of the saved search. To override an existing saved search, use "*" or specify the current Etag.
      Returns:
      the etag value.
    • withEtag

      public SavedSearchInner withEtag(String etag)
      Set the etag property: The ETag of the saved search. To override an existing saved search, use "*" or specify the current Etag.
      Parameters:
      etag - the etag value to set.
      Returns:
      the SavedSearchInner object itself.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Returns:
      the systemData value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • category

      public String category()
      Get the category property: The category of the saved search. This helps the user to find a saved search faster.
      Returns:
      the category value.
    • withCategory

      public SavedSearchInner withCategory(String category)
      Set the category property: The category of the saved search. This helps the user to find a saved search faster.
      Parameters:
      category - the category value to set.
      Returns:
      the SavedSearchInner object itself.
    • displayName

      public String displayName()
      Get the displayName property: Saved search display name.
      Returns:
      the displayName value.
    • withDisplayName

      public SavedSearchInner withDisplayName(String displayName)
      Set the displayName property: Saved search display name.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the SavedSearchInner object itself.
    • query

      public String query()
      Get the query property: The query expression for the saved search.
      Returns:
      the query value.
    • withQuery

      public SavedSearchInner withQuery(String query)
      Set the query property: The query expression for the saved search.
      Parameters:
      query - the query value to set.
      Returns:
      the SavedSearchInner object itself.
    • functionAlias

      public String functionAlias()
      Get the functionAlias property: The function alias if query serves as a function.
      Returns:
      the functionAlias value.
    • withFunctionAlias

      public SavedSearchInner withFunctionAlias(String functionAlias)
      Set the functionAlias property: The function alias if query serves as a function.
      Parameters:
      functionAlias - the functionAlias value to set.
      Returns:
      the SavedSearchInner object itself.
    • functionParameters

      public String functionParameters()
      Get the functionParameters property: The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more examples and proper syntax please refer to https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
      Returns:
      the functionParameters value.
    • withFunctionParameters

      public SavedSearchInner withFunctionParameters(String functionParameters)
      Set the functionParameters property: The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more examples and proper syntax please refer to https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
      Parameters:
      functionParameters - the functionParameters value to set.
      Returns:
      the SavedSearchInner object itself.
    • version

      public Long version()
      Get the version property: The version number of the query language. The current version is 2 and is the default.
      Returns:
      the version value.
    • withVersion

      public SavedSearchInner withVersion(Long version)
      Set the version property: The version number of the query language. The current version is 2 and is the default.
      Parameters:
      version - the version value to set.
      Returns:
      the SavedSearchInner object itself.
    • tags

      public List<Tag> tags()
      Get the tags property: The tags attached to the saved search.
      Returns:
      the tags value.
    • withTags

      public SavedSearchInner withTags(List<Tag> tags)
      Set the tags property: The tags attached to the saved search.
      Parameters:
      tags - the tags value to set.
      Returns:
      the SavedSearchInner object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

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