Class GetModelSnapshotsRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.GetModelSnapshotsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<GetModelSnapshotsRequest>
- Enclosing class:
- GetModelSnapshotsRequest
public static class GetModelSnapshotsRequest.Builder extends java.lang.Object implements ObjectBuilder<GetModelSnapshotsRequest>
Builder for
GetModelSnapshotsRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetModelSnapshotsRequestbuild()Builds aGetModelSnapshotsRequest.GetModelSnapshotsRequest.Builderdesc(java.lang.Boolean value)If true, the results are sorted in descending order.GetModelSnapshotsRequest.Builderend(java.lang.String value)API name:endGetModelSnapshotsRequest.Builderfrom(java.lang.Integer value)Skips the specified number of snapshots.GetModelSnapshotsRequest.BuilderjobId(java.lang.String value)Required - Identifier for the anomaly detection job.GetModelSnapshotsRequest.Buildersize(java.lang.Integer value)Specifies the maximum number of snapshots to obtain.GetModelSnapshotsRequest.BuildersnapshotId(java.lang.String value)A numerical character string that uniquely identifies the model snapshot.GetModelSnapshotsRequest.Buildersort(java.lang.String value)Specifies the sort field for the requested snapshots.GetModelSnapshotsRequest.Builderstart(java.lang.String value)API name:startMethods 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 - 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 -
desc
If true, the results are sorted in descending order.API name:
desc -
from
Skips the specified number of snapshots.API name:
from -
size
Specifies the maximum number of snapshots to obtain.API name:
size -
sort
Specifies the sort field for the requested snapshots. By default, the snapshots are sorted by their timestamp.API name:
sort -
start
API name:start -
end
API name:end -
build
Builds aGetModelSnapshotsRequest.- Specified by:
buildin interfaceObjectBuilder<GetModelSnapshotsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-