Class AnalyzeToken.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.analyze.AnalyzeToken.Builder
- All Implemented Interfaces:
CopyableBuilder<AnalyzeToken.Builder,,AnalyzeToken> MutableBuilder<AnalyzeToken.Builder,,AnalyzeToken> ObjectBuilder<AnalyzeToken>
- Enclosing class:
AnalyzeToken
public static class AnalyzeToken.Builder
extends ObjectBuilderBase
implements CopyableBuilder<AnalyzeToken.Builder,AnalyzeToken>
Builder for
AnalyzeToken.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAnalyzeToken.copy()Create a new builderCopyableBuilderthat is a copy of this one.final AnalyzeToken.BuilderendOffset(int value) Required - The ending character offset of the token.final AnalyzeToken.Builderposition(int value) Required - The position of the token.final AnalyzeToken.BuilderpositionLength(Integer value) The length of the token position.final AnalyzeToken.BuilderstartOffset(int value) Required - The starting character offset of the token.final AnalyzeToken.BuilderRequired - The token string.final AnalyzeToken.BuilderRequired - The type of the token.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<AnalyzeToken.Builder,AnalyzeToken> - Returns:
- a new builder instance.
-
endOffset
Required - The ending character offset of the token.API name:
end_offset -
position
Required - The position of the token.API name:
position -
positionLength
The length of the token position.API name:
positionLength -
startOffset
Required - The starting character offset of the token.API name:
start_offset -
token
Required - The token string.API name:
token -
type
Required - The type of the token.API name:
type -
build
Builds aAnalyzeToken.- Specified by:
buildin interfaceObjectBuilder<AnalyzeToken>- Throws:
NullPointerException- if some of the required fields are null.
-