Class CreateOperation.Builder<TDocument>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.core.bulk.BulkOperationBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch.core.bulk.WriteOperation.AbstractBuilder<CreateOperation.Builder<TDocument>>
co.elastic.clients.elasticsearch.core.bulk.CreateOperation.Builder<TDocument>
- All Implemented Interfaces:
WithJson<CreateOperation.Builder<TDocument>>
,ObjectBuilder<CreateOperation<TDocument>>
- Enclosing class:
- CreateOperation<TDocument>
public static class CreateOperation.Builder<TDocument>
extends WriteOperation.AbstractBuilder<CreateOperation.Builder<TDocument>>
implements ObjectBuilder<CreateOperation<TDocument>>
Builder for
CreateOperation
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aCreateOperation
.final CreateOperation.Builder<TDocument>
Required - API name:document
protected CreateOperation.Builder<TDocument>
self()
final CreateOperation.Builder<TDocument>
Serializer for TDocument.Methods inherited from class co.elastic.clients.elasticsearch.core.bulk.WriteOperation.AbstractBuilder
dynamicTemplates, dynamicTemplates, pipeline, requireAlias
Methods inherited from class co.elastic.clients.elasticsearch.core.bulk.BulkOperationBase.AbstractBuilder
id, ifPrimaryTerm, ifSeqNo, index, routing, version, versionType
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
document
Required - API name:document
-
tDocumentSerializer
public final CreateOperation.Builder<TDocument> tDocumentSerializer(@Nullable JsonpSerializer<TDocument> value) Serializer for TDocument. If not set, an attempt will be made to find a serializer from the JSON context. -
self
- Specified by:
self
in classBulkOperationBase.AbstractBuilder<CreateOperation.Builder<TDocument>>
-
build
Builds aCreateOperation
.- Specified by:
build
in interfaceObjectBuilder<TDocument>
- Throws:
NullPointerException
- if some of the required fields are null.
-