Class DocumentSimulation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DocumentSimulation.Builder>
co.elastic.clients.elasticsearch.ingest.simulate.DocumentSimulation.Builder
- All Implemented Interfaces:
WithJson<DocumentSimulation.Builder>,ObjectBuilder<DocumentSimulation>
- Enclosing class:
- DocumentSimulation
public static class DocumentSimulation.Builder extends WithJsonObjectBuilderBase<DocumentSimulation.Builder> implements ObjectBuilder<DocumentSimulation>
Builder for
DocumentSimulation.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description DocumentSimulationbuild()Builds aDocumentSimulation.DocumentSimulation.Builderid(java.lang.String value)Required - API name:_idDocumentSimulation.Builderindex(java.lang.String value)Required - API name:_indexDocumentSimulation.Builderingest(Ingest value)Required - API name:_ingestDocumentSimulation.Builderingest(java.util.function.Function<Ingest.Builder,ObjectBuilder<Ingest>> fn)Required - API name:_ingestDocumentSimulation.Buildermetadata(java.lang.String key, java.lang.String value)Additional metadataDocumentSimulation.Buildermetadata(java.util.Map<java.lang.String,java.lang.String> map)Additional metadataDocumentSimulation.Builderrouting(java.lang.String value)API name:_routingprotected DocumentSimulation.Builderself()DocumentSimulation.Buildersource(java.lang.String key, JsonData value)Required - API name:_sourceDocumentSimulation.Buildersource(java.util.Map<java.lang.String,JsonData> map)Required - API name:_sourceDocumentSimulation.Builderversion(java.lang.Long value)API name:_versionDocumentSimulation.BuilderversionType(VersionType value)API name:_version_typeMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metadata
public final DocumentSimulation.Builder metadata(java.util.Map<java.lang.String,java.lang.String> map)Additional metadataAdds all entries of
maptometadata. -
metadata
Additional metadataAdds an entry to
metadata. -
id
Required - API name:_id -
index
Required - API name:_index -
ingest
Required - API name:_ingest -
ingest
public final DocumentSimulation.Builder ingest(java.util.function.Function<Ingest.Builder,ObjectBuilder<Ingest>> fn)Required - API name:_ingest -
routing
API name:_routing -
source
Required - API name:_sourceAdds all entries of
maptosource. -
source
Required - API name:_sourceAdds an entry to
source. -
version
API name:_version -
versionType
API name:_version_type -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DocumentSimulation.Builder>
-
build
Builds aDocumentSimulation.- Specified by:
buildin interfaceObjectBuilder<DocumentSimulation>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-