Class UpdateModelSnapshotRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<UpdateModelSnapshotRequest.Builder>
co.elastic.clients.elasticsearch.ml.UpdateModelSnapshotRequest.Builder
- All Implemented Interfaces:
WithJson<UpdateModelSnapshotRequest.Builder>,ObjectBuilder<UpdateModelSnapshotRequest>
- Enclosing class:
- UpdateModelSnapshotRequest
public static class UpdateModelSnapshotRequest.Builder
extends RequestBase.AbstractBuilder<UpdateModelSnapshotRequest.Builder>
implements ObjectBuilder<UpdateModelSnapshotRequest>
Builder for
UpdateModelSnapshotRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aUpdateModelSnapshotRequest.description(String value) A description of the model snapshot.Required - Identifier for the anomaly detection job.Iftrue, this snapshot will not be deleted during automatic cleanup of snapshots older thanmodel_snapshot_retention_days.protected UpdateModelSnapshotRequest.Builderself()snapshotId(String value) Required - Identifier for the model snapshot.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<UpdateModelSnapshotRequest.Builder>
-
build
Builds aUpdateModelSnapshotRequest.- Specified by:
buildin interfaceObjectBuilder<UpdateModelSnapshotRequest>- Throws:
NullPointerException- if some of the required fields are null.
-