Class FieldTypesMappings.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.stats.FieldTypesMappings.Builder
-
- All Implemented Interfaces:
ObjectBuilder<FieldTypesMappings>
- Enclosing class:
- FieldTypesMappings
public static class FieldTypesMappings.Builder extends ObjectBuilderBase implements ObjectBuilder<FieldTypesMappings>
Builder forFieldTypesMappings
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldTypesMappings
build()
Builds aFieldTypesMappings
.FieldTypesMappings.Builder
fieldTypes(java.util.function.Function<FieldTypes.Builder,ObjectBuilder<FieldTypes>> fn)
Required - API name:field_types
FieldTypesMappings.Builder
fieldTypes(java.util.List<FieldTypes> list)
Required - API name:field_types
FieldTypesMappings.Builder
fieldTypes(FieldTypes value, FieldTypes... values)
Required - API name:field_types
FieldTypesMappings.Builder
runtimeFieldTypes(java.util.function.Function<RuntimeFieldTypes.Builder,ObjectBuilder<RuntimeFieldTypes>> fn)
API name:runtime_field_types
FieldTypesMappings.Builder
runtimeFieldTypes(java.util.List<RuntimeFieldTypes> list)
API name:runtime_field_types
FieldTypesMappings.Builder
runtimeFieldTypes(RuntimeFieldTypes value, RuntimeFieldTypes... values)
API name:runtime_field_types
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
fieldTypes
public final FieldTypesMappings.Builder fieldTypes(java.util.List<FieldTypes> list)
Required - API name:field_types
Adds all elements of
list
tofieldTypes
.
-
fieldTypes
public final FieldTypesMappings.Builder fieldTypes(FieldTypes value, FieldTypes... values)
Required - API name:field_types
Adds one or more values to
fieldTypes
.
-
fieldTypes
public final FieldTypesMappings.Builder fieldTypes(java.util.function.Function<FieldTypes.Builder,ObjectBuilder<FieldTypes>> fn)
Required - API name:field_types
Adds a value to
fieldTypes
using a builder lambda.
-
runtimeFieldTypes
public final FieldTypesMappings.Builder runtimeFieldTypes(java.util.List<RuntimeFieldTypes> list)
API name:runtime_field_types
Adds all elements of
list
toruntimeFieldTypes
.
-
runtimeFieldTypes
public final FieldTypesMappings.Builder runtimeFieldTypes(RuntimeFieldTypes value, RuntimeFieldTypes... values)
API name:runtime_field_types
Adds one or more values to
runtimeFieldTypes
.
-
runtimeFieldTypes
public final FieldTypesMappings.Builder runtimeFieldTypes(java.util.function.Function<RuntimeFieldTypes.Builder,ObjectBuilder<RuntimeFieldTypes>> fn)
API name:runtime_field_types
Adds a value to
runtimeFieldTypes
using a builder lambda.
-
build
public FieldTypesMappings build()
Builds aFieldTypesMappings
.- Specified by:
build
in interfaceObjectBuilder<FieldTypesMappings>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-