Class SourceField.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.mapping.SourceField.Builder
-
- All Implemented Interfaces:
ObjectBuilder<SourceField>
- Enclosing class:
- SourceField
public static class SourceField.Builder extends ObjectBuilderBase implements ObjectBuilder<SourceField>
Builder forSourceField
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceField
build()
Builds aSourceField
.SourceField.Builder
compress(java.lang.Boolean value)
API name:compress
SourceField.Builder
compressThreshold(java.lang.String value)
API name:compress_threshold
SourceField.Builder
enabled(java.lang.Boolean value)
API name:enabled
SourceField.Builder
excludes(java.lang.String value, java.lang.String... values)
API name:excludes
SourceField.Builder
excludes(java.util.List<java.lang.String> list)
API name:excludes
SourceField.Builder
includes(java.lang.String value, java.lang.String... values)
API name:includes
SourceField.Builder
includes(java.util.List<java.lang.String> list)
API name:includes
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
compress
public final SourceField.Builder compress(@Nullable java.lang.Boolean value)
API name:compress
-
compressThreshold
public final SourceField.Builder compressThreshold(@Nullable java.lang.String value)
API name:compress_threshold
-
enabled
public final SourceField.Builder enabled(@Nullable java.lang.Boolean value)
API name:enabled
-
excludes
public final SourceField.Builder excludes(java.util.List<java.lang.String> list)
API name:excludes
Adds all elements of
list
toexcludes
.
-
excludes
public final SourceField.Builder excludes(java.lang.String value, java.lang.String... values)
API name:excludes
Adds one or more values to
excludes
.
-
includes
public final SourceField.Builder includes(java.util.List<java.lang.String> list)
API name:includes
Adds all elements of
list
toincludes
.
-
includes
public final SourceField.Builder includes(java.lang.String value, java.lang.String... values)
API name:includes
Adds one or more values to
includes
.
-
build
public SourceField build()
Builds aSourceField
.- Specified by:
build
in interfaceObjectBuilder<SourceField>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-