Class TokenDetail.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.indices.analyze.TokenDetail.Builder
- All Implemented Interfaces:
ObjectBuilder<TokenDetail>
- Enclosing class:
- TokenDetail
public static class TokenDetail.Builder extends ObjectBuilderBase implements ObjectBuilder<TokenDetail>
Builder for
TokenDetail
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TokenDetail
build()
Builds aTokenDetail
.TokenDetail.Builder
name(java.lang.String value)
Required - API name:name
TokenDetail.Builder
tokens(ExplainAnalyzeToken value, ExplainAnalyzeToken... values)
Required - API name:tokens
TokenDetail.Builder
tokens(java.util.function.Function<ExplainAnalyzeToken.Builder,ObjectBuilder<ExplainAnalyzeToken>> fn)
Required - API name:tokens
TokenDetail.Builder
tokens(java.util.List<ExplainAnalyzeToken> list)
Required - API name:tokens
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
-
name
Required - API name:name
-
tokens
Required - API name:tokens
Adds all elements of
list
totokens
. -
tokens
Required - API name:tokens
Adds one or more values to
tokens
. -
tokens
public final TokenDetail.Builder tokens(java.util.function.Function<ExplainAnalyzeToken.Builder,ObjectBuilder<ExplainAnalyzeToken>> fn)Required - API name:tokens
Adds a value to
tokens
using a builder lambda. -
build
Builds aTokenDetail
.- Specified by:
build
in interfaceObjectBuilder<TokenDetail>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-