Class PutDataStreamMappingsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutDataStreamMappingsRequest.Builder>
co.elastic.clients.elasticsearch.indices.PutDataStreamMappingsRequest.Builder
- All Implemented Interfaces:
- WithJson<PutDataStreamMappingsRequest.Builder>,- ObjectBuilder<PutDataStreamMappingsRequest>
- Enclosing class:
- PutDataStreamMappingsRequest
public static class PutDataStreamMappingsRequest.Builder
extends RequestBase.AbstractBuilder<PutDataStreamMappingsRequest.Builder>
implements ObjectBuilder<PutDataStreamMappingsRequest>
Builder for 
PutDataStreamMappingsRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aPutDataStreamMappingsRequest.Iftrue, the request does not actually change the mappings on any data streams.mappings(TypeMapping value) Required - Request body.Required - Request body.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.Required - A comma-separated list of data streams or data stream patterns.Required - A comma-separated list of data streams or data stream patterns.protected PutDataStreamMappingsRequest.Builderself()The period to wait for a response.The period to wait for a response.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- 
dryRunIftrue, the request does not actually change the mappings on any data streams. Instead, it simulates changing the settings and reports back to the user what would have happened had these settings actually been applied.API name: dry_run
- 
masterTimeoutThe 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.API name: master_timeout
- 
masterTimeoutpublic final PutDataStreamMappingsRequest.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.API name: master_timeout
- 
nameRequired - A comma-separated list of data streams or data stream patterns.API name: nameAdds all elements of listtoname.
- 
nameRequired - A comma-separated list of data streams or data stream patterns.API name: nameAdds one or more values to name.
- 
timeoutThe period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name: timeout
- 
timeoutpublic final PutDataStreamMappingsRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name: timeout
- 
mappingsRequired - Request body.
- 
mappingspublic final PutDataStreamMappingsRequest.Builder mappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) Required - Request body.
- 
withJsonpublic PutDataStreamMappingsRequest.Builder withJson(jakarta.json.stream.JsonParser parser, JsonpMapper mapper) Description 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<PutDataStreamMappingsRequest.Builder>
- Overrides:
- withJsonin class- WithJsonObjectBuilderBase<PutDataStreamMappingsRequest.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<PutDataStreamMappingsRequest.Builder>
 
- 
buildBuilds aPutDataStreamMappingsRequest.- Specified by:
- buildin interface- ObjectBuilder<PutDataStreamMappingsRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-