Class CloneIndexRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.indices.CloneIndexRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CloneIndexRequest.Builder,CloneIndexRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class CloneIndexRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<CloneIndexRequest.Builder,CloneIndexRequest>
Clones an index.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CloneIndexRequest> Json deserializer forCloneIndexRequeststatic final Endpoint<CloneIndexRequest, CloneIndexResponse, ErrorResponse> Endpoint "indices.clone". -
Method Summary
Modifier and TypeMethodDescriptionaliases()Aliases for the resulting index.protected voidapplyQueryParameters(Map<String, String> params) static CloneIndexRequest.Builderbuilder()final TimeOperation timeout for connection to cluster-manager node.booleaninthashCode()final Stringindex()Required - Name of the source index to clone.final TimeDeprecated.static CloneIndexRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) settings()Configuration options for the target index.protected static voidfinal Stringtarget()Required - Name of the target index to create.final TimeExplicit task execution timeout, only useful whenwait_for_completionis false, defaults to1h.final Timetimeout()Period to wait for a response.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final WaitForActiveShardsThe number of shard copies that must be active before proceeding with the operation.final BooleanShould this request wait until the operation has completed before returning.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forCloneIndexRequest -
_ENDPOINT
Endpoint "indices.clone".
-
-
Method Details
-
of
public static CloneIndexRequest of(Function<CloneIndexRequest.Builder, ObjectBuilder<CloneIndexRequest>> fn) -
aliases
Aliases for the resulting index.API name:
aliases -
clusterManagerTimeout
Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
index
Required - Name of the source index to clone.API name:
index -
masterTimeout
Deprecated.Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
settings
Configuration options for the target index.API name:
settings -
target
Required - Name of the target index to create.API name:
target -
taskExecutionTimeout
Explicit task execution timeout, only useful whenwait_for_completionis false, defaults to1h.API name:
task_execution_timeout -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
waitForActiveShards
The number of shard copies that must be active before proceeding with the operation. Set toallor any positive integer up to the total number of shards in the index (number_of_replicas+1).API name:
wait_for_active_shards -
waitForCompletion
Should this request wait until the operation has completed before returning.API name:
wait_for_completion -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CloneIndexRequest.Builder,CloneIndexRequest> - Returns:
- a new builder instance.
-
builder
-
setupCloneIndexRequestDeserializer
protected static void setupCloneIndexRequestDeserializer(ObjectDeserializer<CloneIndexRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-