Class CloneIndexRequest
- java.lang.Object
-
- org.opensearch.client.opensearch._types.RequestBase
-
- org.opensearch.client.opensearch.indices.CloneIndexRequest
-
- All Implemented Interfaces:
JsonpSerializable
,PlainJsonSerializable
@JsonpDeserializable public class CloneIndexRequest extends RequestBase implements PlainJsonSerializable
Clones an index
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CloneIndexRequest.Builder
Builder forCloneIndexRequest
.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CloneIndexRequest>
_DESERIALIZER
Json deserializer forCloneIndexRequest
static Endpoint<CloneIndexRequest,CloneIndexResponse,ErrorResponse>
_ENDPOINT
Endpoint "indices.clone
".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,Alias>
aliases()
API name:aliases
Time
clusterManagerTimeout()
Specify timeout for connection to cluster-managerjava.lang.String
index()
Required - The name of the source index to cloneTime
masterTimeout()
Specify timeout for connection to masterstatic CloneIndexRequest
of(java.util.function.Function<CloneIndexRequest.Builder,ObjectBuilder<CloneIndexRequest>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
java.util.Map<java.lang.String,JsonData>
settings()
API name:settings
protected static void
setupCloneIndexRequestDeserializer(ObjectDeserializer<CloneIndexRequest.Builder> op)
java.lang.String
target()
Required - The name of the target index to clone intoTime
timeout()
Explicit operation timeoutWaitForActiveShards
waitForActiveShards()
Set the number of active shards to wait for on the cloned index before the operation returns.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<CloneIndexRequest> _DESERIALIZER
Json deserializer forCloneIndexRequest
-
_ENDPOINT
public static final Endpoint<CloneIndexRequest,CloneIndexResponse,ErrorResponse> _ENDPOINT
Endpoint "indices.clone
".
-
-
Method Detail
-
of
public static CloneIndexRequest of(java.util.function.Function<CloneIndexRequest.Builder,ObjectBuilder<CloneIndexRequest>> fn)
-
aliases
public final java.util.Map<java.lang.String,Alias> aliases()
API name:aliases
-
index
public final java.lang.String index()
Required - The name of the source index to cloneAPI name:
index
-
masterTimeout
@Nullable public final Time masterTimeout()
Specify timeout for connection to masterAPI name:
master_timeout
-
clusterManagerTimeout
@Nullable public final Time clusterManagerTimeout()
Specify timeout for connection to cluster-managerAPI name:
cluster_manager_timeout
-
settings
public final java.util.Map<java.lang.String,JsonData> settings()
API name:settings
-
target
public final java.lang.String target()
Required - The name of the target index to clone intoAPI name:
target
-
timeout
@Nullable public final Time timeout()
Explicit operation timeoutAPI name:
timeout
-
waitForActiveShards
@Nullable public final WaitForActiveShards waitForActiveShards()
Set the number of active shards to wait for on the cloned index before the operation returns.API name:
wait_for_active_shards
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupCloneIndexRequestDeserializer
protected static void setupCloneIndexRequestDeserializer(ObjectDeserializer<CloneIndexRequest.Builder> op)
-
-