Class SnapshotShardsStatsSummaryItem.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.snapshot.SnapshotShardsStatsSummaryItem.Builder
- All Implemented Interfaces:
CopyableBuilder<SnapshotShardsStatsSummaryItem.Builder,,SnapshotShardsStatsSummaryItem> MutableBuilder<SnapshotShardsStatsSummaryItem.Builder,,SnapshotShardsStatsSummaryItem> ObjectBuilder<SnapshotShardsStatsSummaryItem>
- Enclosing class:
SnapshotShardsStatsSummaryItem
public static class SnapshotShardsStatsSummaryItem.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SnapshotShardsStatsSummaryItem.Builder,SnapshotShardsStatsSummaryItem>
Builder for
SnapshotShardsStatsSummaryItem.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotShardsStatsSummaryItem.copy()Create a new builderCopyableBuilderthat is a copy of this one.The number of files in the shard snapshot.sizeInBytes(Long value) The total size of files in the shard 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<SnapshotShardsStatsSummaryItem.Builder,SnapshotShardsStatsSummaryItem> - Returns:
- a new builder instance.
-
fileCount
The number of files in the shard snapshot.API name:
file_count -
sizeInBytes
The total size of files in the shard snapshot.API name:
size_in_bytes -
build
Builds aSnapshotShardsStatsSummaryItem.- Specified by:
buildin interfaceObjectBuilder<SnapshotShardsStatsSummaryItem>- Throws:
NullPointerException- if some of the required fields are null.
-