Class Input.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Input.Builder>
co.elastic.clients.elasticsearch.ml.put_trained_model.Input.Builder
- All Implemented Interfaces:
WithJson<Input.Builder>
,ObjectBuilder<Input>
- Enclosing class:
- Input
public static class Input.Builder extends WithJsonObjectBuilderBase<Input.Builder> implements ObjectBuilder<Input>
Builder for
Input
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Input
build()
Builds aInput
.Input.Builder
fieldNames(java.lang.String value, java.lang.String... values)
Required - API name:field_names
Input.Builder
fieldNames(java.util.List<java.lang.String> list)
Required - API name:field_names
protected Input.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
-
fieldNames
Required - API name:field_names
Adds all elements of
list
tofieldNames
. -
fieldNames
Required - API name:field_names
Adds one or more values to
fieldNames
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Input.Builder>
-
build
Builds aInput
.- Specified by:
build
in interfaceObjectBuilder<Input>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-