Class PatternCaptureTokenFilter.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.analysis.TokenFilterBase.AbstractBuilder<PatternCaptureTokenFilter.Builder>
-
- org.opensearch.client.opensearch._types.analysis.PatternCaptureTokenFilter.Builder
-
- All Implemented Interfaces:
ObjectBuilder<PatternCaptureTokenFilter>
- Enclosing class:
- PatternCaptureTokenFilter
public static class PatternCaptureTokenFilter.Builder extends TokenFilterBase.AbstractBuilder<PatternCaptureTokenFilter.Builder> implements ObjectBuilder<PatternCaptureTokenFilter>
Builder forPatternCaptureTokenFilter
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatternCaptureTokenFilter
build()
Builds aPatternCaptureTokenFilter
.PatternCaptureTokenFilter.Builder
patterns(java.lang.String value, java.lang.String... values)
Required - API name:patterns
PatternCaptureTokenFilter.Builder
patterns(java.util.List<java.lang.String> list)
Required - API name:patterns
PatternCaptureTokenFilter.Builder
preserveOriginal(boolean value)
Required - API name:preserve_original
protected PatternCaptureTokenFilter.Builder
self()
-
Methods inherited from class org.opensearch.client.opensearch._types.analysis.TokenFilterBase.AbstractBuilder
version
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
patterns
public final PatternCaptureTokenFilter.Builder patterns(java.util.List<java.lang.String> list)
Required - API name:patterns
Adds all elements of
list
topatterns
.
-
patterns
public final PatternCaptureTokenFilter.Builder patterns(java.lang.String value, java.lang.String... values)
Required - API name:patterns
Adds one or more values to
patterns
.
-
preserveOriginal
public final PatternCaptureTokenFilter.Builder preserveOriginal(boolean value)
Required - API name:preserve_original
-
self
protected PatternCaptureTokenFilter.Builder self()
- Specified by:
self
in classTokenFilterBase.AbstractBuilder<PatternCaptureTokenFilter.Builder>
-
build
public PatternCaptureTokenFilter build()
Builds aPatternCaptureTokenFilter
.- Specified by:
build
in interfaceObjectBuilder<PatternCaptureTokenFilter>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-