Class IndexMappingRecord.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.get_mapping.IndexMappingRecord.Builder
- All Implemented Interfaces:
CopyableBuilder<IndexMappingRecord.Builder,,IndexMappingRecord> MutableBuilder<IndexMappingRecord.Builder,,IndexMappingRecord> ObjectBuilder<IndexMappingRecord>
- Enclosing class:
IndexMappingRecord
public static class IndexMappingRecord.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndexMappingRecord.Builder,IndexMappingRecord>
Builder for
IndexMappingRecord.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndexMappingRecord.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:itemitem(TypeMapping value) API name:itemRequired - API name:mappingsmappings(TypeMapping value) Required - API name:mappingsMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<IndexMappingRecord.Builder,IndexMappingRecord> - Returns:
- a new builder instance.
-
item
API name:item -
item
@Nonnull public final IndexMappingRecord.Builder item(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) API name:item -
mappings
Required - API name:mappings -
mappings
@Nonnull public final IndexMappingRecord.Builder mappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) Required - API name:mappings -
build
Builds aIndexMappingRecord.- Specified by:
buildin interfaceObjectBuilder<IndexMappingRecord>- Throws:
NullPointerException- if some of the required fields are null.
-