Class RevertModelSnapshotRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RevertModelSnapshotRequest.Builder>
co.elastic.clients.elasticsearch.ml.RevertModelSnapshotRequest.Builder
- All Implemented Interfaces:
WithJson<RevertModelSnapshotRequest.Builder>,ObjectBuilder<RevertModelSnapshotRequest>
- Enclosing class:
- RevertModelSnapshotRequest
public static class RevertModelSnapshotRequest.Builder extends WithJsonObjectBuilderBase<RevertModelSnapshotRequest.Builder> implements ObjectBuilder<RevertModelSnapshotRequest>
Builder for
RevertModelSnapshotRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RevertModelSnapshotRequestbuild()Builds aRevertModelSnapshotRequest.RevertModelSnapshotRequest.BuilderdeleteInterveningResults(java.lang.Boolean value)Refer to the description for thedelete_intervening_resultsquery parameter.RevertModelSnapshotRequest.BuilderjobId(java.lang.String value)Required - Identifier for the anomaly detection job.protected RevertModelSnapshotRequest.Builderself()RevertModelSnapshotRequest.BuildersnapshotId(java.lang.String value)Required - You can specifyemptyas the <snapshot_id>.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
-
deleteInterveningResults
public final RevertModelSnapshotRequest.Builder deleteInterveningResults(@Nullable java.lang.Boolean value)Refer to the description for thedelete_intervening_resultsquery parameter.API name:
delete_intervening_results -
jobId
Required - Identifier for the anomaly detection job.API name:
job_id -
snapshotId
Required - You can specifyemptyas 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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RevertModelSnapshotRequest.Builder>
-
build
Builds aRevertModelSnapshotRequest.- Specified by:
buildin interfaceObjectBuilder<RevertModelSnapshotRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-