Class CloneSnapshotRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<CloneSnapshotRequest.Builder>
co.elastic.clients.elasticsearch.snapshot.CloneSnapshotRequest.Builder
- All Implemented Interfaces:
WithJson<CloneSnapshotRequest.Builder>,ObjectBuilder<CloneSnapshotRequest>
- Enclosing class:
- CloneSnapshotRequest
public static class CloneSnapshotRequest.Builder
extends RequestBase.AbstractBuilder<CloneSnapshotRequest.Builder>
implements ObjectBuilder<CloneSnapshotRequest>
Builder for
CloneSnapshotRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCloneSnapshotRequest.Required - A comma-separated list of indices to include in the snapshot.masterTimeout(Time value) The period to wait for the master node.The period to wait for the master node.repository(String value) Required - The name of the snapshot repository that both source and target snapshot belong to.protected CloneSnapshotRequest.Builderself()Required - The source snapshot name.targetSnapshot(String value) Required - The target snapshot name.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
indices
Required - A comma-separated list of indices to include in the snapshot. Multi-target syntax is supported.API name:
indices -
masterTimeout
The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1.API name:
master_timeout -
masterTimeout
public final CloneSnapshotRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1.API name:
master_timeout -
repository
Required - The name of the snapshot repository that both source and target snapshot belong to.API name:
repository -
snapshot
Required - The source snapshot name.API name:
snapshot -
targetSnapshot
Required - The target snapshot name.API name:
target_snapshot -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<CloneSnapshotRequest.Builder>
-
build
Builds aCloneSnapshotRequest.- Specified by:
buildin interfaceObjectBuilder<CloneSnapshotRequest>- Throws:
NullPointerException- if some of the required fields are null.
-