Class StoredScript.Builder
java.lang.Object
co.elastic.clients.elasticsearch._types.StoredScript.Builder
- All Implemented Interfaces:
ObjectBuilder<StoredScript>
- Enclosing class:
- StoredScript
public static class StoredScript.Builder extends java.lang.Object implements ObjectBuilder<StoredScript>
Builder for
StoredScript
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description StoredScript
build()
Builds aStoredScript
.StoredScript.Builder
lang(ScriptLanguage value)
API name:lang
StoredScript.Builder
source(java.lang.String value)
Required - API name:source
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lang
API name:lang
-
source
Required - API name:source
-
build
Builds aStoredScript
.- Specified by:
build
in interfaceObjectBuilder<StoredScript>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-