Class UpdateModelSnapshotRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.UpdateModelSnapshotRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class UpdateModelSnapshotRequest
extends RequestBase
implements JsonpSerializable
Update a snapshot. Updates certain properties of a snapshot.
- 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<UpdateModelSnapshotRequest>Json deserializer forUpdateModelSnapshotRequestEndpoint "ml.update_model_snapshot". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringA description of the model snapshot.final StringjobId()Required - Identifier for the anomaly detection job.static UpdateModelSnapshotRequestfinal Booleanretain()Iftrue, this snapshot will not be deleted during automatic cleanup of snapshots older thanmodel_snapshot_retention_days.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupUpdateModelSnapshotRequestDeserializer(ObjectDeserializer<UpdateModelSnapshotRequest.Builder> op) final StringRequired - Identifier for the model snapshot.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forUpdateModelSnapshotRequest -
_ENDPOINT
public static final Endpoint<UpdateModelSnapshotRequest,UpdateModelSnapshotResponse, _ENDPOINTErrorResponse> Endpoint "ml.update_model_snapshot".
-
-
Method Details
-
of
public static UpdateModelSnapshotRequest of(Function<UpdateModelSnapshotRequest.Builder, ObjectBuilder<UpdateModelSnapshotRequest>> fn) -
description
A description of the model snapshot.API name:
description -
jobId
Required - Identifier for the anomaly detection job.API name:
job_id -
retain
Iftrue, this snapshot will not be deleted during automatic cleanup of snapshots older thanmodel_snapshot_retention_days. However, this snapshot will be deleted when the job is deleted.API name:
retain -
snapshotId
Required - Identifier for the model snapshot.API name:
snapshot_id -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupUpdateModelSnapshotRequestDeserializer
protected static void setupUpdateModelSnapshotRequestDeserializer(ObjectDeserializer<UpdateModelSnapshotRequest.Builder> op)
-