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 LikeDocument
build()
Builds aLikeDocument
.LikeDocument.Builder
doc(JsonData value)
API name:doc
LikeDocument.Builder
fields(java.lang.String value, java.lang.String... values)
API name:fields
LikeDocument.Builder
fields(java.util.List<java.lang.String> list)
API name:fields
LikeDocument.Builder
id(java.lang.String value)
API name:_id
LikeDocument.Builder
index(java.lang.String value)
API name:_index
LikeDocument.Builder
perFieldAnalyzer(java.lang.String key, java.lang.String value)
API name:per_field_analyzer
LikeDocument.Builder
perFieldAnalyzer(java.util.Map<java.lang.String,java.lang.String> map)
API name:per_field_analyzer
LikeDocument.Builder
routing(java.lang.String value)
API name:routing
protected LikeDocument.Builder
self()
LikeDocument.Builder
version(java.lang.Long value)
API name:version
LikeDocument.Builder
versionType(VersionType value)
API name:version_type
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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:fields
Adds all elements of
list
tofields
. -
fields
API name:fields
Adds 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_analyzer
Adds all entries of
map
toperFieldAnalyzer
. -
perFieldAnalyzer
API name:per_field_analyzer
Adds an entry to
perFieldAnalyzer
. -
routing
API name:routing
-
version
API name:version
-
versionType
API name:version_type
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<LikeDocument.Builder>
-
build
Builds aLikeDocument
.- Specified by:
build
in interfaceObjectBuilder<LikeDocument>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-