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
Updates certain properties of a snapshot.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateModelSnapshotRequest.BuilderBuilder forUpdateModelSnapshotRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<UpdateModelSnapshotRequest>_DESERIALIZERJson deserializer forUpdateModelSnapshotRequeststatic Endpoint<UpdateModelSnapshotRequest,UpdateModelSnapshotResponse,ErrorResponse>_ENDPOINTEndpoint "ml.update_model_snapshot". -
Method Summary
Modifier and Type Method Description java.lang.Stringdescription()A description of the model snapshot.java.lang.StringjobId()Required - Identifier for the anomaly detection job.static UpdateModelSnapshotRequestof(java.util.function.Function<UpdateModelSnapshotRequest.Builder,ObjectBuilder<UpdateModelSnapshotRequest>> fn)java.lang.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)java.lang.StringsnapshotId()Required - Identifier for the model snapshot.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forUpdateModelSnapshotRequest -
_ENDPOINT
public static final Endpoint<UpdateModelSnapshotRequest,UpdateModelSnapshotResponse,ErrorResponse> _ENDPOINTEndpoint "ml.update_model_snapshot".
-
-
Method Details
-
of
public static UpdateModelSnapshotRequest of(java.util.function.Function<UpdateModelSnapshotRequest.Builder,ObjectBuilder<UpdateModelSnapshotRequest>> fn) -
description
@Nullable public final java.lang.String description()A description of the model snapshot.API name:
description -
jobId
public final java.lang.String jobId()Required - Identifier for the anomaly detection job.API name:
job_id -
retain
@Nullable public final java.lang.Boolean 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
public final java.lang.String 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)
-