Class SearchResults

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

public final class SearchResults extends Object implements com.azure.json.JsonSerializable<SearchResults>
Parameters of the search job that initiated this table.
  • Constructor Details

    • SearchResults

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

    • query

      public String query()
      Get the query property: Search job query.
      Returns:
      the query value.
    • withQuery

      public SearchResults withQuery(String query)
      Set the query property: Search job query.
      Parameters:
      query - the query value to set.
      Returns:
      the SearchResults object itself.
    • description

      public String description()
      Get the description property: Search job Description.
      Returns:
      the description value.
    • withDescription

      public SearchResults withDescription(String description)
      Set the description property: Search job Description.
      Parameters:
      description - the description value to set.
      Returns:
      the SearchResults object itself.
    • limit

      public Integer limit()
      Get the limit property: Limit the search job to return up to specified number of rows.
      Returns:
      the limit value.
    • withLimit

      public SearchResults withLimit(Integer limit)
      Set the limit property: Limit the search job to return up to specified number of rows.
      Parameters:
      limit - the limit value to set.
      Returns:
      the SearchResults object itself.
    • startSearchTime

      public OffsetDateTime startSearchTime()
      Get the startSearchTime property: The timestamp to start the search from (UTC).
      Returns:
      the startSearchTime value.
    • withStartSearchTime

      public SearchResults withStartSearchTime(OffsetDateTime startSearchTime)
      Set the startSearchTime property: The timestamp to start the search from (UTC).
      Parameters:
      startSearchTime - the startSearchTime value to set.
      Returns:
      the SearchResults object itself.
    • endSearchTime

      public OffsetDateTime endSearchTime()
      Get the endSearchTime property: The timestamp to end the search by (UTC).
      Returns:
      the endSearchTime value.
    • withEndSearchTime

      public SearchResults withEndSearchTime(OffsetDateTime endSearchTime)
      Set the endSearchTime property: The timestamp to end the search by (UTC).
      Parameters:
      endSearchTime - the endSearchTime value to set.
      Returns:
      the SearchResults object itself.
    • sourceTable

      public String sourceTable()
      Get the sourceTable property: The table used in the search job.
      Returns:
      the sourceTable value.
    • azureAsyncOperationId

      public String azureAsyncOperationId()
      Get the azureAsyncOperationId property: Search results table async operation id.
      Returns:
      the azureAsyncOperationId value.
    • toJson

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

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