Class UpdateFeaturesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.connector.UpdateFeaturesRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class UpdateFeaturesRequest
extends RequestBase
implements JsonpSerializable
Update the connector features. Update the connector features in the connector
document. This API can be used to control the following aspects of a
connector:
- document-level security
- incremental syncs
- advanced sync rules
- basic sync rules
Normally, the running connector service automatically manages these features. However, you can use this API to override the default behavior.
To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- 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<UpdateFeaturesRequest>
Json deserializer forUpdateFeaturesRequest
static final Endpoint<UpdateFeaturesRequest,
UpdateFeaturesResponse, ErrorResponse> Endpoint "connector.update_features
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Required - The unique identifier of the connector to be updated.final ConnectorFeatures
features()
Required - API name:features
static UpdateFeaturesRequest
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
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forUpdateFeaturesRequest
-
_ENDPOINT
Endpoint "connector.update_features
".
-
-
Method Details
-
of
public static UpdateFeaturesRequest of(Function<UpdateFeaturesRequest.Builder, ObjectBuilder<UpdateFeaturesRequest>> fn) -
connectorId
Required - The unique identifier of the connector to be updated.API name:
connector_id
-
features
Required - API name:features
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupUpdateFeaturesRequestDeserializer
protected static void setupUpdateFeaturesRequestDeserializer(ObjectDeserializer<UpdateFeaturesRequest.Builder> op)
-