Class IndexSettingsMappingLimitFieldNameLength.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.IndexSettingsMappingLimitFieldNameLength.Builder
- All Implemented Interfaces:
CopyableBuilder<IndexSettingsMappingLimitFieldNameLength.Builder,,IndexSettingsMappingLimitFieldNameLength> MutableBuilder<IndexSettingsMappingLimitFieldNameLength.Builder,,IndexSettingsMappingLimitFieldNameLength> ObjectBuilder<IndexSettingsMappingLimitFieldNameLength>
- Enclosing class:
IndexSettingsMappingLimitFieldNameLength
public static class IndexSettingsMappingLimitFieldNameLength.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndexSettingsMappingLimitFieldNameLength.Builder,IndexSettingsMappingLimitFieldNameLength>
Builder for
IndexSettingsMappingLimitFieldNameLength.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndexSettingsMappingLimitFieldNameLength.copy()Create a new builderCopyableBuilderthat is a copy of this one.Setting for the maximum length of a field name.Methods 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<IndexSettingsMappingLimitFieldNameLength.Builder,IndexSettingsMappingLimitFieldNameLength> - Returns:
- a new builder instance.
-
limit
Setting for the maximum length of a field name. This setting isn't really something that addresses mappings explosion but might still be useful if you want to limit the field length. It usually shouldn't be necessary to set this setting. The default is okay unless a user starts to add a huge number of fields with really long names. Default isLong.MAX_VALUE(no limit).API name:
limit -
build
Builds aIndexSettingsMappingLimitFieldNameLength.- Specified by:
buildin interfaceObjectBuilder<IndexSettingsMappingLimitFieldNameLength>- Throws:
NullPointerException- if some of the required fields are null.
-