Class RuntimeField.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RuntimeField.Builder>
co.elastic.clients.elasticsearch._types.mapping.RuntimeField.Builder
- All Implemented Interfaces:
WithJson<RuntimeField.Builder>
,ObjectBuilder<RuntimeField>
- Enclosing class:
- RuntimeField
public static class RuntimeField.Builder
extends WithJsonObjectBuilderBase<RuntimeField.Builder>
implements ObjectBuilder<RuntimeField>
Builder for
RuntimeField
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aRuntimeField
.final RuntimeField.Builder
fetchFields
(RuntimeFieldFetchFields value, RuntimeFieldFetchFields... values) For typelookup
final RuntimeField.Builder
For typelookup
final RuntimeField.Builder
For typelookup
final RuntimeField.Builder
API name:format
final RuntimeField.Builder
inputField
(String value) For typelookup
final RuntimeField.Builder
API name:script
final RuntimeField.Builder
API name:script
protected RuntimeField.Builder
self()
final RuntimeField.Builder
targetField
(String value) For typelookup
final RuntimeField.Builder
targetIndex
(String value) For typelookup
final RuntimeField.Builder
type
(RuntimeFieldType value) Required - API name:type
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fetchFields
For typelookup
API name:
fetch_fields
Adds all elements of
list
tofetchFields
. -
fetchFields
public final RuntimeField.Builder fetchFields(RuntimeFieldFetchFields value, RuntimeFieldFetchFields... values) For typelookup
API name:
fetch_fields
Adds one or more values to
fetchFields
. -
fetchFields
public final RuntimeField.Builder fetchFields(Function<RuntimeFieldFetchFields.Builder, ObjectBuilder<RuntimeFieldFetchFields>> fn) For typelookup
API name:
fetch_fields
Adds a value to
fetchFields
using a builder lambda. -
format
API name:format
-
inputField
For typelookup
API name:
input_field
-
targetField
For typelookup
API name:
target_field
-
targetIndex
For typelookup
API name:
target_index
-
script
API name:script
-
script
API name:script
-
type
Required - API name:type
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<RuntimeField.Builder>
-
build
Builds aRuntimeField
.- Specified by:
build
in interfaceObjectBuilder<RuntimeField>
- Throws:
NullPointerException
- if some of the required fields are null.
-