Class LikeDocument.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<LikeDocument.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.LikeDocument.Builder
- All Implemented Interfaces:
WithJson<LikeDocument.Builder>,ObjectBuilder<LikeDocument>
- Enclosing class:
- LikeDocument
public static class LikeDocument.Builder
extends WithJsonObjectBuilderBase<LikeDocument.Builder>
implements ObjectBuilder<LikeDocument>
Builder for
LikeDocument.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aLikeDocument.final LikeDocument.BuilderAPI name:docfinal LikeDocument.BuilderAPI name:fieldsfinal LikeDocument.BuilderAPI name:fieldsfinal LikeDocument.BuilderAPI name:_idfinal LikeDocument.BuilderAPI name:_indexfinal LikeDocument.BuilderperFieldAnalyzer(String key, String value) API name:per_field_analyzerfinal LikeDocument.BuilderperFieldAnalyzer(Map<String, String> map) API name:per_field_analyzerfinal LikeDocument.BuilderAPI name:routingprotected LikeDocument.Builderself()final LikeDocument.BuilderAPI name:versionfinal LikeDocument.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, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
doc
API name:doc -
fields
API name:fieldsAdds all elements of
listtofields. -
fields
API name:fieldsAdds one or more values to
fields. -
id
API name:_id -
index
API name:_index -
perFieldAnalyzer
API name:per_field_analyzerAdds all entries of
maptoperFieldAnalyzer. -
perFieldAnalyzer
API name:per_field_analyzerAdds an entry to
perFieldAnalyzer. -
routing
API name:routing -
version
API name:version -
versionType
API name:version_type -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<LikeDocument.Builder>
-
build
Builds aLikeDocument.- Specified by:
buildin interfaceObjectBuilder<LikeDocument>- Throws:
NullPointerException- if some of the required fields are null.
-