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