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.BuilderaddIgnoreIndexSettings(java.lang.String value)Add a value toignoreIndexSettings(List), creating the list if needed.MountRequestbuild()Builds aMountRequest.MountRequest.BuilderignoreIndexSettings(java.lang.String... value)API name:ignore_index_settingsMountRequest.BuilderignoreIndexSettings(java.util.List<java.lang.String> value)API name:ignore_index_settingsMountRequest.Builderindex(java.lang.String value)Required - API name:indexMountRequest.BuilderindexSettings(java.util.Map<java.lang.String,JsonData> value)API name:index_settingsMountRequest.BuildermasterTimeout(java.lang.String value)Explicit operation timeout for connection to master nodeMountRequest.BuilderputIndexSettings(java.lang.String key, JsonData value)Add a key/value toindexSettings(Map), creating the map if needed.MountRequest.BuilderrenamedIndex(java.lang.String value)API name:renamed_indexMountRequest.Builderrepository(java.lang.String value)Required - The name of the repository containing the snapshot of the index to mountMountRequest.Buildersnapshot(java.lang.String value)Required - The name of the snapshot of the index to mountMountRequest.Builderstorage(java.lang.String value)Selects the kind of local storage used to accelerate searches.MountRequest.BuilderwaitForCompletion(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_copyAPI 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:
buildin interfaceObjectBuilder<MountRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-