Class MountRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.searchable_snapshots.MountRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<MountRequest>
- Enclosing class:
- MountRequest
public static class MountRequest.Builder extends java.lang.Object implements ObjectBuilder<MountRequest>
Builder for
MountRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description MountRequest.Builder
addIgnoreIndexSettings(java.lang.String value)
Add a value toignoreIndexSettings(List)
, creating the list if needed.MountRequest
build()
Builds aMountRequest
.MountRequest.Builder
ignoreIndexSettings(java.lang.String... value)
API name:ignore_index_settings
MountRequest.Builder
ignoreIndexSettings(java.util.List<java.lang.String> value)
API name:ignore_index_settings
MountRequest.Builder
index(java.lang.String value)
Required - API name:index
MountRequest.Builder
indexSettings(java.util.Map<java.lang.String,JsonData> value)
API name:index_settings
MountRequest.Builder
masterTimeout(java.lang.String value)
Explicit operation timeout for connection to master nodeMountRequest.Builder
putIndexSettings(java.lang.String key, JsonData value)
Add a key/value toindexSettings(Map)
, creating the map if needed.MountRequest.Builder
renamedIndex(java.lang.String value)
API name:renamed_index
MountRequest.Builder
repository(java.lang.String value)
Required - The name of the repository containing the snapshot of the index to mountMountRequest.Builder
snapshot(java.lang.String value)
Required - The name of the snapshot of the index to mountMountRequest.Builder
storage(java.lang.String value)
Selects the kind of local storage used to accelerate searches.MountRequest.Builder
waitForCompletion(java.lang.Boolean value)
Should this request wait until the operation has completed before returningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repository
Required - The name of the repository containing the snapshot of the index to mountAPI name:
repository
-
snapshot
Required - The name of the snapshot of the index to mountAPI name:
snapshot
-
masterTimeout
Explicit operation timeout for connection to master nodeAPI name:
master_timeout
-
waitForCompletion
Should this request wait until the operation has completed before returningAPI name:
wait_for_completion
-
storage
Selects the kind of local storage used to accelerate searches. Experimental, and defaults tofull_copy
API name:
storage
-
index
Required - API name:index
-
renamedIndex
API name:renamed_index
-
indexSettings
public MountRequest.Builder indexSettings(@Nullable java.util.Map<java.lang.String,JsonData> value)API name:index_settings
-
putIndexSettings
Add a key/value toindexSettings(Map)
, creating the map if needed. -
ignoreIndexSettings
API name:ignore_index_settings
-
ignoreIndexSettings
API name:ignore_index_settings
-
addIgnoreIndexSettings
Add a value toignoreIndexSettings(List)
, creating the list if needed. -
build
Builds aMountRequest
.- Specified by:
build
in interfaceObjectBuilder<MountRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-