Class DeleteModelSnapshotRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.DeleteModelSnapshotRequest
public class DeleteModelSnapshotRequest extends RequestBase
Deletes an existing model snapshot. You cannot delete the active model
snapshot. To delete that snapshot, first revert to a different one. To
identify the active model snapshot, refer to the
model_snapshot_id
in the results from the get jobs API.- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeleteModelSnapshotRequest.Builder
Builder forDeleteModelSnapshotRequest
.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 Endpoint<DeleteModelSnapshotRequest,DeleteModelSnapshotResponse,ErrorResponse>
_ENDPOINT
Endpoint "ml.delete_model_snapshot
". -
Method Summary
Modifier and Type Method Description java.lang.String
jobId()
Required - Identifier for the anomaly detection job.static DeleteModelSnapshotRequest
of(java.util.function.Function<DeleteModelSnapshotRequest.Builder,ObjectBuilder<DeleteModelSnapshotRequest>> fn)
java.lang.String
snapshotId()
Required - Identifier for the model snapshot.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_ENDPOINT
public static final Endpoint<DeleteModelSnapshotRequest,DeleteModelSnapshotResponse,ErrorResponse> _ENDPOINTEndpoint "ml.delete_model_snapshot
".
-
-
Method Details
-
of
public static DeleteModelSnapshotRequest of(java.util.function.Function<DeleteModelSnapshotRequest.Builder,ObjectBuilder<DeleteModelSnapshotRequest>> fn) -
jobId
public final java.lang.String jobId()Required - Identifier for the anomaly detection job.API name:
job_id
-
snapshotId
public final java.lang.String snapshotId()Required - Identifier for the model snapshot.API name:
snapshot_id
-