Class TokenDetail.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.analyze.TokenDetail.Builder
- All Implemented Interfaces:
CopyableBuilder<TokenDetail.Builder,,TokenDetail> MutableBuilder<TokenDetail.Builder,,TokenDetail> ObjectBuilder<TokenDetail>
- Enclosing class:
TokenDetail
public static class TokenDetail.Builder
extends ObjectBuilderBase
implements CopyableBuilder<TokenDetail.Builder,TokenDetail>
Builder for
TokenDetail.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTokenDetail.copy()Create a new builderCopyableBuilderthat is a copy of this one.final TokenDetail.BuilderRequired - The name of the token filter or tokenizer.final TokenDetail.BuilderRequired - The list of tokens produced.final TokenDetail.Buildertokens(List<ExplainAnalyzeToken> list) Required - The list of tokens produced.final TokenDetail.Buildertokens(ExplainAnalyzeToken value, ExplainAnalyzeToken... values) Required - The list of tokens produced.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<TokenDetail.Builder,TokenDetail> - Returns:
- a new builder instance.
-
name
Required - The name of the token filter or tokenizer.API name:
name -
tokens
Required - The list of tokens produced.API name:
tokensAdds all elements of
listtotokens. -
tokens
@Nonnull public final TokenDetail.Builder tokens(ExplainAnalyzeToken value, ExplainAnalyzeToken... values) Required - The list of tokens produced.API name:
tokensAdds one or more values to
tokens. -
tokens
@Nonnull public final TokenDetail.Builder tokens(Function<ExplainAnalyzeToken.Builder, ObjectBuilder<ExplainAnalyzeToken>> fn) Required - The list of tokens produced.API name:
tokensAdds a value to
tokensusing a builder lambda. -
build
Builds aTokenDetail.- Specified by:
buildin interfaceObjectBuilder<TokenDetail>- Throws:
NullPointerException- if some of the required fields are null.
-