Class IndexMappingRecord.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexMappingRecord.Builder>
co.elastic.clients.elasticsearch.indices.get_mapping.IndexMappingRecord.Builder
- All Implemented Interfaces:
WithJson<IndexMappingRecord.Builder>,ObjectBuilder<IndexMappingRecord>
- Enclosing class:
- IndexMappingRecord
public static class IndexMappingRecord.Builder
extends WithJsonObjectBuilderBase<IndexMappingRecord.Builder>
implements ObjectBuilder<IndexMappingRecord>
Builder for
IndexMappingRecord.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndexMappingRecord.item(TypeMapping value) API name:itemAPI name:itemmappings(TypeMapping value) Required - API name:mappingsRequired - API name:mappingsprotected IndexMappingRecord.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
item
API name:item -
item
public final IndexMappingRecord.Builder item(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) API name:item -
mappings
Required - API name:mappings -
mappings
public final IndexMappingRecord.Builder mappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) Required - API name:mappings -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndexMappingRecord.Builder>
-
build
Builds aIndexMappingRecord.- Specified by:
buildin interfaceObjectBuilder<IndexMappingRecord>- Throws:
NullPointerException- if some of the required fields are null.
-