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.Builderallocation(TrainedModelAllocation value)Required - API name:allocationStartTrainedModelDeploymentResponse.Builderallocation(java.util.function.Function<TrainedModelAllocation.Builder,ObjectBuilder<TrainedModelAllocation>> fn)Required - API name:allocationStartTrainedModelDeploymentResponsebuild()Builds aStartTrainedModelDeploymentResponse.protected StartTrainedModelDeploymentResponse.Builderself()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
-
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:
selfin classWithJsonObjectBuilderBase<StartTrainedModelDeploymentResponse.Builder>
-
build
Builds aStartTrainedModelDeploymentResponse.- Specified by:
buildin interfaceObjectBuilder<StartTrainedModelDeploymentResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-