Class ModelSnapshot.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.ModelSnapshot.Builder
- All Implemented Interfaces:
ObjectBuilder<ModelSnapshot>
- Enclosing class:
- ModelSnapshot
public static class ModelSnapshot.Builder extends java.lang.Object implements ObjectBuilder<ModelSnapshot>
Builder for
ModelSnapshot
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ModelSnapshot
build()
Builds aModelSnapshot
.ModelSnapshot.Builder
description(java.lang.String value)
An optional description of the job.ModelSnapshot.Builder
jobId(java.lang.String value)
A numerical character string that uniquely identifies the job that the snapshot was created for.ModelSnapshot.Builder
latestRecordTimeStamp(int value)
The timestamp of the latest processed record.ModelSnapshot.Builder
latestResultTimeStamp(int value)
The timestamp of the latest bucket result.ModelSnapshot.Builder
minVersion(java.lang.String value)
The minimum version required to be able to restore the model snapshot.ModelSnapshot.Builder
modelSizeStats(ModelSizeStats value)
Summary information describing the model.ModelSnapshot.Builder
modelSizeStats(java.util.function.Function<ModelSizeStats.Builder,ObjectBuilder<ModelSizeStats>> fn)
Summary information describing the model.ModelSnapshot.Builder
retain(boolean value)
If true, this snapshot will not be deleted during automatic cleanup of snapshots older than model_snapshot_retention_days.ModelSnapshot.Builder
snapshotDocCount(long value)
For internal use only.ModelSnapshot.Builder
snapshotId(java.lang.String value)
A numerical character string that uniquely identifies the model snapshot.ModelSnapshot.Builder
timestamp(int value)
The creation timestamp for the snapshot.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
-
description
An optional description of the job.API name:
description
-
jobId
A numerical character string that uniquely identifies the job that the snapshot was created for.API name:
job_id
-
latestRecordTimeStamp
The timestamp of the latest processed record.API name:
latest_record_time_stamp
-
latestResultTimeStamp
The timestamp of the latest bucket result.API name:
latest_result_time_stamp
-
minVersion
The minimum version required to be able to restore the model snapshot.API name:
min_version
-
modelSizeStats
Summary information describing the model.API name:
model_size_stats
-
modelSizeStats
public ModelSnapshot.Builder modelSizeStats(java.util.function.Function<ModelSizeStats.Builder,ObjectBuilder<ModelSizeStats>> fn)Summary information describing the model.API name:
model_size_stats
-
retain
If true, this snapshot will not be deleted during automatic cleanup of snapshots older than model_snapshot_retention_days. However, this snapshot will be deleted when the job is deleted. The default value is false.API name:
retain
-
snapshotDocCount
For internal use only.API name:
snapshot_doc_count
-
snapshotId
A numerical character string that uniquely identifies the model snapshot.API name:
snapshot_id
-
timestamp
The creation timestamp for the snapshot.API name:
timestamp
-
build
Builds aModelSnapshot
.- Specified by:
build
in interfaceObjectBuilder<ModelSnapshot>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-