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 GetModelSnapshotsRequest
build()
Builds aGetModelSnapshotsRequest
.GetModelSnapshotsRequest.Builder
desc(java.lang.Boolean value)
Refer to the description for thedesc
query parameter.GetModelSnapshotsRequest.Builder
end(Time value)
Refer to the description for theend
query parameter.GetModelSnapshotsRequest.Builder
end(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Refer to the description for theend
query parameter.GetModelSnapshotsRequest.Builder
from(java.lang.Integer value)
Skips the specified number of snapshots.GetModelSnapshotsRequest.Builder
jobId(java.lang.String value)
Required - Identifier for the anomaly detection job.GetModelSnapshotsRequest.Builder
page(Page value)
API name:page
GetModelSnapshotsRequest.Builder
page(java.util.function.Function<Page.Builder,ObjectBuilder<Page>> fn)
API name:page
protected GetModelSnapshotsRequest.Builder
self()
GetModelSnapshotsRequest.Builder
size(java.lang.Integer value)
Specifies the maximum number of snapshots to obtain.GetModelSnapshotsRequest.Builder
snapshotId(java.lang.String value)
A numerical character string that uniquely identifies the model snapshot.GetModelSnapshotsRequest.Builder
sort(java.lang.String value)
Refer to the description for thesort
query parameter.GetModelSnapshotsRequest.Builder
start(Time value)
Refer to the description for thestart
query parameter.GetModelSnapshotsRequest.Builder
start(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Refer to the description for thestart
query parameter.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
desc
Refer to the description for thedesc
query parameter.API name:
desc
-
end
Refer to the description for theend
query parameter.API name:
end
-
end
public final GetModelSnapshotsRequest.Builder end(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Refer to the description for theend
query 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 thesort
query parameter.API name:
sort
-
start
Refer to the description for thestart
query parameter.API name:
start
-
start
public final GetModelSnapshotsRequest.Builder start(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Refer to the description for thestart
query parameter.API name:
start
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GetModelSnapshotsRequest.Builder>
-
build
Builds aGetModelSnapshotsRequest
.- Specified by:
build
in interfaceObjectBuilder<GetModelSnapshotsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-