Class SearchMetadata

java.lang.Object
com.azure.resourcemanager.loganalytics.models.SearchMetadata

public final class SearchMetadata extends Object
Metadata for search results.
  • Constructor Details

    • SearchMetadata

      public SearchMetadata()
  • Method Details

    • searchId

      public String searchId()
      Get the searchId property: The request id of the search.
      Returns:
      the searchId value.
    • withSearchId

      public SearchMetadata withSearchId(String searchId)
      Set the searchId property: The request id of the search.
      Parameters:
      searchId - the searchId value to set.
      Returns:
      the SearchMetadata object itself.
    • resultType

      public String resultType()
      Get the resultType property: The search result type.
      Returns:
      the resultType value.
    • withResultType

      public SearchMetadata withResultType(String resultType)
      Set the resultType property: The search result type.
      Parameters:
      resultType - the resultType value to set.
      Returns:
      the SearchMetadata object itself.
    • total

      public Long total()
      Get the total property: The total number of search results.
      Returns:
      the total value.
    • withTotal

      public SearchMetadata withTotal(Long total)
      Set the total property: The total number of search results.
      Parameters:
      total - the total value to set.
      Returns:
      the SearchMetadata object itself.
    • top

      public Long top()
      Get the top property: The number of top search results.
      Returns:
      the top value.
    • withTop

      public SearchMetadata withTop(Long top)
      Set the top property: The number of top search results.
      Parameters:
      top - the top value to set.
      Returns:
      the SearchMetadata object itself.
    • id

      public String id()
      Get the id property: The id of the search results request.
      Returns:
      the id value.
    • withId

      public SearchMetadata withId(String id)
      Set the id property: The id of the search results request.
      Parameters:
      id - the id value to set.
      Returns:
      the SearchMetadata object itself.
    • coreSummaries

      public List<CoreSummary> coreSummaries()
      Get the coreSummaries property: The core summaries.
      Returns:
      the coreSummaries value.
    • withCoreSummaries

      public SearchMetadata withCoreSummaries(List<CoreSummary> coreSummaries)
      Set the coreSummaries property: The core summaries.
      Parameters:
      coreSummaries - the coreSummaries value to set.
      Returns:
      the SearchMetadata object itself.
    • status

      public String status()
      Get the status property: The status of the search results.
      Returns:
      the status value.
    • withStatus

      public SearchMetadata withStatus(String status)
      Set the status property: The status of the search results.
      Parameters:
      status - the status value to set.
      Returns:
      the SearchMetadata object itself.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The start time for the search.
      Returns:
      the startTime value.
    • withStartTime

      public SearchMetadata withStartTime(OffsetDateTime startTime)
      Set the startTime property: The start time for the search.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the SearchMetadata object itself.
    • lastUpdated

      public OffsetDateTime lastUpdated()
      Get the lastUpdated property: The time of last update.
      Returns:
      the lastUpdated value.
    • withLastUpdated

      public SearchMetadata withLastUpdated(OffsetDateTime lastUpdated)
      Set the lastUpdated property: The time of last update.
      Parameters:
      lastUpdated - the lastUpdated value to set.
      Returns:
      the SearchMetadata object itself.
    • etag

      public String etag()
      Get the etag property: The ETag of the search results.
      Returns:
      the etag value.
    • withEtag

      public SearchMetadata withEtag(String etag)
      Set the etag property: The ETag of the search results.
      Parameters:
      etag - the etag value to set.
      Returns:
      the SearchMetadata object itself.
    • sort

      public List<SearchSort> sort()
      Get the sort property: How the results are sorted.
      Returns:
      the sort value.
    • withSort

      public SearchMetadata withSort(List<SearchSort> sort)
      Set the sort property: How the results are sorted.
      Parameters:
      sort - the sort value to set.
      Returns:
      the SearchMetadata object itself.
    • requestTime

      public Long requestTime()
      Get the requestTime property: The request time.
      Returns:
      the requestTime value.
    • withRequestTime

      public SearchMetadata withRequestTime(Long requestTime)
      Set the requestTime property: The request time.
      Parameters:
      requestTime - the requestTime value to set.
      Returns:
      the SearchMetadata object itself.
    • aggregatedValueField

      public String aggregatedValueField()
      Get the aggregatedValueField property: The aggregated value field.
      Returns:
      the aggregatedValueField value.
    • withAggregatedValueField

      public SearchMetadata withAggregatedValueField(String aggregatedValueField)
      Set the aggregatedValueField property: The aggregated value field.
      Parameters:
      aggregatedValueField - the aggregatedValueField value to set.
      Returns:
      the SearchMetadata object itself.
    • aggregatedGroupingFields

      public String aggregatedGroupingFields()
      Get the aggregatedGroupingFields property: The aggregated grouping fields.
      Returns:
      the aggregatedGroupingFields value.
    • withAggregatedGroupingFields

      public SearchMetadata withAggregatedGroupingFields(String aggregatedGroupingFields)
      Set the aggregatedGroupingFields property: The aggregated grouping fields.
      Parameters:
      aggregatedGroupingFields - the aggregatedGroupingFields value to set.
      Returns:
      the SearchMetadata object itself.
    • sum

      public Long sum()
      Get the sum property: The sum of all aggregates returned in the result set.
      Returns:
      the sum value.
    • withSum

      public SearchMetadata withSum(Long sum)
      Set the sum property: The sum of all aggregates returned in the result set.
      Parameters:
      sum - the sum value to set.
      Returns:
      the SearchMetadata object itself.
    • max

      public Long max()
      Get the max property: The max of all aggregates returned in the result set.
      Returns:
      the max value.
    • withMax

      public SearchMetadata withMax(Long max)
      Set the max property: The max of all aggregates returned in the result set.
      Parameters:
      max - the max value to set.
      Returns:
      the SearchMetadata object itself.
    • schema

      public SearchMetadataSchema schema()
      Get the schema property: The schema.
      Returns:
      the schema value.
    • withSchema

      public SearchMetadata withSchema(SearchMetadataSchema schema)
      Set the schema property: The schema.
      Parameters:
      schema - the schema value to set.
      Returns:
      the SearchMetadata object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.