Class SnapshotStatus.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.snapshot.SnapshotStatus.Builder
- All Implemented Interfaces:
CopyableBuilder<SnapshotStatus.Builder,,SnapshotStatus> MutableBuilder<SnapshotStatus.Builder,,SnapshotStatus> ObjectBuilder<SnapshotStatus>
- Enclosing class:
SnapshotStatus
public static class SnapshotStatus.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SnapshotStatus.Builder,SnapshotStatus>
Builder for
SnapshotStatus.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotStatus.copy()Create a new builderCopyableBuilderthat is a copy of this one.final SnapshotStatus.BuilderincludeGlobalState(Boolean value) Whether the snapshot includes the cluster state.final SnapshotStatus.BuilderThe status of indexes in the snapshot.final SnapshotStatus.Builderindices(String key, SnapshotIndexStats value) The status of indexes in the snapshot.final SnapshotStatus.Builderindices(Map<String, SnapshotIndexStats> map) The status of indexes in the snapshot.final SnapshotStatus.Builderrepository(String value) The name of the repository containing the snapshot.final SnapshotStatus.BuilderThe statistics about snapshot shards.final SnapshotStatus.BuildershardsStats(SnapshotShardsStats value) The statistics about snapshot shards.final SnapshotStatus.BuilderThe name of the snapshot.final SnapshotStatus.BuilderThe current state of the snapshot.final SnapshotStatus.BuilderThe detailed statistics about the snapshot.final SnapshotStatus.Builderstats(SnapshotStats value) The detailed statistics about the snapshot.final SnapshotStatus.BuilderThe unique identifier for the snapshot.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<SnapshotStatus.Builder,SnapshotStatus> - Returns:
- a new builder instance.
-
includeGlobalState
Whether the snapshot includes the cluster state.API name:
include_global_state -
indices
The status of indexes in the snapshot.API name:
indicesAdds all elements of
maptoindices. -
indices
The status of indexes in the snapshot.API name:
indicesAdds an entry to
indices. -
indices
@Nonnull public final SnapshotStatus.Builder indices(String key, Function<SnapshotIndexStats.Builder, ObjectBuilder<SnapshotIndexStats>> fn) The status of indexes in the snapshot.API name:
indicesAdds a value to
indicesusing a builder lambda. -
repository
The name of the repository containing the snapshot.API name:
repository -
shardsStats
The statistics about snapshot shards.API name:
shards_stats -
shardsStats
@Nonnull public final SnapshotStatus.Builder shardsStats(Function<SnapshotShardsStats.Builder, ObjectBuilder<SnapshotShardsStats>> fn) The statistics about snapshot shards.API name:
shards_stats -
snapshot
The name of the snapshot.API name:
snapshot -
state
The current state of the snapshot.API name:
state -
stats
The detailed statistics about the snapshot.API name:
stats -
stats
@Nonnull public final SnapshotStatus.Builder stats(Function<SnapshotStats.Builder, ObjectBuilder<SnapshotStats>> fn) The detailed statistics about the snapshot.API name:
stats -
uuid
The unique identifier for the snapshot.API name:
uuid -
build
Builds aSnapshotStatus.- Specified by:
buildin interfaceObjectBuilder<SnapshotStatus>- Throws:
NullPointerException- if some of the required fields are null.
-