Class DeleteScriptRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<DeleteScriptRequest.Builder>
co.elastic.clients.elasticsearch.core.DeleteScriptRequest.Builder
- All Implemented Interfaces:
WithJson<DeleteScriptRequest.Builder>,ObjectBuilder<DeleteScriptRequest>
- Enclosing class:
- DeleteScriptRequest
public static class DeleteScriptRequest.Builder
extends RequestBase.AbstractBuilder<DeleteScriptRequest.Builder>
implements ObjectBuilder<DeleteScriptRequest>
Builder for
DeleteScriptRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDeleteScriptRequest.Required - The identifier for the stored script or search template.masterTimeout(Time value) The period to wait for a connection to the master node.The period to wait for a connection to the master node.protected DeleteScriptRequest.Builderself()The period to wait for a response.The period to wait for a response.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Required - The identifier for the stored script or search template.API name:
id -
masterTimeout
The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. It can also be set to-1to indicate that the request should never timeout.API name:
master_timeout -
masterTimeout
public final DeleteScriptRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. It can also be set to-1to indicate that the request should never timeout.API name:
master_timeout -
timeout
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. It can also be set to-1to indicate that the request should never timeout.API name:
timeout -
timeout
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. It can also be set to-1to indicate that the request should never timeout.API name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<DeleteScriptRequest.Builder>
-
build
Builds aDeleteScriptRequest.- Specified by:
buildin interfaceObjectBuilder<DeleteScriptRequest>- Throws:
NullPointerException- if some of the required fields are null.
-