Class PutRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutRequest.Builder>
co.elastic.clients.elasticsearch.search_application.PutRequest.Builder
- All Implemented Interfaces:
- WithJson<PutRequest.Builder>,- ObjectBuilder<PutRequest>
- Enclosing class:
- PutRequest
public static class PutRequest.Builder
extends RequestBase.AbstractBuilder<PutRequest.Builder>
implements ObjectBuilder<PutRequest>
Builder for 
PutRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aPutRequest.final PutRequest.BuilderIftrue, this request cannot replace or update existing Search Applications.final PutRequest.BuilderRequired - The name of the search application to be created or updated.final PutRequest.BuilderRequired - Request body.final PutRequest.BuildersearchApplication(Function<SearchApplicationParameters.Builder, ObjectBuilder<SearchApplicationParameters>> fn) Required - Request body.protected PutRequest.Builderself()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- 
Builderpublic Builder()
 
- 
- 
Method Details- 
createIftrue, this request cannot replace or update existing Search Applications.API name: create
- 
nameRequired - The name of the search application to be created or updated.API name: name
- 
searchApplicationRequired - Request body.
- 
searchApplicationpublic final PutRequest.Builder searchApplication(Function<SearchApplicationParameters.Builder, ObjectBuilder<SearchApplicationParameters>> fn) Required - Request body.
- 
withJsonDescription copied from interface:WithJsonSets 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 withJsongives 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:
- withJsonin interface- WithJson<PutRequest.Builder>
- Overrides:
- withJsonin class- WithJsonObjectBuilderBase<PutRequest.Builder>
- Parameters:
- parser- the JSONP parser
- mapper- the JSONP mapper used to deserialize values and nested objects
- Returns:
- this object
 
- 
self- Specified by:
- selfin class- RequestBase.AbstractBuilder<PutRequest.Builder>
 
- 
buildBuilds aPutRequest.- Specified by:
- buildin interface- ObjectBuilder<PutRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-