Class TypeFieldMappings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TypeFieldMappings.Builder>
co.elastic.clients.elasticsearch.indices.get_field_mapping.TypeFieldMappings.Builder
- All Implemented Interfaces:
WithJson<TypeFieldMappings.Builder>
,ObjectBuilder<TypeFieldMappings>
- Enclosing class:
- TypeFieldMappings
public static class TypeFieldMappings.Builder extends WithJsonObjectBuilderBase<TypeFieldMappings.Builder> implements ObjectBuilder<TypeFieldMappings>
Builder for
TypeFieldMappings
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TypeFieldMappings
build()
Builds aTypeFieldMappings
.TypeFieldMappings.Builder
mappings(java.lang.String key, FieldMapping value)
Required - API name:mappings
TypeFieldMappings.Builder
mappings(java.lang.String key, java.util.function.Function<FieldMapping.Builder,ObjectBuilder<FieldMapping>> fn)
Required - API name:mappings
TypeFieldMappings.Builder
mappings(java.util.Map<java.lang.String,FieldMapping> map)
Required - API name:mappings
protected TypeFieldMappings.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
-
mappings
Required - API name:mappings
Adds all entries of
map
tomappings
. -
mappings
Required - API name:mappings
Adds an entry to
mappings
. -
mappings
public final TypeFieldMappings.Builder mappings(java.lang.String key, java.util.function.Function<FieldMapping.Builder,ObjectBuilder<FieldMapping>> fn)Required - API name:mappings
Adds an entry to
mappings
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TypeFieldMappings.Builder>
-
build
Builds aTypeFieldMappings
.- Specified by:
build
in interfaceObjectBuilder<TypeFieldMappings>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-