Class MountRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.searchable_snapshots.MountRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class MountRequest extends RequestBase implements JsonpSerializable
Mount a snapshot as a searchable index.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMountRequest.BuilderBuilder forMountRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<MountRequest>_DESERIALIZERJson deserializer forMountRequeststatic Endpoint<MountRequest,MountResponse,ErrorResponse>_ENDPOINTEndpoint "searchable_snapshots.mount". -
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>ignoreIndexSettings()API name:ignore_index_settingsjava.lang.Stringindex()Required - API name:indexjava.util.Map<java.lang.String,JsonData>indexSettings()API name:index_settingsTimemasterTimeout()Explicit operation timeout for connection to master nodestatic MountRequestof(java.util.function.Function<MountRequest.Builder,ObjectBuilder<MountRequest>> fn)java.lang.StringrenamedIndex()API name:renamed_indexjava.lang.Stringrepository()Required - The name of the repository containing the snapshot of the index to mountvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupMountRequestDeserializer(ObjectDeserializer<MountRequest.Builder> op)java.lang.Stringsnapshot()Required - The name of the snapshot of the index to mountjava.lang.Stringstorage()Selects the kind of local storage used to accelerate searches.java.lang.BooleanwaitForCompletion()Should this request wait until the operation has completed before returningMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forMountRequest -
_ENDPOINT
Endpoint "searchable_snapshots.mount".
-
-
Method Details
-
of
public static MountRequest of(java.util.function.Function<MountRequest.Builder,ObjectBuilder<MountRequest>> fn) -
ignoreIndexSettings
public final java.util.List<java.lang.String> ignoreIndexSettings()API name:ignore_index_settings -
index
public final java.lang.String index()Required - API name:index -
indexSettings
API name:index_settings -
masterTimeout
Explicit operation timeout for connection to master nodeAPI name:
master_timeout -
renamedIndex
@Nullable public final java.lang.String renamedIndex()API name:renamed_index -
repository
public final java.lang.String repository()Required - The name of the repository containing the snapshot of the index to mountAPI name:
repository -
snapshot
public final java.lang.String snapshot()Required - The name of the snapshot of the index to mountAPI name:
snapshot -
storage
@Nullable public final java.lang.String storage()Selects the kind of local storage used to accelerate searches. Experimental, and defaults tofull_copyAPI name:
storage -
waitForCompletion
@Nullable public final java.lang.Boolean waitForCompletion()Should this request wait until the operation has completed before returningAPI name:
wait_for_completion -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupMountRequestDeserializer
-