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 TokenDetailbuild()Builds aTokenDetail.TokenDetail.Buildername(java.lang.String value)Required - API name:nameTokenDetail.Buildertokens(ExplainAnalyzeToken value, ExplainAnalyzeToken... values)Required - API name:tokensTokenDetail.Buildertokens(java.util.function.Function<ExplainAnalyzeToken.Builder,ObjectBuilder<ExplainAnalyzeToken>> fn)Required - API name:tokensTokenDetail.Buildertokens(java.util.List<ExplainAnalyzeToken> list)Required - API name:tokensMethods 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
-
name
Required - API name:name -
tokens
Required - API name:tokensAdds all elements of
listtotokens. -
tokens
Required - API name:tokensAdds one or more values to
tokens. -
tokens
public final TokenDetail.Builder tokens(java.util.function.Function<ExplainAnalyzeToken.Builder,ObjectBuilder<ExplainAnalyzeToken>> fn)Required - API name:tokensAdds a value to
tokensusing a builder lambda. -
build
Builds aTokenDetail.- Specified by:
buildin interfaceObjectBuilder<TokenDetail>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-