Class RevertModelSnapshotRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.RevertModelSnapshotRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<RevertModelSnapshotRequest>
- Enclosing class:
- RevertModelSnapshotRequest
public static class RevertModelSnapshotRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<RevertModelSnapshotRequest>
Builder for
RevertModelSnapshotRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description RevertModelSnapshotRequest
build()
Builds aRevertModelSnapshotRequest
.RevertModelSnapshotRequest.Builder
deleteInterveningResults(java.lang.Boolean value)
If true, deletes the results in the time period between the latest results and the time of the reverted snapshot.RevertModelSnapshotRequest.Builder
jobId(java.lang.String value)
Required - Identifier for the anomaly detection job.RevertModelSnapshotRequest.Builder
snapshotId(java.lang.String value)
Required - You can specifyempty
as the <snapshot_id>.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
-
deleteInterveningResults
public final RevertModelSnapshotRequest.Builder deleteInterveningResults(@Nullable java.lang.Boolean value)If true, deletes the results in the time period between the latest results and the time of the reverted snapshot. It also resets the model to accept records for this time period. If you choose not to delete intervening results when reverting a snapshot, the job will not accept input data that is older than the current time. If you want to resend data, then delete the intervening results.API name:
delete_intervening_results
-
jobId
Required - Identifier for the anomaly detection job.API name:
job_id
-
snapshotId
Required - You can specifyempty
as the <snapshot_id>. Reverting to the empty snapshot means the anomaly detection job starts learning a new model from scratch when it is started.API name:
snapshot_id
-
build
Builds aRevertModelSnapshotRequest
.- Specified by:
build
in interfaceObjectBuilder<RevertModelSnapshotRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-