Class MountRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<MountRequest.Builder>
co.elastic.clients.elasticsearch.searchable_snapshots.MountRequest.Builder
- All Implemented Interfaces:
WithJson<MountRequest.Builder>,ObjectBuilder<MountRequest>
- Enclosing class:
- MountRequest
public static class MountRequest.Builder
extends RequestBase.AbstractBuilder<MountRequest.Builder>
implements ObjectBuilder<MountRequest>
Builder for
MountRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMountRequest.final MountRequest.BuilderignoreIndexSettings(String value, String... values) The names of settings that should be removed from the index when it is mounted.final MountRequest.BuilderignoreIndexSettings(List<String> list) The names of settings that should be removed from the index when it is mounted.final MountRequest.BuilderRequired - The name of the index contained in the snapshot whose data is to be mounted.final MountRequest.BuilderindexSettings(String key, JsonData value) The settings that should be added to the index when it is mounted.final MountRequest.BuilderindexSettings(Map<String, JsonData> map) The settings that should be added to the index when it is mounted.final MountRequest.BuildermasterTimeout(Time value) The period to wait for the master node.final MountRequest.BuilderThe period to wait for the master node.final MountRequest.BuilderrenamedIndex(String value) The name of the index that will be created.final MountRequest.Builderrepository(String value) Required - The name of the repository containing the snapshot of the index to mount.protected MountRequest.Builderself()final MountRequest.BuilderRequired - The name of the snapshot of the index to mount.final MountRequest.BuilderThe mount option for the searchable snapshot index.final MountRequest.BuilderwaitForCompletion(Boolean value) If true, the request blocks until the operation is complete.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ignoreIndexSettings
The names of settings that should be removed from the index when it is mounted.API name:
ignore_index_settingsAdds all elements of
listtoignoreIndexSettings. -
ignoreIndexSettings
The names of settings that should be removed from the index when it is mounted.API name:
ignore_index_settingsAdds one or more values to
ignoreIndexSettings. -
index
Required - The name of the index contained in the snapshot whose data is to be mounted. If norenamed_indexis specified, this name will also be used to create the new index.API name:
index -
indexSettings
The settings that should be added to the index when it is mounted.API name:
index_settingsAdds all entries of
maptoindexSettings. -
indexSettings
The settings that should be added to the index when it is mounted.API name:
index_settingsAdds an entry to
indexSettings. -
masterTimeout
The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1.API name:
master_timeout -
masterTimeout
The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1.API name:
master_timeout -
renamedIndex
The name of the index that will be created.API name:
renamed_index -
repository
Required - The name of the repository containing the snapshot of the index to mount.API name:
repository -
snapshot
Required - The name of the snapshot of the index to mount.API name:
snapshot -
storage
The mount option for the searchable snapshot index.API name:
storage -
waitForCompletion
If true, the request blocks until the operation is complete.API name:
wait_for_completion -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<MountRequest.Builder>
-
build
Builds aMountRequest.- Specified by:
buildin interfaceObjectBuilder<MountRequest>- Throws:
NullPointerException- if some of the required fields are null.
-