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>
  • 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

      public final RevertModelSnapshotRequest.Builder jobId​(java.lang.String value)
      Required - Identifier for the anomaly detection job.

      API name: job_id

    • snapshotId

      public final RevertModelSnapshotRequest.Builder snapshotId​(java.lang.String value)
      Required - You can specify empty 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

      Specified by:
      build in interface ObjectBuilder<RevertModelSnapshotRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.