Class Repository.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.snapshot.Repository.Builder
- All Implemented Interfaces:
CopyableBuilder<Repository.Builder,,Repository> MutableBuilder<Repository.Builder,,Repository> ObjectBuilder<Repository>
- Enclosing class:
Repository
public static class Repository.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Repository.Builder,Repository>
Builder for
Repository.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRepository.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Repository.BuilderThe configuration settings for the repository.final Repository.Buildersettings(RepositorySettings value) The configuration settings for the repository.final Repository.BuilderThe type of the snapshot repository.final Repository.BuilderThe unique identifier for the repository.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<Repository.Builder,Repository> - Returns:
- a new builder instance.
-
settings
The configuration settings for the repository.API name:
settings -
settings
@Nonnull public final Repository.Builder settings(Function<RepositorySettings.Builder, ObjectBuilder<RepositorySettings>> fn) The configuration settings for the repository.API name:
settings -
type
The type of the snapshot repository.API name:
type -
uuid
The unique identifier for the repository.API name:
uuid -
build
Builds aRepository.- Specified by:
buildin interfaceObjectBuilder<Repository>- Throws:
NullPointerException- if some of the required fields are null.
-