Class UpdateErrorRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.connector.UpdateErrorRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class UpdateErrorRequest
extends RequestBase
implements JsonpSerializable
Update the connector error field.
Set the error field for the connector. If the error provided in the request body is non-null, the connector’s status is updated to error. Otherwise, if the error is reset to null, the connector status is updated to connected.
- 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<UpdateErrorRequest>Json deserializer forUpdateErrorRequeststatic final Endpoint<UpdateErrorRequest,UpdateErrorResponse, ErrorResponse> Endpoint "connector.update_error". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRequired - The unique identifier of the connector to be updatedfinal Stringerror()Required - API name:errorstatic UpdateErrorRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forUpdateErrorRequest -
_ENDPOINT
Endpoint "connector.update_error".
-
-
Method Details
-
of
public static UpdateErrorRequest of(Function<UpdateErrorRequest.Builder, ObjectBuilder<UpdateErrorRequest>> fn) -
connectorId
Required - The unique identifier of the connector to be updatedAPI name:
connector_id -
error
Required - API name:error -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupUpdateErrorRequestDeserializer
protected static void setupUpdateErrorRequestDeserializer(ObjectDeserializer<UpdateErrorRequest.Builder> op)
-