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 class
MountRequest.Builder
Builder 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>
_DESERIALIZER
Json deserializer forMountRequest
static Endpoint<MountRequest,MountResponse,ErrorResponse>
_ENDPOINT
Endpoint "searchable_snapshots.mount
". -
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>
ignoreIndexSettings()
API name:ignore_index_settings
java.lang.String
index()
Required - API name:index
java.util.Map<java.lang.String,JsonData>
indexSettings()
API name:index_settings
Time
masterTimeout()
Explicit operation timeout for connection to master nodestatic MountRequest
of(java.util.function.Function<MountRequest.Builder,ObjectBuilder<MountRequest>> fn)
java.lang.String
renamedIndex()
API name:renamed_index
java.lang.String
repository()
Required - The name of the repository containing the snapshot of the index to mountvoid
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupMountRequestDeserializer(ObjectDeserializer<MountRequest.Builder> op)
java.lang.String
snapshot()
Required - The name of the snapshot of the index to mountjava.lang.String
storage()
Selects the kind of local storage used to accelerate searches.java.lang.Boolean
waitForCompletion()
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
-
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_copy
API 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupMountRequestDeserializer
-