Class RemoteStoreDownloadStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RemoteStoreDownloadStats.Builder
- All Implemented Interfaces:
CopyableBuilder<RemoteStoreDownloadStats.Builder,,RemoteStoreDownloadStats> MutableBuilder<RemoteStoreDownloadStats.Builder,,RemoteStoreDownloadStats> ObjectBuilder<RemoteStoreDownloadStats>
- Enclosing class:
RemoteStoreDownloadStats
public static class RemoteStoreDownloadStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RemoteStoreDownloadStats.Builder,RemoteStoreDownloadStats>
Builder for
RemoteStoreDownloadStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRemoteStoreDownloadStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.totalDownloadSize(Function<RemoteStoreUploadDownloadStats.Builder, ObjectBuilder<RemoteStoreUploadDownloadStats>> fn) Required - The total amount of data downloaded from the remote segment store.Required - The total amount of data downloaded from the remote segment store.The total amount of time spent on downloads from the remote segment store.totalTimeSpent(Time value) The total amount of time spent on downloads from the remote segment store.totalTimeSpentInMillis(long value) Required - The total duration, in milliseconds, spent on downloads from the remote segment store.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<RemoteStoreDownloadStats.Builder,RemoteStoreDownloadStats> - Returns:
- a new builder instance.
-
totalDownloadSize
@Nonnull public final RemoteStoreDownloadStats.Builder totalDownloadSize(RemoteStoreUploadDownloadStats value) Required - The total amount of data downloaded from the remote segment store.API name:
total_download_size -
totalDownloadSize
@Nonnull public final RemoteStoreDownloadStats.Builder totalDownloadSize(Function<RemoteStoreUploadDownloadStats.Builder, ObjectBuilder<RemoteStoreUploadDownloadStats>> fn) Required - The total amount of data downloaded from the remote segment store.API name:
total_download_size -
totalTimeSpent
The total amount of time spent on downloads from the remote segment store.API name:
total_time_spent -
totalTimeSpent
@Nonnull public final RemoteStoreDownloadStats.Builder totalTimeSpent(Function<Time.Builder, ObjectBuilder<Time>> fn) The total amount of time spent on downloads from the remote segment store.API name:
total_time_spent -
totalTimeSpentInMillis
Required - The total duration, in milliseconds, spent on downloads from the remote segment store.API name:
total_time_spent_in_millis -
build
Builds aRemoteStoreDownloadStats.- Specified by:
buildin interfaceObjectBuilder<RemoteStoreDownloadStats>- Throws:
NullPointerException- if some of the required fields are null.
-