Class SnapshotRestore.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.snapshot.restore.SnapshotRestore.Builder
- All Implemented Interfaces:
CopyableBuilder<SnapshotRestore.Builder,,SnapshotRestore> MutableBuilder<SnapshotRestore.Builder,,SnapshotRestore> ObjectBuilder<SnapshotRestore>
- Enclosing class:
SnapshotRestore
public static class SnapshotRestore.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SnapshotRestore.Builder,SnapshotRestore>
Builder for
SnapshotRestore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotRestore.copy()Create a new builderCopyableBuilderthat is a copy of this one.final SnapshotRestore.BuilderRequired - The list of indexes that were restored.final SnapshotRestore.BuilderRequired - The list of indexes that were restored.final SnapshotRestore.BuilderRequired - Any statistics about the restored shards.final SnapshotRestore.Buildershards(ShardStatistics value) Required - Any statistics about the restored shards.final SnapshotRestore.BuilderRequired - The name of the snapshot that was restored.Methods 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<SnapshotRestore.Builder,SnapshotRestore> - Returns:
- a new builder instance.
-
indices
Required - The list of indexes that were restored.API name:
indicesAdds all elements of
listtoindices. -
indices
Required - The list of indexes that were restored.API name:
indicesAdds one or more values to
indices. -
shards
Required - Any statistics about the restored shards.API name:
shards -
shards
@Nonnull public final SnapshotRestore.Builder shards(Function<ShardStatistics.Builder, ObjectBuilder<ShardStatistics>> fn) Required - Any statistics about the restored shards.API name:
shards -
snapshot
Required - The name of the snapshot that was restored.API name:
snapshot -
build
Builds aSnapshotRestore.- Specified by:
buildin interfaceObjectBuilder<SnapshotRestore>- Throws:
NullPointerException- if some of the required fields are null.
-