Class UpdateSettingsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<UpdateSettingsRequest.Builder>
co.elastic.clients.elasticsearch.watcher.UpdateSettingsRequest.Builder
- All Implemented Interfaces:
- WithJson<UpdateSettingsRequest.Builder>,- ObjectBuilder<UpdateSettingsRequest>
- Enclosing class:
- UpdateSettingsRequest
public static class UpdateSettingsRequest.Builder
extends RequestBase.AbstractBuilder<UpdateSettingsRequest.Builder>
implements ObjectBuilder<UpdateSettingsRequest>
Builder for 
UpdateSettingsRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aUpdateSettingsRequest.indexAutoExpandReplicas(String value) API name:index.auto_expand_replicasindexNumberOfReplicas(Integer value) API name:index.number_of_replicasmasterTimeout(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 UpdateSettingsRequest.Builderself()The period to wait for a response.The period to wait for a response.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
indexAutoExpandReplicasAPI name:index.auto_expand_replicas
- 
indexNumberOfReplicasAPI name:index.number_of_replicas
- 
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 UpdateSettingsRequest.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
- 
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
- 
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
- 
self- Specified by:
- selfin class- RequestBase.AbstractBuilder<UpdateSettingsRequest.Builder>
 
- 
buildBuilds aUpdateSettingsRequest.- Specified by:
- buildin interface- ObjectBuilder<UpdateSettingsRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-