Class PutDataStreamSettingsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutDataStreamSettingsRequest.Builder>
co.elastic.clients.elasticsearch.indices.PutDataStreamSettingsRequest.Builder
- All Implemented Interfaces:
WithJson<PutDataStreamSettingsRequest.Builder>,ObjectBuilder<PutDataStreamSettingsRequest>
- Enclosing class:
- PutDataStreamSettingsRequest
public static class PutDataStreamSettingsRequest.Builder
extends RequestBase.AbstractBuilder<PutDataStreamSettingsRequest.Builder>
implements ObjectBuilder<PutDataStreamSettingsRequest>
Builder for
PutDataStreamSettingsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutDataStreamSettingsRequest.Iftrue, the request does not actually change the settings on any data streams or indices.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 PutDataStreamSettingsRequest.Builderself()settings(IndexSettings value) Required - Request body.Required - Request body.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
-
Builder
public Builder()
-
-
Method Details
-
dryRun
Iftrue, the request does not actually change the settings on any data streams or indices. 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 -
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.API name:
master_timeout -
masterTimeout
public final PutDataStreamSettingsRequest.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 -
name
Required - A comma-separated list of data streams or data stream patterns.API name:
nameAdds all elements of
listtoname. -
name
Required - A comma-separated list of data streams or data stream patterns.API name:
nameAdds one or more values to
name. -
timeout
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 -
timeout
public final PutDataStreamSettingsRequest.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 -
settings
Required - Request body. -
settings
public final PutDataStreamSettingsRequest.Builder settings(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) Required - Request body. -
withJson
public PutDataStreamSettingsRequest.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 interfaceWithJson<PutDataStreamSettingsRequest.Builder>- Overrides:
withJsonin classWithJsonObjectBuilderBase<PutDataStreamSettingsRequest.Builder>- Parameters:
parser- the JSONP parsermapper- the JSONP mapper used to deserialize values and nested objects- Returns:
- this object
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutDataStreamSettingsRequest.Builder>
-
build
Builds aPutDataStreamSettingsRequest.- Specified by:
buildin interfaceObjectBuilder<PutDataStreamSettingsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-