Class UpdateModelSnapshotRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<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 WithJsonObjectBuilderBase<UpdateModelSnapshotRequest.Builder> implements ObjectBuilder<UpdateModelSnapshotRequest>
Builder for
UpdateModelSnapshotRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description UpdateModelSnapshotRequestbuild()Builds aUpdateModelSnapshotRequest.UpdateModelSnapshotRequest.Builderdescription(java.lang.String value)A description of the model snapshot.UpdateModelSnapshotRequest.BuilderjobId(java.lang.String value)Required - Identifier for the anomaly detection job.UpdateModelSnapshotRequest.Builderretain(java.lang.Boolean value)Iftrue, this snapshot will not be deleted during automatic cleanup of snapshots older thanmodel_snapshot_retention_days.protected UpdateModelSnapshotRequest.Builderself()UpdateModelSnapshotRequest.BuildersnapshotId(java.lang.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, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 classWithJsonObjectBuilderBase<UpdateModelSnapshotRequest.Builder>
-
build
Builds aUpdateModelSnapshotRequest.- Specified by:
buildin interfaceObjectBuilder<UpdateModelSnapshotRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-