Class StartTrainedModelDeploymentResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<StartTrainedModelDeploymentResponse.Builder>
co.elastic.clients.elasticsearch.ml.StartTrainedModelDeploymentResponse.Builder
- All Implemented Interfaces:
WithJson<StartTrainedModelDeploymentResponse.Builder>
,ObjectBuilder<StartTrainedModelDeploymentResponse>
- Enclosing class:
- StartTrainedModelDeploymentResponse
public static class StartTrainedModelDeploymentResponse.Builder extends WithJsonObjectBuilderBase<StartTrainedModelDeploymentResponse.Builder> implements ObjectBuilder<StartTrainedModelDeploymentResponse>
Builder for
StartTrainedModelDeploymentResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description StartTrainedModelDeploymentResponse.Builder
allocation(TrainedModelAllocation value)
Required - API name:allocation
StartTrainedModelDeploymentResponse.Builder
allocation(java.util.function.Function<TrainedModelAllocation.Builder,ObjectBuilder<TrainedModelAllocation>> fn)
Required - API name:allocation
StartTrainedModelDeploymentResponse
build()
Builds aStartTrainedModelDeploymentResponse
.protected StartTrainedModelDeploymentResponse.Builder
self()
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
-
allocation
Required - API name:allocation
-
allocation
public final StartTrainedModelDeploymentResponse.Builder allocation(java.util.function.Function<TrainedModelAllocation.Builder,ObjectBuilder<TrainedModelAllocation>> fn)Required - API name:allocation
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<StartTrainedModelDeploymentResponse.Builder>
-
build
Builds aStartTrainedModelDeploymentResponse
.- Specified by:
build
in interfaceObjectBuilder<StartTrainedModelDeploymentResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-