Class GetModelSnapshotsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetModelSnapshotsRequest.Builder>
co.elastic.clients.elasticsearch.ml.GetModelSnapshotsRequest.Builder
- All Implemented Interfaces:
WithJson<GetModelSnapshotsRequest.Builder>,ObjectBuilder<GetModelSnapshotsRequest>
- Enclosing class:
- GetModelSnapshotsRequest
public static class GetModelSnapshotsRequest.Builder extends WithJsonObjectBuilderBase<GetModelSnapshotsRequest.Builder> 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)Refer to the description for thedescquery parameter.GetModelSnapshotsRequest.Builderend(Time value)Refer to the description for theendquery parameter.GetModelSnapshotsRequest.Builderend(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Refer to the description for theendquery parameter.GetModelSnapshotsRequest.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.Builderpage(Page value)API name:pageGetModelSnapshotsRequest.Builderpage(java.util.function.Function<Page.Builder,ObjectBuilder<Page>> fn)API name:pageprotected GetModelSnapshotsRequest.Builderself()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)Refer to the description for thesortquery parameter.GetModelSnapshotsRequest.Builderstart(Time value)Refer to the description for thestartquery parameter.GetModelSnapshotsRequest.Builderstart(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Refer to the description for thestartquery parameter.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desc
Refer to the description for thedescquery parameter.API name:
desc -
end
Refer to the description for theendquery parameter.API name:
end -
end
public final GetModelSnapshotsRequest.Builder end(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Refer to the description for theendquery parameter.API name:
end -
from
Skips the specified number of snapshots.API name:
from -
jobId
Required - Identifier for the anomaly detection job.API name:
job_id -
page
API name:page -
page
public final GetModelSnapshotsRequest.Builder page(java.util.function.Function<Page.Builder,ObjectBuilder<Page>> fn)API name:page -
size
Specifies the maximum number of snapshots to obtain.API name:
size -
snapshotId
A numerical character string that uniquely identifies the model snapshot. You can get information for multiple snapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using_all, by specifying*as the snapshot ID, or by omitting the snapshot ID.API name:
snapshot_id -
sort
Refer to the description for thesortquery parameter.API name:
sort -
start
Refer to the description for thestartquery parameter.API name:
start -
start
public final GetModelSnapshotsRequest.Builder start(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Refer to the description for thestartquery parameter.API name:
start -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetModelSnapshotsRequest.Builder>
-
build
Builds aGetModelSnapshotsRequest.- Specified by:
buildin interfaceObjectBuilder<GetModelSnapshotsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-