Class AnalyzerDetail.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.analyze.AnalyzerDetail.Builder
- All Implemented Interfaces:
CopyableBuilder<AnalyzerDetail.Builder,,AnalyzerDetail> MutableBuilder<AnalyzerDetail.Builder,,AnalyzerDetail> ObjectBuilder<AnalyzerDetail>
- Enclosing class:
AnalyzerDetail
public static class AnalyzerDetail.Builder
extends ObjectBuilderBase
implements CopyableBuilder<AnalyzerDetail.Builder,AnalyzerDetail>
Builder for
AnalyzerDetail.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAnalyzerDetail.copy()Create a new builderCopyableBuilderthat is a copy of this one.final AnalyzerDetail.BuilderRequired - The name of the analyzer.final AnalyzerDetail.BuilderRequired - The list of tokens produced by the analyzer.final AnalyzerDetail.Buildertokens(List<ExplainAnalyzeToken> list) Required - The list of tokens produced by the analyzer.final AnalyzerDetail.Buildertokens(ExplainAnalyzeToken value, ExplainAnalyzeToken... values) Required - The list of tokens produced by the analyzer.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<AnalyzerDetail.Builder,AnalyzerDetail> - Returns:
- a new builder instance.
-
name
Required - The name of the analyzer.API name:
name -
tokens
Required - The list of tokens produced by the analyzer.API name:
tokensAdds all elements of
listtotokens. -
tokens
@Nonnull public final AnalyzerDetail.Builder tokens(ExplainAnalyzeToken value, ExplainAnalyzeToken... values) Required - The list of tokens produced by the analyzer.API name:
tokensAdds one or more values to
tokens. -
tokens
@Nonnull public final AnalyzerDetail.Builder tokens(Function<ExplainAnalyzeToken.Builder, ObjectBuilder<ExplainAnalyzeToken>> fn) Required - The list of tokens produced by the analyzer.API name:
tokensAdds a value to
tokensusing a builder lambda. -
build
Builds aAnalyzerDetail.- Specified by:
buildin interfaceObjectBuilder<AnalyzerDetail>- Throws:
NullPointerException- if some of the required fields are null.
-