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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the azureAsyncOperationId property: Search results table async operation id.Get the description property: Search job Description.Get the endSearchTime property: The timestamp to end the search by (UTC).static SearchResultsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchResults from the JsonReader.limit()Get the limit property: Limit the search job to return up to specified number of rows.query()Get the query property: Search job query.Get the sourceTable property: The table used in the search job.Get the startSearchTime property: The timestamp to start the search from (UTC).com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withDescription(String description) Set the description property: Search job Description.withEndSearchTime(OffsetDateTime endSearchTime) Set the endSearchTime property: The timestamp to end the search by (UTC).Set the limit property: Limit the search job to return up to specified number of rows.Set the query property: Search job query.withStartSearchTime(OffsetDateTime startSearchTime) Set the startSearchTime property: The timestamp to start the search from (UTC).Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SearchResults
public SearchResults()Creates an instance of SearchResults class.
-
-
Method Details
-
query
-
withQuery
Set the query property: Search job query.- Parameters:
query- the query value to set.- Returns:
- the SearchResults object itself.
-
description
Get the description property: Search job Description.- Returns:
- the description value.
-
withDescription
Set the description property: Search job Description.- Parameters:
description- the description value to set.- Returns:
- the SearchResults object itself.
-
limit
Get the limit property: Limit the search job to return up to specified number of rows.- Returns:
- the limit value.
-
withLimit
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
Get the startSearchTime property: The timestamp to start the search from (UTC).- Returns:
- the startSearchTime value.
-
withStartSearchTime
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
Get the endSearchTime property: The timestamp to end the search by (UTC).- Returns:
- the endSearchTime value.
-
withEndSearchTime
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
Get the sourceTable property: The table used in the search job.- Returns:
- the sourceTable value.
-
azureAsyncOperationId
Get the azureAsyncOperationId property: Search results table async operation id.- Returns:
- the azureAsyncOperationId value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchResults>- Throws:
IOException
-
fromJson
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.
-