Class ScriptField.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.ScriptField.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ScriptField>
- Enclosing class:
- ScriptField
public static class ScriptField.Builder extends ObjectBuilderBase implements ObjectBuilder<ScriptField>
Builder forScriptField
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScriptField
build()
Builds aScriptField
.ScriptField.Builder
ignoreFailure(java.lang.Boolean value)
API name:ignore_failure
ScriptField.Builder
script(java.util.function.Function<Script.Builder,ObjectBuilder<Script>> fn)
Required - API name:script
ScriptField.Builder
script(Script value)
Required - API name:script
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
script
public final ScriptField.Builder script(Script value)
Required - API name:script
-
script
public final ScriptField.Builder script(java.util.function.Function<Script.Builder,ObjectBuilder<Script>> fn)
Required - API name:script
-
ignoreFailure
public final ScriptField.Builder ignoreFailure(@Nullable java.lang.Boolean value)
API name:ignore_failure
-
build
public ScriptField build()
Builds aScriptField
.- Specified by:
build
in interfaceObjectBuilder<ScriptField>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-