Class RepositorySettings.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.snapshot.RepositorySettings.Builder
- All Implemented Interfaces:
CopyableBuilder<RepositorySettings.Builder,,RepositorySettings> MutableBuilder<RepositorySettings.Builder,,RepositorySettings> ObjectBuilder<RepositorySettings>
- Enclosing class:
RepositorySettings
public static class RepositorySettings.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RepositorySettings.Builder,RepositorySettings>
Builder for
RepositorySettings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRepositorySettings.The chunk size for the repository.Whether compression is enabled for the repository.concurrentStreams(Integer value) The number of concurrent streams for the repository.copy()Create a new builderCopyableBuilderthat is a copy of this one.The location where snapshots are stored.Whether the repository is read-only.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<RepositorySettings.Builder,RepositorySettings> - Returns:
- a new builder instance.
-
chunkSize
The chunk size for the repository.API name:
chunk_size -
compress
Whether compression is enabled for the repository.API name:
compress -
concurrentStreams
The number of concurrent streams for the repository.API name:
concurrent_streams -
location
The location where snapshots are stored.API name:
location -
readOnly
Whether the repository is read-only.API name:
read_only -
build
Builds aRepositorySettings.- Specified by:
buildin interfaceObjectBuilder<RepositorySettings>- Throws:
NullPointerException- if some of the required fields are null.
-