Class CloneSnapshotRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<CloneSnapshotRequest.Builder>
org.opensearch.client.opensearch.snapshot.CloneSnapshotRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<CloneSnapshotRequest.Builder,,CloneSnapshotRequest> MutableBuilder<CloneSnapshotRequest.Builder,,CloneSnapshotRequest> ObjectBuilder<CloneSnapshotRequest>
- Enclosing class:
CloneSnapshotRequest
public static class CloneSnapshotRequest.Builder
extends RequestBase.AbstractBuilder<CloneSnapshotRequest.Builder>
implements CopyableBuilder<CloneSnapshotRequest.Builder,CloneSnapshotRequest>
Builder for
CloneSnapshotRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCloneSnapshotRequest.The amount of time to wait for a response from the cluster manager node.clusterManagerTimeout(Time value) The amount of time to wait for a response from the cluster manager node.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - API name:indicesDeprecated.masterTimeout(Time value) Deprecated.repository(String value) Required - The name of repository which will contain the snapshots clone.protected CloneSnapshotRequest.Builderself()Required - The name of the original snapshot.targetSnapshot(String value) Required - The name of the cloned snapshot.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<CloneSnapshotRequest.Builder,CloneSnapshotRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<CloneSnapshotRequest.Builder>
-
clusterManagerTimeout
The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
cluster_manager_timeout -
clusterManagerTimeout
@Nonnull public final CloneSnapshotRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
cluster_manager_timeout -
indices
Required - API name:indices -
masterTimeout
Deprecated.Explicit operation timeout for connection to cluster-manager nodeAPI name:
master_timeout -
masterTimeout
@Deprecated @Nonnull public final CloneSnapshotRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Deprecated.Explicit operation timeout for connection to cluster-manager nodeAPI name:
master_timeout -
repository
Required - The name of repository which will contain the snapshots clone.API name:
repository -
snapshot
Required - The name of the original snapshot.API name:
snapshot -
targetSnapshot
Required - The name of the cloned snapshot.API name:
target_snapshot -
build
Builds aCloneSnapshotRequest.- Specified by:
buildin interfaceObjectBuilder<CloneSnapshotRequest>- Throws:
NullPointerException- if some of the required fields are null.
-