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.Builder
ignoreIndexSettings
(String value, String... values) The names of settings that should be removed from the index when it is mounted.final MountRequest.Builder
ignoreIndexSettings
(List<String> list) The names of settings that should be removed from the index when it is mounted.final MountRequest.Builder
Required - The name of the index contained in the snapshot whose data is to be mounted.final MountRequest.Builder
indexSettings
(String key, JsonData value) The settings that should be added to the index when it is mounted.final MountRequest.Builder
indexSettings
(Map<String, JsonData> map) The settings that should be added to the index when it is mounted.final MountRequest.Builder
masterTimeout
(Time value) The period to wait for the master node.final MountRequest.Builder
The period to wait for the master node.final MountRequest.Builder
renamedIndex
(String value) The name of the index that will be created.final MountRequest.Builder
repository
(String value) Required - The name of the repository containing the snapshot of the index to mount.protected MountRequest.Builder
self()
final MountRequest.Builder
Required - The name of the snapshot of the index to mount.final MountRequest.Builder
The mount option for the searchable snapshot index.final MountRequest.Builder
waitForCompletion
(Boolean value) If true, the request blocks until the operation is complete.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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_settings
Adds all elements of
list
toignoreIndexSettings
. -
ignoreIndexSettings
The names of settings that should be removed from the index when it is mounted.API name:
ignore_index_settings
Adds 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_index
is 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_settings
Adds all entries of
map
toindexSettings
. -
indexSettings
The settings that should be added to the index when it is mounted.API name:
index_settings
Adds 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:
self
in classRequestBase.AbstractBuilder<MountRequest.Builder>
-
build
Builds aMountRequest
.- Specified by:
build
in interfaceObjectBuilder<MountRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-