Class TrainedModelConfigInput.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelConfigInput.Builder
- All Implemented Interfaces:
ObjectBuilder<TrainedModelConfigInput>
- Enclosing class:
- TrainedModelConfigInput
public static class TrainedModelConfigInput.Builder extends java.lang.Object implements ObjectBuilder<TrainedModelConfigInput>
Builder for
TrainedModelConfigInput
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TrainedModelConfigInput.Builder
addFieldNames(java.lang.String value)
Add a value tofieldNames(List)
, creating the list if needed.TrainedModelConfigInput
build()
Builds aTrainedModelConfigInput
.TrainedModelConfigInput.Builder
fieldNames(java.lang.String... value)
An array of input field names for the model.TrainedModelConfigInput.Builder
fieldNames(java.util.List<java.lang.String> value)
An array of input field names for the model.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
-
fieldNames
An array of input field names for the model.API name:
field_names
-
fieldNames
An array of input field names for the model.API name:
field_names
-
addFieldNames
Add a value tofieldNames(List)
, creating the list if needed. 4 -
build
Builds aTrainedModelConfigInput
.- Specified by:
build
in interfaceObjectBuilder<TrainedModelConfigInput>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-