Class GetAsyncStatusResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetAsyncStatusResponse.Builder>
co.elastic.clients.elasticsearch.sql.GetAsyncStatusResponse.Builder
- All Implemented Interfaces:
WithJson<GetAsyncStatusResponse.Builder>,ObjectBuilder<GetAsyncStatusResponse>
- Enclosing class:
- GetAsyncStatusResponse
public static class GetAsyncStatusResponse.Builder
extends WithJsonObjectBuilderBase<GetAsyncStatusResponse.Builder>
implements ObjectBuilder<GetAsyncStatusResponse>
Builder for
GetAsyncStatusResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetAsyncStatusResponse.completionStatus(Number value) The HTTP status code for the search.expirationTimeInMillis(long value) Required - The timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete the search and its results, even if the search is still running.Required - The identifier for the search.isPartial(boolean value) Required - Iftrue, the response does not contain complete search results.isRunning(boolean value) Required - Iftrue, the search is still running.protected GetAsyncStatusResponse.Builderself()startTimeInMillis(long value) Required - The timestamp, in milliseconds since the Unix epoch, when the search started.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expirationTimeInMillis
Required - The timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete the search and its results, even if the search is still running.API name:
expiration_time_in_millis -
id
Required - The identifier for the search.API name:
id -
isRunning
Required - Iftrue, the search is still running. Iffalse, the search has finished.API name:
is_running -
isPartial
Required - Iftrue, the response does not contain complete search results. Ifis_partialistrueandis_runningistrue, the search is still running. Ifis_partialistruebutis_runningisfalse, the results are partial due to a failure or timeout.API name:
is_partial -
startTimeInMillis
Required - The timestamp, in milliseconds since the Unix epoch, when the search started. The API returns this property only for running searches.API name:
start_time_in_millis -
completionStatus
The HTTP status code for the search. The API returns this property only for completed searches.API name:
completion_status -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetAsyncStatusResponse.Builder>
-
build
Builds aGetAsyncStatusResponse.- Specified by:
buildin interfaceObjectBuilder<GetAsyncStatusResponse>- Throws:
NullPointerException- if some of the required fields are null.
-