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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description LikeDocumentbuild()Builds aLikeDocument.LikeDocument.Builderdoc(JsonData value)API name:docLikeDocument.Builderfields(java.lang.String value, java.lang.String... values)API name:fieldsLikeDocument.Builderfields(java.util.List<java.lang.String> list)API name:fieldsLikeDocument.Builderid(java.lang.String value)API name:_idLikeDocument.Builderindex(java.lang.String value)API name:_indexLikeDocument.BuilderperFieldAnalyzer(java.lang.String key, java.lang.String value)API name:per_field_analyzerLikeDocument.BuilderperFieldAnalyzer(java.util.Map<java.lang.String,java.lang.String> map)API name:per_field_analyzerLikeDocument.Builderrouting(java.lang.String value)API name:routingprotected LikeDocument.Builderself()LikeDocument.Builderversion(java.lang.Long value)API name:versionLikeDocument.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
-
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
public final LikeDocument.Builder perFieldAnalyzer(java.util.Map<java.lang.String,java.lang.String> map)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:
java.lang.NullPointerException- if some of the required fields are null.
-