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.Builderassignment(TrainedModelAssignment value)Required - API name:assignmentStartTrainedModelDeploymentResponse.Builderassignment(java.util.function.Function<TrainedModelAssignment.Builder,ObjectBuilder<TrainedModelAssignment>> fn)Required - API name:assignmentStartTrainedModelDeploymentResponsebuild()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
-
assignment
Required - API name:assignment -
assignment
public final StartTrainedModelDeploymentResponse.Builder assignment(java.util.function.Function<TrainedModelAssignment.Builder,ObjectBuilder<TrainedModelAssignment>> fn)Required - API name:assignment -
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.
-