Class GetResponse.Builder<TDocument>
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.get.GetResult.AbstractBuilder<TDocument,GetResponse.Builder<TDocument>>
org.opensearch.client.opensearch.core.GetResponse.Builder<TDocument>
- All Implemented Interfaces:
ObjectBuilder<GetResponse<TDocument>>
- Enclosing class:
GetResponse<TDocument>
public static class GetResponse.Builder<TDocument>
extends GetResult.AbstractBuilder<TDocument,GetResponse.Builder<TDocument>>
implements ObjectBuilder<GetResponse<TDocument>>
Builder for
GetResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetResponse.protected GetResponse.Builder<TDocument> self()Methods inherited from class org.opensearch.client.opensearch.core.get.GetResult.AbstractBuilder
fields, fields, found, id, index, primaryTerm, routing, seqNo, source, tDocumentSerializer, versionMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
self
- Specified by:
selfin classGetResult.AbstractBuilder<TDocument,GetResponse.Builder<TDocument>>
-
build
Builds aGetResponse.- Specified by:
buildin interfaceObjectBuilder<TDocument>- Throws:
NullPointerException- if some of the required fields are null.
-