Class SourceField.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.mapping.SourceField.Builder
- All Implemented Interfaces:
PlainDeserializable<SourceField.Builder>,CopyableBuilder<SourceField.Builder,,SourceField> MutableBuilder<SourceField.Builder,,SourceField> ObjectBuilder<SourceField>
- Enclosing class:
SourceField
public static class SourceField.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SourceField.Builder,SourceField>, PlainDeserializable<SourceField.Builder>
Builder for
SourceField.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSourceField.final SourceField.BuilderAPI name:compressfinal SourceField.BuildercompressThreshold(String value) API name:compress_thresholdcopy()Create a new builderCopyableBuilderthat is a copy of this one.final SourceField.BuilderAPI name:enabledfinal SourceField.BuilderAPI name:excludesfinal SourceField.BuilderAPI name:excludesfinal SourceField.BuilderAPI name:includesfinal SourceField.BuilderAPI name:includesself()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
applyMutationMethods inherited from interface org.opensearch.client.json.PlainDeserializable
withJson, withJson, withJson
-
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<SourceField.Builder,SourceField> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin interfacePlainDeserializable<SourceField.Builder>
-
compress
API name:compress -
compressThreshold
API name:compress_threshold -
enabled
API name:enabled -
excludes
API name:excludesAdds all elements of
listtoexcludes. -
excludes
API name:excludesAdds one or more values to
excludes. -
includes
API name:includesAdds all elements of
listtoincludes. -
includes
API name:includesAdds one or more values to
includes. -
build
Builds aSourceField.- Specified by:
buildin interfaceObjectBuilder<SourceField>- Throws:
NullPointerException- if some of the required fields are null.
-