Class Token.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.termvectors.Token.Builder
- All Implemented Interfaces:
CopyableBuilder<Token.Builder,,Token> MutableBuilder<Token.Builder,,Token> ObjectBuilder<Token>
- Enclosing class:
Token
public static class Token.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Token.Builder,Token>
Builder for
Token.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aToken.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Token.BuilderAPI name:end_offsetfinal Token.BuilderAPI name:payloadfinal Token.Builderposition(int value) Required - API name:positionfinal Token.BuilderstartOffset(Integer value) API name:start_offsetMethods 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<Token.Builder,Token> - Returns:
- a new builder instance.
-
endOffset
API name:end_offset -
payload
API name:payload -
position
Required - API name:position -
startOffset
API name:start_offset -
build
Builds aToken.- Specified by:
buildin interfaceObjectBuilder<Token>- Throws:
NullPointerException- if some of the required fields are null.
-