Class RemoteStoreUploadStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RemoteStoreUploadStats.Builder
- All Implemented Interfaces:
CopyableBuilder<RemoteStoreUploadStats.Builder,,RemoteStoreUploadStats> MutableBuilder<RemoteStoreUploadStats.Builder,,RemoteStoreUploadStats> ObjectBuilder<RemoteStoreUploadStats>
- Enclosing class:
RemoteStoreUploadStats
public static class RemoteStoreUploadStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RemoteStoreUploadStats.Builder,RemoteStoreUploadStats>
Builder for
RemoteStoreUploadStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRemoteStoreUploadStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.The maximum duration that the remote refresh is behind the local refresh.maxRefreshTimeLag(Time value) The maximum duration that the remote refresh is behind the local refresh.maxRefreshTimeLagInMillis(long value) Required - The maximum duration, in milliseconds, that the remote refresh is behind the local refresh.pressure(Function<RemoteStoreUploadPressureStats.Builder, ObjectBuilder<RemoteStoreUploadPressureStats>> fn) API name:pressureAPI name:pressurerefreshSizeLag(Function<RemoteStoreUploadRefreshSizeLagStats.Builder, ObjectBuilder<RemoteStoreUploadRefreshSizeLagStats>> fn) Required - API name:refresh_size_lagRequired - API name:refresh_size_lagThe total amount of time spent on uploads to the remote segment store.totalTimeSpent(Time value) The total amount of time spent on uploads to the remote segment store.totalTimeSpentInMillis(long value) Required - The total amount of time, in milliseconds, spent on uploads to the remote segment store.totalUploadSize(Function<RemoteStoreUploadDownloadStats.Builder, ObjectBuilder<RemoteStoreUploadDownloadStats>> fn) Required - API name:total_upload_sizeRequired - API name:total_upload_sizeMethods 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<RemoteStoreUploadStats.Builder,RemoteStoreUploadStats> - Returns:
- a new builder instance.
-
maxRefreshTimeLag
The maximum duration that the remote refresh is behind the local refresh.API name:
max_refresh_time_lag -
maxRefreshTimeLag
@Nonnull public final RemoteStoreUploadStats.Builder maxRefreshTimeLag(Function<Time.Builder, ObjectBuilder<Time>> fn) The maximum duration that the remote refresh is behind the local refresh.API name:
max_refresh_time_lag -
maxRefreshTimeLagInMillis
Required - The maximum duration, in milliseconds, that the remote refresh is behind the local refresh.API name:
max_refresh_time_lag_in_millis -
pressure
@Nonnull public final RemoteStoreUploadStats.Builder pressure(@Nullable RemoteStoreUploadPressureStats value) API name:pressure -
pressure
@Nonnull public final RemoteStoreUploadStats.Builder pressure(Function<RemoteStoreUploadPressureStats.Builder, ObjectBuilder<RemoteStoreUploadPressureStats>> fn) API name:pressure -
refreshSizeLag
@Nonnull public final RemoteStoreUploadStats.Builder refreshSizeLag(RemoteStoreUploadRefreshSizeLagStats value) Required - API name:refresh_size_lag -
refreshSizeLag
@Nonnull public final RemoteStoreUploadStats.Builder refreshSizeLag(Function<RemoteStoreUploadRefreshSizeLagStats.Builder, ObjectBuilder<RemoteStoreUploadRefreshSizeLagStats>> fn) Required - API name:refresh_size_lag -
totalTimeSpent
The total amount of time spent on uploads to the remote segment store.API name:
total_time_spent -
totalTimeSpent
@Nonnull public final RemoteStoreUploadStats.Builder totalTimeSpent(Function<Time.Builder, ObjectBuilder<Time>> fn) The total amount of time spent on uploads to the remote segment store.API name:
total_time_spent -
totalTimeSpentInMillis
Required - The total amount of time, in milliseconds, spent on uploads to the remote segment store.API name:
total_time_spent_in_millis -
totalUploadSize
@Nonnull public final RemoteStoreUploadStats.Builder totalUploadSize(RemoteStoreUploadDownloadStats value) Required - API name:total_upload_size -
totalUploadSize
@Nonnull public final RemoteStoreUploadStats.Builder totalUploadSize(Function<RemoteStoreUploadDownloadStats.Builder, ObjectBuilder<RemoteStoreUploadDownloadStats>> fn) Required - API name:total_upload_size -
build
Builds aRemoteStoreUploadStats.- Specified by:
buildin interfaceObjectBuilder<RemoteStoreUploadStats>- Throws:
NullPointerException- if some of the required fields are null.
-