Class IndexSettingBlocks.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.IndexSettingBlocks.Builder
- All Implemented Interfaces:
CopyableBuilder<IndexSettingBlocks.Builder,,IndexSettingBlocks> MutableBuilder<IndexSettingBlocks.Builder,,IndexSettingBlocks> ObjectBuilder<IndexSettingBlocks>
- Enclosing class:
IndexSettingBlocks
public static class IndexSettingBlocks.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndexSettingBlocks.Builder,IndexSettingBlocks>
Builder for
IndexSettingBlocks.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndexSettingBlocks.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:metadataAPI name:readAPI name:read_onlyreadOnlyAllowDelete(Boolean value) API name:read_only_allow_deletesearchOnly(Boolean value) When true, the index is in search-only mode, allowing only read operationsAPI name:writeMethods 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<IndexSettingBlocks.Builder,IndexSettingBlocks> - Returns:
- a new builder instance.
-
metadata
API name:metadata -
read
API name:read -
readOnly
API name:read_only -
readOnlyAllowDelete
API name:read_only_allow_delete -
searchOnly
When true, the index is in search-only mode, allowing only read operationsAPI name:
search_only -
write
API name:write -
build
Builds aIndexSettingBlocks.- Specified by:
buildin interfaceObjectBuilder<IndexSettingBlocks>- Throws:
NullPointerException- if some of the required fields are null.
-