Class UpgradeJobSnapshotRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.UpgradeJobSnapshotRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<UpgradeJobSnapshotRequest>
- Enclosing class:
- UpgradeJobSnapshotRequest
public static class UpgradeJobSnapshotRequest.Builder extends java.lang.Object implements ObjectBuilder<UpgradeJobSnapshotRequest>
Builder for
UpgradeJobSnapshotRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description UpgradeJobSnapshotRequestbuild()Builds aUpgradeJobSnapshotRequest.UpgradeJobSnapshotRequest.BuilderjobId(java.lang.String value)Identifier for the anomaly detection job.UpgradeJobSnapshotRequest.BuildersnapshotId(java.lang.String value)A numerical character string that uniquely identifies the model snapshot.UpgradeJobSnapshotRequest.Buildertimeout(java.lang.String value)Controls the time to wait for the request to complete.UpgradeJobSnapshotRequest.BuilderwaitForCompletion(java.lang.Boolean value)When true, the API won’t respond until the upgrade is complete.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
-
jobId
Identifier for the anomaly detection job.API name:
job_id -
snapshotId
A numerical character string that uniquely identifies the model snapshot.API name:
snapshot_id -
waitForCompletion
When true, the API won’t respond until the upgrade is complete. Otherwise, it responds as soon as the upgrade task is assigned to a node.API name:
wait_for_completion -
timeout
Controls the time to wait for the request to complete.API name:
timeout -
build
Builds aUpgradeJobSnapshotRequest.- Specified by:
buildin interfaceObjectBuilder<UpgradeJobSnapshotRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-