Class PutDataStreamSettingsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.PutDataStreamSettingsRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class PutDataStreamSettingsRequest
extends RequestBase
implements JsonpSerializable
Update data stream settings.
This API can be used to override settings on specific data streams. These overrides will take precedence over what is specified in the template that the data stream matches. To prevent your data stream from getting into an invalid state, only certain settings are allowed. If possible, the setting change is applied to all backing indices. Otherwise, it will be applied when the data stream is next rolled over.
- 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<PutDataStreamSettingsRequest>Endpoint "indices.put_data_stream_settings". -
Method Summary
Modifier and TypeMethodDescriptionprotected static JsonpDeserializer<PutDataStreamSettingsRequest>final BooleandryRun()Iftrue, the request does not actually change the settings on any data streams or indices.final TimeThe period to wait for a connection to the master node.name()Required - A comma-separated list of data streams or data stream patterns.static PutDataStreamSettingsRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.final IndexSettingssettings()Required - Request body.final Timetimeout()The period to wait for a response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
-
_ENDPOINT
public static final Endpoint<PutDataStreamSettingsRequest,PutDataStreamSettingsResponse, _ENDPOINTErrorResponse> Endpoint "indices.put_data_stream_settings".
-
-
Method Details
-
of
-
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 -
name
Required - A comma-separated list of data streams or data stream patterns.API name:
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 -
settings
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createPutDataStreamSettingsRequestDeserializer
protected static JsonpDeserializer<PutDataStreamSettingsRequest> createPutDataStreamSettingsRequestDeserializer()
-