Class PutDataSourceRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.esql.PutDataSourceRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class PutDataSourceRequest
extends RequestBase
implements JsonpSerializable
Create or update an ES|QL data source.
Creates or replaces a named, type-specific data source configuration for ES|QL data federation. Datasets reference data source configurations to access external data. Names must be lowercase and follow index or alias naming rules.
- 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<PutDataSourceRequest>Json deserializer forPutDataSourceRequeststatic final Endpoint<PutDataSourceRequest,PutDataSourceResponse, ErrorResponse> Endpoint "esql.put_data_source". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringA free-text description of the data source.final TimePeriod to wait for a connection to the master node.final Stringname()Required - The data source name to create or update.static PutDataSourceRequestrebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) settings()Type-specific connection and authentication settings.protected static voidfinal Timetimeout()The time to wait for the request to be completed.final Stringtype()Required - The data source type.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutDataSourceRequest -
_ENDPOINT
Endpoint "esql.put_data_source".
-
-
Method Details
-
of
public static PutDataSourceRequest of(Function<PutDataSourceRequest.Builder, ObjectBuilder<PutDataSourceRequest>> fn) -
description
A free-text description of the data source.API name:
description -
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout -
name
Required - The data source name to create or update.API name:
name -
settings
Type-specific connection and authentication settings. Fors3, connection settings includeregionandendpoint. Authentication settings includeauthand the credentials required by the selected authentication method.API name:
settings -
timeout
The time to wait for the request to be completed.API name:
timeout -
type
Required - The data source type. Currently,s3is supported. The value must be lowercase and contain no whitespace.API name:
type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
rebuild
- Returns:
- New
PutDataSourceRequest.Builderinitialized with field values of this instance
-
setupPutDataSourceRequestDeserializer
protected static void setupPutDataSourceRequestDeserializer(ObjectDeserializer<PutDataSourceRequest.Builder> op)
-