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 SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<UpdateErrorRequest>Json deserializer forUpdateErrorRequeststatic final Endpoint<UpdateErrorRequest,UpdateErrorResponse, ErrorResponse> Endpoint "connector.update_error".
- 
Method SummaryModifier 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.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forUpdateErrorRequest
- 
_ENDPOINTEndpoint "connector.update_error".
 
- 
- 
Method Details- 
ofpublic static UpdateErrorRequest of(Function<UpdateErrorRequest.Builder, ObjectBuilder<UpdateErrorRequest>> fn) 
- 
connectorIdRequired - The unique identifier of the connector to be updatedAPI name: connector_id
- 
errorRequired - API name:error
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupUpdateErrorRequestDeserializerprotected static void setupUpdateErrorRequestDeserializer(ObjectDeserializer<UpdateErrorRequest.Builder> op) 
 
-