Class ModelSnapshot.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ModelSnapshot.Builder>
co.elastic.clients.elasticsearch.ml.ModelSnapshot.Builder
- All Implemented Interfaces:
- WithJson<ModelSnapshot.Builder>,- ObjectBuilder<ModelSnapshot>
- Enclosing class:
- ModelSnapshot
public static class ModelSnapshot.Builder
extends WithJsonObjectBuilderBase<ModelSnapshot.Builder>
implements ObjectBuilder<ModelSnapshot>
Builder for 
ModelSnapshot.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aModelSnapshot.final ModelSnapshot.Builderdescription(String value) An optional description of the job.final ModelSnapshot.BuilderRequired - A numerical character string that uniquely identifies the job that the snapshot was created for.final ModelSnapshot.BuilderlatestRecordTimeStamp(Integer value) The timestamp of the latest processed record.final ModelSnapshot.BuilderlatestResultTimeStamp(Integer value) The timestamp of the latest bucket result.final ModelSnapshot.BuilderminVersion(String value) Required - The minimum version required to be able to restore the model snapshot.final ModelSnapshot.BuildermodelSizeStats(ModelSizeStats value) Summary information describing the model.final ModelSnapshot.BuilderSummary information describing the model.final ModelSnapshot.Builderretain(boolean value) Required - If true, this snapshot will not be deleted during automatic cleanup of snapshots older than model_snapshot_retention_days.protected ModelSnapshot.Builderself()final ModelSnapshot.BuildersnapshotDocCount(long value) Required - For internal use only.final ModelSnapshot.BuildersnapshotId(String value) Required - A numerical character string that uniquely identifies the model snapshot.final ModelSnapshot.Buildertimestamp(long value) Required - The creation timestamp for the snapshot.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
descriptionAn optional description of the job.API name: description
- 
jobIdRequired - A numerical character string that uniquely identifies the job that the snapshot was created for.API name: job_id
- 
latestRecordTimeStampThe timestamp of the latest processed record.API name: latest_record_time_stamp
- 
latestResultTimeStampThe timestamp of the latest bucket result.API name: latest_result_time_stamp
- 
minVersionRequired - The minimum version required to be able to restore the model snapshot.API name: min_version
- 
modelSizeStatsSummary information describing the model.API name: model_size_stats
- 
modelSizeStatspublic final ModelSnapshot.Builder modelSizeStats(Function<ModelSizeStats.Builder, ObjectBuilder<ModelSizeStats>> fn) Summary information describing the model.API name: model_size_stats
- 
retainRequired - 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
- 
snapshotDocCountRequired - For internal use only.API name: snapshot_doc_count
- 
snapshotIdRequired - A numerical character string that uniquely identifies the model snapshot.API name: snapshot_id
- 
timestampRequired - The creation timestamp for the snapshot.API name: timestamp
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<ModelSnapshot.Builder>
 
- 
buildBuilds aModelSnapshot.- Specified by:
- buildin interface- ObjectBuilder<ModelSnapshot>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-