Class ScriptsPainlessExecuteResponse.Builder<TResult>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.ScriptsPainlessExecuteResponse.Builder<TResult>
- All Implemented Interfaces:
ObjectBuilder<ScriptsPainlessExecuteResponse<TResult>>
- Enclosing class:
- ScriptsPainlessExecuteResponse<TResult>
public static class ScriptsPainlessExecuteResponse.Builder<TResult> extends ObjectBuilderBase implements ObjectBuilder<ScriptsPainlessExecuteResponse<TResult>>
Builder for
ScriptsPainlessExecuteResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ScriptsPainlessExecuteResponse<TResult>build()Builds aScriptsPainlessExecuteResponse.ScriptsPainlessExecuteResponse.Builder<TResult>result(TResult value)Required - API name:resultScriptsPainlessExecuteResponse.Builder<TResult>tResultSerializer(JsonpSerializer<TResult> value)Serializer for TResult.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
result
Required - API name:result -
tResultSerializer
public final ScriptsPainlessExecuteResponse.Builder<TResult> tResultSerializer(@Nullable JsonpSerializer<TResult> value)Serializer for TResult. If not set, an attempt will be made to find a serializer from the JSON context. -
build
Builds aScriptsPainlessExecuteResponse.- Specified by:
buildin interfaceObjectBuilder<TResult>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-