Class StoredScript.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.StoredScript.Builder
- All Implemented Interfaces:
CopyableBuilder<StoredScript.Builder,,StoredScript> MutableBuilder<StoredScript.Builder,,StoredScript> ObjectBuilder<StoredScript>
- Enclosing class:
StoredScript
public static class StoredScript.Builder
extends ObjectBuilderBase
implements CopyableBuilder<StoredScript.Builder,StoredScript>
Builder for
StoredScript.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aStoredScript.copy()Create a new builderCopyableBuilderthat is a copy of this one.final StoredScript.BuilderRequired - API name:langfinal StoredScript.Builderlang(ScriptLanguage value) Required - API name:langfinal StoredScript.BuilderThe options for the script.final StoredScript.BuilderThe options for the script.final StoredScript.BuilderRequired - The location of the source code for the script.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
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<StoredScript.Builder,StoredScript> - Returns:
- a new builder instance.
-
lang
Required - API name:lang -
lang
@Nonnull public final StoredScript.Builder lang(Function<ScriptLanguage.Builder, ObjectBuilder<ScriptLanguage>> fn) Required - API name:lang -
options
The options for the script.API name:
optionsAdds all elements of
maptooptions. -
options
The options for the script.API name:
optionsAdds an entry to
options. -
source
Required - The location of the source code for the script.API name:
source -
build
Builds aStoredScript.- Specified by:
buildin interfaceObjectBuilder<StoredScript>- Throws:
NullPointerException- if some of the required fields are null.
-