Class PutIpLocationDatabaseRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutIpLocationDatabaseRequest.Builder>
co.elastic.clients.elasticsearch.ingest.PutIpLocationDatabaseRequest.Builder
- All Implemented Interfaces:
WithJson<PutIpLocationDatabaseRequest.Builder>
,ObjectBuilder<PutIpLocationDatabaseRequest>
- Enclosing class:
- PutIpLocationDatabaseRequest
public static class PutIpLocationDatabaseRequest.Builder
extends RequestBase.AbstractBuilder<PutIpLocationDatabaseRequest.Builder>
implements ObjectBuilder<PutIpLocationDatabaseRequest>
Builder for
PutIpLocationDatabaseRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPutIpLocationDatabaseRequest
.Required - Request body.Required - Request body.Required - The database configuration identifier.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 PutIpLocationDatabaseRequest.Builder
self()
The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.withJson
(jakarta.json.stream.JsonParser parser, JsonpMapper mapper) Sets additional properties values on this object by reading from a JSON input.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Required - The database configuration identifier.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. A value of-1
indicates that the request should never time out.API name:
master_timeout
-
masterTimeout
public final PutIpLocationDatabaseRequest.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. A value of-1
indicates that the request should never time out.API name:
master_timeout
-
timeout
The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. If no response is received before the timeout expires, the cluster metadata update still applies but the response indicates that it was not completely acknowledged. A value of-1
indicates that the request should never time out.API name:
timeout
-
timeout
public final PutIpLocationDatabaseRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. If no response is received before the timeout expires, the cluster metadata update still applies but the response indicates that it was not completely acknowledged. A value of-1
indicates that the request should never time out.API name:
timeout
-
configuration
Required - Request body. -
configuration
public final PutIpLocationDatabaseRequest.Builder configuration(Function<DatabaseConfiguration.Builder, ObjectBuilder<DatabaseConfiguration>> fn) Required - Request body. -
withJson
public PutIpLocationDatabaseRequest.Builder withJson(jakarta.json.stream.JsonParser parser, JsonpMapper mapper) Description copied from interface:WithJson
Sets additional properties values on this object by reading from a JSON input.This is a "partial deserialization": properties that were already set keep their value if they're not present in the JSON input, and properties can also be set after having called this method, including overriding those read from the JSON input.
This low level variant of
withJson
gives full control on the json parser and object mapper. Most of the time usingWithJson.withJson(Reader)
andWithJson.withJson(InputStream)
will be more convenient.- Specified by:
withJson
in interfaceWithJson<PutIpLocationDatabaseRequest.Builder>
- Overrides:
withJson
in classWithJsonObjectBuilderBase<PutIpLocationDatabaseRequest.Builder>
- Parameters:
parser
- the JSONP parsermapper
- the JSONP mapper used to deserialize values and nested objects- Returns:
- this object
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<PutIpLocationDatabaseRequest.Builder>
-
build
Builds aPutIpLocationDatabaseRequest
.- Specified by:
build
in interfaceObjectBuilder<PutIpLocationDatabaseRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-