Class GetModelSnapshotsResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.GetModelSnapshotsResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetModelSnapshotsResponse>
- Enclosing class:
- GetModelSnapshotsResponse
public static class GetModelSnapshotsResponse.Builder extends java.lang.Object implements ObjectBuilder<GetModelSnapshotsResponse>
Builder for
GetModelSnapshotsResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetModelSnapshotsResponse.Builder
addModelSnapshots(ModelSnapshot value)
Add a value tomodelSnapshots(List)
, creating the list if needed.GetModelSnapshotsResponse.Builder
addModelSnapshots(java.util.function.Function<ModelSnapshot.Builder,ObjectBuilder<ModelSnapshot>> fn)
Add a value tomodelSnapshots(List)
, creating the list if needed.GetModelSnapshotsResponse
build()
Builds aGetModelSnapshotsResponse
.GetModelSnapshotsResponse.Builder
count(long value)
Required - API name:count
GetModelSnapshotsResponse.Builder
modelSnapshots(ModelSnapshot... value)
Required - API name:model_snapshots
GetModelSnapshotsResponse.Builder
modelSnapshots(java.util.function.Function<ModelSnapshot.Builder,ObjectBuilder<ModelSnapshot>> fn)
SetmodelSnapshots(List)
to a singleton list.GetModelSnapshotsResponse.Builder
modelSnapshots(java.util.List<ModelSnapshot> value)
Required - API name:model_snapshots
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
-
count
Required - API name:count
-
modelSnapshots
Required - API name:model_snapshots
-
modelSnapshots
Required - API name:model_snapshots
-
addModelSnapshots
Add a value tomodelSnapshots(List)
, creating the list if needed. -
modelSnapshots
public GetModelSnapshotsResponse.Builder modelSnapshots(java.util.function.Function<ModelSnapshot.Builder,ObjectBuilder<ModelSnapshot>> fn)SetmodelSnapshots(List)
to a singleton list. -
addModelSnapshots
public GetModelSnapshotsResponse.Builder addModelSnapshots(java.util.function.Function<ModelSnapshot.Builder,ObjectBuilder<ModelSnapshot>> fn)Add a value tomodelSnapshots(List)
, creating the list if needed. -
build
Builds aGetModelSnapshotsResponse
.- Specified by:
build
in interfaceObjectBuilder<GetModelSnapshotsResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-