Class PutDataStreamMappingsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.PutDataStreamMappingsRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class PutDataStreamMappingsRequest
extends RequestBase
implements JsonpSerializable
Update data stream mappings.
This API can be used to override mappings on specific data streams. These overrides will take precedence over what is specified in the template that the data stream matches. The mapping change is only applied to new write indices that are created during rollover after this API is called. No indices are changed by this API.
- 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<PutDataStreamMappingsRequest>Endpoint "indices.put_data_stream_mappings". -
Method Summary
Modifier and TypeMethodDescriptionprotected static JsonpDeserializer<PutDataStreamMappingsRequest>final BooleandryRun()Iftrue, the request does not actually change the mappings on any data streams.final TypeMappingmappings()Required - Request body.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 PutDataStreamMappingsRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.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<PutDataStreamMappingsRequest,PutDataStreamMappingsResponse, _ENDPOINTErrorResponse> Endpoint "indices.put_data_stream_mappings".
-
-
Method Details
-
of
-
dryRun
Iftrue, the request does not actually change the mappings on any data streams. 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 -
mappings
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createPutDataStreamMappingsRequestDeserializer
protected static JsonpDeserializer<PutDataStreamMappingsRequest> createPutDataStreamMappingsRequestDeserializer()
-