Class UpdateModelSnapshotRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.UpdateModelSnapshotRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class UpdateModelSnapshotRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateModelSnapshotRequest.BuilderBuilder forUpdateModelSnapshotRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<UpdateModelSnapshotRequest>_DESERIALIZERJson deserializer forUpdateModelSnapshotRequeststatic Endpoint<UpdateModelSnapshotRequest,UpdateModelSnapshotResponse,ElasticsearchError>ENDPOINTEndpoint "ml.update_model_snapshot". -
Constructor Summary
Constructors Constructor Description UpdateModelSnapshotRequest(UpdateModelSnapshotRequest.Builder builder)UpdateModelSnapshotRequest(java.util.function.Function<UpdateModelSnapshotRequest.Builder,UpdateModelSnapshotRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Stringdescription()API name:descriptionjava.lang.StringjobId()Required - The ID of the job to fetchjava.lang.Booleanretain()API name:retainvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupUpdateModelSnapshotRequestDeserializer(DelegatingDeserializer<UpdateModelSnapshotRequest.Builder> op)java.lang.StringsnapshotId()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
-
Field Details
-
_DESERIALIZER
Json deserializer forUpdateModelSnapshotRequest -
ENDPOINT
public static final Endpoint<UpdateModelSnapshotRequest,UpdateModelSnapshotResponse,ElasticsearchError> ENDPOINTEndpoint "ml.update_model_snapshot".
-
-
Constructor Details
-
UpdateModelSnapshotRequest
-
UpdateModelSnapshotRequest
public UpdateModelSnapshotRequest(java.util.function.Function<UpdateModelSnapshotRequest.Builder,UpdateModelSnapshotRequest.Builder> fn)
-
-
Method Details
-
jobId
public java.lang.String jobId()Required - The ID of the job to fetchAPI name:
job_id -
snapshotId
public java.lang.String snapshotId()Required - The ID of the snapshot to updateAPI name:
snapshot_id -
description
@Nullable public java.lang.String description()API name:description -
retain
@Nullable public java.lang.Boolean retain()API name:retain -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupUpdateModelSnapshotRequestDeserializer
protected static void setupUpdateModelSnapshotRequestDeserializer(DelegatingDeserializer<UpdateModelSnapshotRequest.Builder> op)
-