Class RevertModelSnapshotRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<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 RequestBase.AbstractBuilder<RevertModelSnapshotRequest.Builder>
implements ObjectBuilder<RevertModelSnapshotRequest>
Builder for
RevertModelSnapshotRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRevertModelSnapshotRequest.deleteInterveningResults(Boolean value) Refer to the description for thedelete_intervening_resultsquery parameter.Required - Identifier for the anomaly detection job.protected RevertModelSnapshotRequest.Builderself()snapshotId(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, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deleteInterveningResults
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 classRequestBase.AbstractBuilder<RevertModelSnapshotRequest.Builder>
-
build
Builds aRevertModelSnapshotRequest.- Specified by:
buildin interfaceObjectBuilder<RevertModelSnapshotRequest>- Throws:
NullPointerException- if some of the required fields are null.
-