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 forUpdateSettingsRequest
static final Endpoint<UpdateSettingsRequest,
UpdateSettingsResponse, ErrorResponse> Endpoint "watcher.update_settings
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
API name:index.auto_expand_replicas
final Integer
API name:index.number_of_replicas
final Time
The period to wait for a connection to the master node.static UpdateSettingsRequest
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final Time
timeout()
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupUpdateSettingsRequestDeserializer
protected static void setupUpdateSettingsRequestDeserializer(ObjectDeserializer<UpdateSettingsRequest.Builder> op)
-