Class UpdateModelSnapshotRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.UpdateModelSnapshotRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<UpdateModelSnapshotRequest>
- Enclosing class:
- UpdateModelSnapshotRequest
public static class UpdateModelSnapshotRequest.Builder extends java.lang.Object implements ObjectBuilder<UpdateModelSnapshotRequest>
Builder for
UpdateModelSnapshotRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description UpdateModelSnapshotRequest
build()
Builds aUpdateModelSnapshotRequest
.UpdateModelSnapshotRequest.Builder
description(java.lang.String value)
API name:description
UpdateModelSnapshotRequest.Builder
jobId(java.lang.String value)
Required - The ID of the job to fetchUpdateModelSnapshotRequest.Builder
retain(java.lang.Boolean value)
API name:retain
UpdateModelSnapshotRequest.Builder
snapshotId(java.lang.String value)
Required - The ID of the snapshot to updateMethods 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
Required - The ID of the job to fetchAPI name:
job_id
-
snapshotId
Required - The ID of the snapshot to updateAPI name:
snapshot_id
-
description
API name:description
-
retain
API name:retain
-
build
Builds aUpdateModelSnapshotRequest
.- Specified by:
build
in interfaceObjectBuilder<UpdateModelSnapshotRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-