Class UpdateSettingsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.watcher.UpdateSettingsRequest
- All Implemented Interfaces:
- JsonpSerializable
@JsonpDeserializable
public class UpdateSettingsRequest
extends RequestBase
implements JsonpSerializable
Update Watcher index settings. Update settings for the Watcher internal index
 (
.watches). Only a subset of settings can be modified. This
 includes index.auto_expand_replicas,
 index.number_of_replicas,
 index.routing.allocation.exclude.*,
 index.routing.allocation.include.* and
 index.routing.allocation.require.*. Modification of
 index.routing.allocation.include._tier_preference is an
 exception and is not allowed as the Watcher shards must always be in the
 data_content tier.- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<UpdateSettingsRequest>Json deserializer forUpdateSettingsRequeststatic final Endpoint<UpdateSettingsRequest,UpdateSettingsResponse, ErrorResponse> Endpoint "watcher.update_settings".
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringAPI name:index.auto_expand_replicasfinal IntegerAPI name:index.number_of_replicasfinal TimeThe period to wait for a connection to the master node.static UpdateSettingsRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Timetimeout()The period to wait for a response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forUpdateSettingsRequest
- 
_ENDPOINTEndpoint "watcher.update_settings".
 
- 
- 
Method Details- 
ofpublic static UpdateSettingsRequest of(Function<UpdateSettingsRequest.Builder, ObjectBuilder<UpdateSettingsRequest>> fn) 
- 
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
- 
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
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupUpdateSettingsRequestDeserializerprotected static void setupUpdateSettingsRequestDeserializer(ObjectDeserializer<UpdateSettingsRequest.Builder> op) 
 
-