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 Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<UpdateSettingsRequest>Json deserializer forUpdateSettingsRequeststatic final Endpoint<UpdateSettingsRequest,UpdateSettingsResponse, ErrorResponse> Endpoint "watcher.update_settings". -
Method Summary
Modifier 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.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forUpdateSettingsRequest -
_ENDPOINT
Endpoint "watcher.update_settings".
-
-
Method Details
-
of
public static UpdateSettingsRequest of(Function<UpdateSettingsRequest.Builder, ObjectBuilder<UpdateSettingsRequest>> fn) -
indexAutoExpandReplicas
API name:index.auto_expand_replicas -
indexNumberOfReplicas
API name:index.number_of_replicas -
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 -
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupUpdateSettingsRequestDeserializer
protected static void setupUpdateSettingsRequestDeserializer(ObjectDeserializer<UpdateSettingsRequest.Builder> op)
-