Class AnalyzeToken.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.indices.analyze.AnalyzeToken.Builder
-
- All Implemented Interfaces:
ObjectBuilder<AnalyzeToken>
- Enclosing class:
- AnalyzeToken
public static class AnalyzeToken.Builder extends ObjectBuilderBase implements ObjectBuilder<AnalyzeToken>
Builder forAnalyzeToken
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyzeToken
build()
Builds aAnalyzeToken
.AnalyzeToken.Builder
endOffset(long value)
Required - API name:end_offset
AnalyzeToken.Builder
position(long value)
Required - API name:position
AnalyzeToken.Builder
positionLength(java.lang.Long value)
API name:position_length
AnalyzeToken.Builder
startOffset(long value)
Required - API name:start_offset
AnalyzeToken.Builder
token(java.lang.String value)
Required - API name:token
AnalyzeToken.Builder
type(java.lang.String value)
Required - API name:type
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
endOffset
public final AnalyzeToken.Builder endOffset(long value)
Required - API name:end_offset
-
position
public final AnalyzeToken.Builder position(long value)
Required - API name:position
-
positionLength
public final AnalyzeToken.Builder positionLength(@Nullable java.lang.Long value)
API name:position_length
-
startOffset
public final AnalyzeToken.Builder startOffset(long value)
Required - API name:start_offset
-
token
public final AnalyzeToken.Builder token(java.lang.String value)
Required - API name:token
-
type
public final AnalyzeToken.Builder type(java.lang.String value)
Required - API name:type
-
build
public AnalyzeToken build()
Builds aAnalyzeToken
.- Specified by:
build
in interfaceObjectBuilder<AnalyzeToken>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-