Class CloneRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.snapshot.CloneRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class CloneRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCloneRequest.BuilderBuilder forCloneRequest.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<CloneRequest>_DESERIALIZERJson deserializer forCloneRequeststatic Endpoint<CloneRequest,CloneResponse,ElasticsearchError>ENDPOINTEndpoint "snapshot.clone". -
Constructor Summary
Constructors Constructor Description CloneRequest(CloneRequest.Builder builder)CloneRequest(java.util.function.Function<CloneRequest.Builder,CloneRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Stringindices()API name:indicesjava.lang.StringmasterTimeout()Explicit operation timeout for connection to master nodejava.lang.Stringrepository()A repository namevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupCloneRequestDeserializer(DelegatingDeserializer<CloneRequest.Builder> op)java.lang.Stringsnapshot()The name of the snapshot to clone fromjava.lang.StringtargetSnapshot()The name of the cloned snapshot to createjava.lang.Stringtimeout()API name:timeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCloneRequest -
ENDPOINT
Endpoint "snapshot.clone".
-
-
Constructor Details
-
CloneRequest
-
CloneRequest
-
-
Method Details
-
repository
public java.lang.String repository()A repository nameAPI name:
repository -
snapshot
public java.lang.String snapshot()The name of the snapshot to clone fromAPI name:
snapshot -
targetSnapshot
public java.lang.String targetSnapshot()The name of the cloned snapshot to createAPI name:
target_snapshot -
masterTimeout
@Nullable public java.lang.String masterTimeout()Explicit operation timeout for connection to master nodeAPI name:
master_timeout -
timeout
@Nullable public java.lang.String timeout()API name:timeout -
indices
public java.lang.String indices()API name:indices -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupCloneRequestDeserializer
protected static void setupCloneRequestDeserializer(DelegatingDeserializer<CloneRequest.Builder> op)
-